---
title: "Quickstart"
description: "Build the base image, sign in an agent, run a box, review its commits and land them in your checkout."
---

> Documentation Index
> Fetch the complete documentation index at: https://sandrinodm.github.io/agent-box/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

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](https://sandrinodm.github.io/agent-box/get-started/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**

   ```sh
   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`.

   ```sh
   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:

   ```sh
   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](https://sandrinodm.github.io/agent-box/authentication/secret-providers/).
4. **Verify the sign-in**

   ```sh
   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](https://sandrinodm.github.io/agent-box/authentication/verification/).
5. **Start a box**

   From the checkout:

   ```sh
   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:

   ```sh
   abx claude fix-auth
   ```

   `abx ls` lists your boxes and their state. See [Sessions](https://sandrinodm.github.io/agent-box/concepts/sessions/).
7. **Review the commits**

   ```sh
   abx diff fix-auth
   ```

   The patch goes to stdout and a review summary to stderr. Add `--stat` for a diffstat.
8. **Land them**

   ```sh
   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](https://sandrinodm.github.io/agent-box/git-workflow/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:

   ```sh
   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`).

> **Scratch boxes**
>
> Outside a Git checkout, or with `--no-git`, boxes start with an empty `/work` and have no `diff` or `land`. For example, `abx shell --no-git` opens a scratch shell.

## Next steps

- [Boxes](https://sandrinodm.github.io/agent-box/concepts/boxes/) — Lifecycle, stop versus remove, and box selection.
- [Agents](https://sandrinodm.github.io/agent-box/agents/) — The six agents and how each signs in.
- [Network policy](https://sandrinodm.github.io/agent-box/network/policy/) — How a box's allowed hosts are chosen.
- [Terminal UI](https://sandrinodm.github.io/agent-box/interfaces/tui/) — A dashboard for the current repo.

Source: https://sandrinodm.github.io/agent-box/get-started/quickstart/index.mdx
