Start Here
July 26, 2026 ยท View on GitHub
Status: Active Scope: current-state Last reviewed: 2026-07-04 Owner: ax-code runtime
If the root README is the fastest way to install AX Code, this page is the fastest way to understand it.
What AX Code Is
AX Code is an AI coding runtime. It combines:
- agents for different coding tasks
- explicit tool execution
- model and provider selection
- persistent session state
- configurable isolation and permissions
- integration surfaces such as the TUI, SDK, server mode, and MCP
That matters because AI coding is only useful in real repositories when you can control what the agent is allowed to do, preserve context across sessions, and reuse the same workflow outside a single chat window.
Where the Value Comes From
- Control. Agents act through explicit tools, permission rules, and isolation modes such as
full-access,workspace-write, orread-only. - Continuity. Sessions can be resumed, forked, compacted, exported, and replayed so long-running work does not disappear when a UI closes.
- Context.
AGENTS.mdlets repository-specific conventions, safety rules, and collaboration defaults live with the code. - Portability. The same workflow can run against hosted providers or local runtimes without changing the tool surface.
- Extensibility. The same runtime powers the TUI, CLI, VS Code extension, TypeScript SDK, headless server, MCP integrations, and custom tools.
Mental Model
Think of AX Code as five layers:
- Provider layer: choose the model backend you want to run against.
- Agent layer: pick the right agent for the task, or let routing help.
- Tool layer: the agent acts through explicit tools rather than hidden capabilities.
- Session layer: the conversation, decisions, and state persist.
- Control layer: isolation, permissions, and audit behavior define the boundary.
The rest of the documentation maps onto those layers.
Choose the Next Path
I want to try it quickly
- Start with the root README for install and first launch.
- Supported install paths use the compiled runtime:
- Homebrew for macOS CLI:
brew install defai-digital/tap/ax-code - GitHub release installer for Windows PowerShell:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://github.com/defai-digital/ax-code/releases/latest/download/install.ps1 | iex"
- Homebrew for macOS CLI:
- The Bash installer is not the canonical Windows setup path.
- npm packages are no longer supported install or upgrade channels. See Installation and Runtime Channels for platform policy, runtime labels, and the local launcher matrix.
- Use
/connectorax-code providers loginto set a model. See Supported Providers and Models for Cloud API providers, CLI providers, AX Engine, and model IDs. For a no-cost evaluation path, use the Free-Tier API Quickstart. - Run
ax-code initafter opening a real project soAGENTS.mdcaptures local conventions. - If you want tighter safety boundaries, enable Sandbox Mode before broader edits.
I want to use it safely in a team or company repo
- AX Code starts with autonomous mode on and sandbox mode on:
workspace-writewith network disabled by default. - Keep the default boundary for broad edits; use
--sandbox full-accessonly when a trusted task intentionally needs unrestricted filesystem and network access. - Read Sandbox Mode for execution boundaries.
- Read Autonomous Mode if the agent will run unattended.
- Read Security Policy for threat model and credential storage details.
- Read Semantic Layer if provenance and replay matter for your workflow.
I want to embed or automate it
- Use
@ax-code/sdkfor in-process TypeScript integration. - Use HTTP and OpenAPI Compatibility for a service boundary, generated clients, and the authoritative OpenAPI contract.
- Use
ax-code mcp addwhen the agent needs external tools or services.
I want to understand the repo or contribute feedback
- Read the Documentation Hub for the rest of the public docs.
- Read CONTRIBUTING.md for the current external contribution policy.
When AX Code May Not Fit
AX Code is intentionally more than autocomplete or a hosted chat box. It may be too much if:
- You only need inline code suggestions and do not want agents executing tools.
- You need a hosted SaaS-only experience with no local runtime.
- You do not need session persistence, replay, SDK/server integration, or repository-level instructions.
- You are working in an environment where no local CLI process is allowed.
In those cases, a lighter editor assistant may be simpler. AX Code is strongest when the agent needs to operate inside real development workflows with control, continuity, and integration boundaries.
Common First Commands
ax-code
ax-code providers login
ax-code init
ax-code index
ax-code mcp add
ax-code doctor
For Grok, /connect defaults to Grok Build CLI, which uses the local grok command and its CLI login/session. The hosted Grok Cloud API provider still works for explicit xai configuration or existing credentials, but is hidden from the default provider list.
Doc Map
| Topic | Start here |
|---|---|
| Product overview | Start Here |
| Install/runtime channels | Installation and Runtime Channels |
| Providers and models | Supported Providers and Models |
| Free-tier API evaluation | Free-Tier API Quickstart |
| Sandbox and permissions | Sandbox Mode |
| Unattended execution | Autonomous Mode |
| Routing and model tier | Auto-Route |
| SDK embedding | @ax-code/sdk |
| HTTP/OpenAPI clients | HTTP and OpenAPI Compatibility |
| VS Code integration | VS Code integration |
| Architecture | Semantic Layer |