---
title: "Upgrading"
description: "Upgrade abx and smolvm, and know when to rebuild the image and verify agents again."
---

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

# Upgrading

Use this page when a new `abx` release comes out, or when `abx status` says smolvm or the image no longer matches. Upgrades touch three things in turn: the `abx` binary, the pinned smolvm it requires, and the image and verification receipts that depend on both.

## Upgrade abx

Run the install script again. It installs the latest stable release over the existing binary.

```sh
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh | sh
```

To install a specific release, or to go back to one, set `ABX_VERSION`. A leading `v` is accepted.

```sh
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh | ABX_VERSION=0.3.0 sh
```

The script checks the archive against the release's `SHA256SUMS`, runs the downloaded binary to confirm that it reports `abx <version>`, and then replaces `abx` in `~/.local/bin` (or in `ABX_INSTALL_DIR`). Set `ABX_VERIFY_ATTESTATION=1` to also verify the build provenance with the GitHub CLI. Without `ABX_VERSION`, the script installs the latest stable release only; to install a published prerelease, pass its version in `ABX_VERSION`. See [Install](https://sandrinodm.github.io/agent-box/get-started/install/) for all options.

### Upgrade from source

If you installed from source, or want a change on `main` whose release is not published yet, pull the latest commits, rebuild, and reinstall:

```sh
git pull --ff-only
pnpm install --frozen-lockfile
make
make install PREFIX="$HOME/.local"
```

`PREFIX="$HOME/.local"` replaces `~/.local/bin/abx`, matching the install script's default location. Omit `PREFIX` to install to `/usr/local/bin/abx`, or set `BINDIR=...` for another directory. See [Build from source](https://sandrinodm.github.io/agent-box/get-started/install/#build-from-source) for build prerequisites.

### Check the result

```sh
abx --version
abx status
```

Your boxes, workspaces and saved authentication live in `ABX_HOME` and are not touched by the install.

## Upgrade smolvm

Each `abx` release accepts exactly one smolvm version, which is 1.38.2 for `abx` 0.3.0. A different version fails with `Expected smolvm 1.38.2. Found ...`. Upgrade smolvm only to the version a newer `abx` release names, and upgrade `abx` first, since the older binary will not accept the newer smolvm.

1. **Install the pinned version**

   Install the smolvm version the new release requires at one of the locations `abx` checks, or point `ABX_SMOLVM` at it. On Linux the install tree is validated before use; see [Linux hosts](https://sandrinodm.github.io/agent-box/operate/linux-hosts/#smolvm-installation).
2. **Check readiness**

   ```sh
   abx status --json
   ```

   `backend.version` should show the pinned version and `backend.supported` should be `true`.
3. **Verify the agents again**

   A verification receipt is bound to the smolvm implementation and version, so after a smolvm upgrade every agent that uses a masked credential is unverified. Verify each one you use:

   ```sh
   abx auth verify claude
   ```

   `abx auth verify` makes a real model request on the selected account and can incur charges.

Until an agent is verified, launching it fails with `<agent> authentication is unavailable.` Guest logins (`global`, `local`) need no verification. See [Verification](https://sandrinodm.github.io/agent-box/authentication/verification/).

## Images after an upgrade

Existing boxes keep the image they were created from. A new image affects only boxes created afterwards.

`abx` pins the guest artifacts and agent versions of an image. When a new release changes those pins, the installed image no longer matches. Creating a box, `abx auth verify` and `abx image build` without `--rebuild` then fail with `image-changed` and the message `The offline template does not match the pinned guest artifacts. Rebuild the image.` `abx status` does not compare the image with the new pins, so it still reports the image as present. Rebuild it:

```sh
abx image build --rebuild
```

Without `--rebuild`, `abx image build` reuses an intact image with the same agents and pins, and reports `reused: true` with `--json`. `--rebuild` builds a fresh one. Name the agents you use, or omit them to include all six. A build takes several minutes and needs network access.

Two other cases call for a rebuild: `image-invalid` (a damaged image) and `image-changed` from a modified pack on disk. Asking for a different set of agents builds a new image without `--rebuild`.

A new image is a new template, and a masked credential needs verification for the active template. Run `abx auth verify <agent>` for each agent after rebuilding. To pick up newer agent versions in a box, create a new box from the new image.

`abx status` shows `image.present`, the agents in the image, and a `next` list of the commands to run, in order. It reports a damaged image (`image` is `null` in `--json`), but not one that only differs from the new pins. See [Images](https://sandrinodm.github.io/agent-box/concepts/images/).

## Upgrade checklist

1. Upgrade `abx` with the install script and check `abx --version`.
2. Run `abx status`. Install the smolvm version it names if `backend` is not supported.
3. Run `abx image build --rebuild` if the release changed the image pins (a new box or `abx image build` fails with `image-changed`) or the image is damaged.
4. Run `abx auth verify <agent>` for each agent that uses a masked credential.
5. Create new boxes for work that should use the new image.

The release notes for each version are in the [changelog](https://github.com/sandrinodm/agent-box/blob/main/CHANGELOG.md). See also [Releases](https://sandrinodm.github.io/agent-box/project/releases/).

Source: https://sandrinodm.github.io/agent-box/operate/upgrading/index.mdx
