Skip to content

Quickstart

Build the base image, sign in an agent, run a box, review its commits and land them in your checkout.

Updated

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

  • abx and 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, and abx auth verify makes a real model call that counts against your subscription or may incur API charges.

Run it

  1. Check host readiness

    abx status

    abx status checks 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.

  2. 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 claude

    Name 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.

  3. Save a sign-in

    Create a Claude subscription token on this machine, then save it:

    claude setup-token
    abx auth set claude

    abx prompts for the sk-ant-oat… token that claude setup-token printed and stores it in the OS keyring (the macOS Keychain, or the Secret Service on Linux). For an Anthropic API key instead, run abx 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.

  4. Verify the sign-in

    abx auth verify claude

    This 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 masked mode, the saved credential is not released to a box until it has been verified. See Verification.

  5. Start a box

    From the checkout:

    cd ~/src/my-project
    abx claude fix-auth

    abx creates the box fix-auth, seeds /work from HEAD on the branch agent/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.

  6. Detach and reattach

    Press Ctrl-\ to detach. The session keeps running in the VM. Run the same command to reattach:

    abx claude fix-auth

    abx ls lists your boxes and their state. See Sessions.

  7. Review the commits

    abx diff fix-auth

    The patch goes to stdout and a review summary to stderr. Add --stat for a diffstat.

  8. Land them

    abx land fix-auth

    land applies exactly what the last diff showed and moves your branch to the guest’s tip. If either branch moved since the review, it refuses and asks you to run abx diff again. 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.

  9. Stop and remove the box

    The box keeps running after you detach. Reattach with abx claude fix-auth and exit Claude Code, then:

    abx stop fix-auth
    abx rm fix-auth

    abx stop refuses with box-busy while a session or other guest process is still running; --force stops it anyway. abx rm deletes the box’s VM and disk and archives its record and transcripts. Without --force, rm refuses a running box (box-running) and one with commits that were never landed (unlanded-commits).

Next steps

Type to search…

↑↓ navigate↵ selectEsc close