abx runs coding agents and shells in isolated smolvm microVMs on Apple Silicon macOS and Linux (x86_64, arm64). Each box gets its own disk, allowlisted network, and guest Git branch; work returns to your checkout only after you review it with abx diff and apply it with abx land.
abxis before1.0, so expect breaking changes between releases; see the changelog.
Documentation · Quickstart · CLI reference · Authentication · Security
Install abx, then install smolvm 1.38.2 (see Install for the requirements and other options):
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh | shCheck host readiness, build a base VM template once, and configure an agent login:
abx status # check smolvm, base image, and agent auth
abx image build claude # build the template (omit names to include all six agents)
abx auth set claude # prompt for an API key, or pass --from 'op://...' / 'pass://...'
abx auth verify claude # run a bounded live probe against the template (may incur charges)Start a box from any Git checkout with at least one commit:
cd ~/src/my-project
abx claude fix-authabx creates the box fix-auth, seeds /work from HEAD on branch agent/fix-auth, and attaches your terminal. Press Ctrl-\ to detach and run the same command to reattach.
When the agent finishes, review its commits and apply them to your checkout:
abx diff fix-auth
abx land fix-authUse abx tui (or plain abx in a terminal) for an interactive dashboard, abx wizard to build commands from menus, or abx shell --no-git for a scratch box with an empty /work and no host files.
- Each box runs in its own smolvm microVM with a dedicated disk.
abx stop <box>keeps the disk;abx rm <box>deletes the VM and archives its transcripts. abx landapplies exactly what the lastabx diffshowed and refuses changes to paths that can run code on your host, such as CI workflows or Git hook configs, until you pass--allow-executable.abx rmrefuses to delete unlanded commits without--force. See Review and land.- Boxes allow only the upstream hosts required by their agents and login mode. A plain
abx shellbox starts offline. Network rules are fixed at creation and inspected withabx net <box>. - In
maskedaccess mode, API keys and host-managed OAuth tokens stay on your machine and the guest receives an opaque handle scoped to one endpoint.globalandlocalmodes let the agent sign in inside the guest. - Host state lives under
~/.abx(orABX_HOME). Each box shares only itstranscriptsdirectory at/abx/transcripts, outside every credential and config path.
| Agent | Command | Supported auth modes |
|---|---|---|
| Claude Code | abx claude <box> |
Anthropic API key (masked), guest login |
| Codex | abx codex <box> |
OpenAI API key (masked), ChatGPT device login (host-managed or guest) |
| OpenCode | abx opencode <box> |
Anthropic or OpenAI API key (masked), ChatGPT connected-app login (host-managed) |
| Pi | abx pi <box> |
Anthropic or OpenAI API key (masked), ChatGPT login (host-managed) |
| Antigravity | abx agy <box> |
Gemini API key (masked), Google account login (guest) |
| Cursor | abx cursor <box> |
Cursor login (guest) |
Run abx help auth <agent> to see the routes for an agent, or abx auth status to check saved configuration and verification state. See Authentication for secret references (keyring:// for the macOS Keychain or Linux Secret Service, op://, pass://, gopass://, sops://, systemd-creds://) and host-managed login setup.
| Host platform | Guest arch | Host requirements |
|---|---|---|
macOS arm64 |
arm64 |
Apple Silicon, Git 2.39+ (Xcode Command Line Tools), smolvm 1.38.2 |
Linux x86_64 (glibc) |
amd64 |
Unprivileged user with /dev/kvm access, local ext4 for state, /usr/bin/sqlite3, Git 2.39+, smolvm 1.38.2 |
Linux arm64 (glibc) |
arm64 |
Same as Linux x86_64 |
abx requires exactly smolvm 1.38.2 and looks it up at fixed paths, never PATH: ~/.local/bin/smolvm and /usr/local/bin/smolvm, plus /opt/homebrew/bin/smolvm on macOS or /opt/smolvm/smolvm on Linux. Set ABX_SMOLVM to override. On Linux, never run operational commands as root (only status, help, and --version run as root). Run abx status after installing to see distro-specific commands for anything missing.
Install the latest release with:
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh | shThe script picks the archive for your platform from GitHub Releases, checks it against the release's SHA256SUMS, confirms that abx --version reports the expected release, and installs abx to ~/.local/bin. It changes nothing else on your system. To read it before running it:
curl -fsSLO https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh
less install.sh
sh install.sh| Variable | Effect |
|---|---|
ABX_VERSION |
Install this release (for example 0.1.0) instead of the latest stable one. |
ABX_INSTALL_DIR |
Install abx here instead of ~/.local/bin. |
ABX_VERIFY_ATTESTATION=1 |
Also verify the archive's build provenance with gh attestation verify. Requires the GitHub CLI. |
Pass them to sh, for example curl -fsSL …/install.sh | ABX_VERSION=0.1.0 sh. The script installs only abx; install smolvm separately (see the requirements above).
On macOS, release binaries are not yet signed with an Apple Developer ID or notarized. The install script is not affected. If you download the archive through a browser instead, run xattr -d com.apple.quarantine abx before the first run.
Requires Node.js 24+, pnpm 12, and Xcode Command Line Tools on macOS (or clang, build-essential, and GNU make on Linux). From the repository root:
pnpm install --frozen-lockfile
make
export PATH="$PWD/build:$PATH"
abx --versionmake writes the native binary to build/abx, and make install installs it to /usr/local/bin/abx (override with PREFIX=...). Prebuilt darwin-arm64, linux-x86_64-gnu, and linux-arm64-gnu archives with SHA256SUMS and build provenance attestations are available on GitHub Releases for the install script or a manual download.
| Command | Does |
|---|---|
abx <agent> [box] |
Create, start, or reattach an agent session |
abx shell [box] |
Open a guest shell or run one command (-- <cmd>) |
abx tui |
Open the interactive TUI for the current repo and abx environment |
abx wizard |
Build and preview common commands interactively |
abx ls |
List boxes and their state |
abx net [box] |
Show the network policy and allowed hosts |
abx diff [box] |
Print the guest's commits as a patch |
abx land [box] |
Apply the last reviewed diff to your checkout |
abx stop [box] |
Stop a running box while keeping its disk |
abx rm <box> |
Delete a box and archive its record and transcripts |
abx status |
Check host readiness, image, and agent auth |
abx auth status |
Inspect configured and verified credentials |
abx workspace |
Show, link, or reset the workspace that owns this folder's boxes |
abx image build |
Build or rebuild the base VM template |
Run abx help <command> for flags, or abx help --json for the machine-readable command schema. For headless runs and automation from another coding agent (--no-create, --no-tty, --json, exit code 125), see Automation.
The documentation site covers installation, authentication, Git workflow, network policy, automation, the full CLI reference, and architecture. Start with the Quickstart; if something goes wrong, see Troubleshooting.
See CONTRIBUTING.md for development setup, test tiers (pnpm run test, pnpm run test:e2e:novm, pnpm run check), and how to add commands or agent adapters.
MIT. See LICENSE.