This walkthrough takes a Git checkout from nothing to a reviewed, landed change made by Claude Code in a box. It assumes you have installed abx and smolvm 1.38.2 (see Install). The other agents work the same way with their own command, for example abx codex <box>.
Prerequisites
abxand smolvm 1.38.2 installed.- A Git checkout with at least one commit.
- A Claude subscription with Claude Code installed on this machine (to run
claude setup-token), or an Anthropic API key. The credential stays on your host, andabx auth verifymakes a real model call that counts against your subscription or may incur API charges.
Run it
Check host readiness
abx statusabx statuschecks smolvm, the base image, agent sign-ins and your workspace, and lists what to run next. It never starts a VM. Fix anything it reports as missing before you continue.Build the base image
Build the template that new boxes start from. You do this once, and again after you upgrade
abx.abx image build claudeName the agents to include, or omit the names to include all six. This downloads and installs the agent inside a disposable builder VM, so it takes a while.
Save a sign-in
Create a Claude subscription token on this machine, then save it:
claude setup-token abx auth set claudeabxprompts for thesk-ant-oat…token thatclaude setup-tokenprinted and stores it in the OS keyring (the macOS Keychain, or the Secret Service on Linux). For an Anthropic API key instead, runabx auth set claude --mode api-key. On a Linux host without an unlocked Secret Service, such as a headless SSH session, the prompt fails. Read the secret from a secret provider instead by passing a reference such as--from 'op://...'or--from 'pass://...'. See Secret providers.Verify the sign-in
abx auth verify claudeThis runs a bounded live probe against the template; with a token it counts against your subscription’s usage, and with an API key it may incur charges. In
maskedmode, the saved credential is not released to a box until it has been verified. See Verification.Start a box
From the checkout:
cd ~/src/my-project abx claude fix-authabxcreates the boxfix-auth, seeds/workfromHEADon the branchagent/fix-auth, and attaches your terminal to Claude Code. Ask the agent to make a change and commit it. Uncommitted changes in the guest are not landed.Detach and reattach
Press
Ctrl-\to detach. The session keeps running in the VM. Run the same command to reattach:abx claude fix-authabx lslists your boxes and their state. See Sessions.Review the commits
abx diff fix-authThe patch goes to stdout and a review summary to stderr. Add
--statfor a diffstat.Land them
abx land fix-authlandapplies exactly what the lastdiffshowed and moves your branch to the guest’s tip. If either branch moved since the review, it refuses and asks you to runabx diffagain. If the change touches a path that can run code on your host, it lists the paths and refuses until you repeat the command with--allow-executable. See Review and land.Stop and remove the box
The box keeps running after you detach. Reattach with
abx claude fix-authand exit Claude Code, then:abx stop fix-auth abx rm fix-authabx stoprefuses withbox-busywhile a session or other guest process is still running;--forcestops it anyway.abx rmdeletes the box’s VM and disk and archives its record and transcripts. Without--force,rmrefuses a running box (box-running) and one with commits that were never landed (unlanded-commits).