---
title: "Install"
description: "Install abx 0.3.0 with the install script, add smolvm 1.38.2, and check what your host needs."
---

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

# Install

Use this page to install `abx` and the one dependency it does not install itself, smolvm. It also lists what each operating system must provide. After installing, run `abx status`, which checks every requirement and prints what to fix.

## Requirements

| Host | Guest architecture | What it needs |
| --- | --- | --- |
| macOS `arm64` (Apple silicon) | `arm64` | `/usr/bin/git` 2.39 or later (the Xcode Command Line Tools provide it), smolvm 1.38.2 |
| Linux `x86_64` (glibc) | `amd64` | An unprivileged user with access to `/dev/kvm`, local `ext4` for state, `/usr/bin/sqlite3`, `/usr/bin/git` 2.39 or later, smolvm 1.38.2 |
| Linux `arm64` (glibc) | `arm64` | Same as Linux `x86_64` |

Intel Macs and musl-based Linux distributions such as Alpine are not supported. On Linux, `abx` refuses to run operational commands as `root`; only `status`, `help` and `--version` work there. See [Linux hosts](https://sandrinodm.github.io/agent-box/operate/linux-hosts/) for the details.

## Install abx

The install script downloads the release archive for your platform from [GitHub Releases](https://github.com/sandrinodm/agent-box/releases) and installs `abx` into `~/.local/bin`. To update an existing installation later, run the same script again or see [Upgrading](https://sandrinodm.github.io/agent-box/operate/upgrading/):

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

It changes nothing else on your system, and it installs only `abx`. To read the script before you run it:

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

### What the script checks

Before it installs anything, the script:

- Downloads `abx-<version>-<platform>.tar.gz` and the release's `SHA256SUMS`, and refuses to continue if the archive's SHA-256 does not match.
- Extracts the `abx` binary and runs `abx --version`. It stops unless the output is exactly `abx <version>` for the release it asked for.
- Optionally verifies the archive's build provenance, when you set `ABX_VERIFY_ATTESTATION=1`.

The platform is `darwin-arm64`, `linux-x86_64-gnu` or `linux-arm64-gnu`. The script stops on other platforms, and on Linux systems that do not report a GNU C library. If the install directory is not on your `PATH`, it prints a reminder.

### Options

Set these as environment variables for `sh`:

| Variable | Effect |
| --- | --- |
| `ABX_VERSION` | Install this release, for example `0.3.0`, instead of the latest stable one. A leading `v` is accepted. |
| `ABX_INSTALL_DIR` | Install `abx` into this directory instead of `~/.local/bin`. |
| `ABX_VERIFY_ATTESTATION` | Set to `1` to also run [`gh attestation verify`](https://cli.github.com/manual/gh_attestation_verify) on the archive. Requires the GitHub CLI. |
| `ABX_RELEASES_URL` | Base URL of the releases to download from, for mirrors and tests. Defaults to `https://github.com/sandrinodm/agent-box/releases`. Plain `http://` is accepted only when you set it explicitly. |

For example, to install `0.3.0` and verify its provenance:

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

### macOS binary is unsigned

The macOS binary is not signed with an Apple Developer ID or notarized. The install script is not affected. If you download the archive in a browser instead, macOS quarantines it. Clear the flag before the first run:

```sh
xattr -d com.apple.quarantine abx
```

## Install smolvm

`abx` runs every box in a smolvm microVM and does not install smolvm for you.

`abx` requires exactly smolvm 1.38.2 and rejects any other version. It does not search `PATH`. Without `ABX_SMOLVM`, it looks for the `smolvm` launcher at these paths, in this order:

| Order | macOS | Linux |
| --- | --- | --- |
| 1 | `~/.local/bin/smolvm` | `~/.local/bin/smolvm` |
| 2 | `/opt/homebrew/bin/smolvm` | `/usr/local/bin/smolvm` |
| 3 | `/usr/local/bin/smolvm` | `/opt/smolvm/smolvm` |

On macOS, `abx` uses the first of these paths that is executable. On Linux, it uses the first path that exists, so a broken link at `~/.local/bin/smolvm` is not skipped.

Set `ABX_SMOLVM` to an absolute path to use a different launcher. When it is set, `abx` uses only that path and skips the list above. On Linux, the launcher must still be a file named `smolvm` in `~/.local/bin`, `/usr/local/bin`, `~/.smolvm` or `/opt/smolvm`. Whichever way a Linux launcher is found, it must resolve to the unmodified smolvm 1.38.2 wrapper installed under `~/.smolvm` or `/opt/smolvm`, and `abx` validates the whole install tree before it runs even `smolvm --version`.

Download smolvm 1.38.2 from the [smolvm release page](https://github.com/smol-machines/smolvm/releases/tag/v1.38.2).

`abx status` prints install instructions for smolvm that match your OS when it is missing. They are:

- **Linux:** download `smolvm-1.38.2-linux-x86_64.tar.gz` or `smolvm-1.38.2-linux-arm64.tar.gz` from the release page, verify its SHA-256, extract it to `~/.smolvm`, and link the launcher at `~/.local/bin/smolvm`.
- **macOS:** download smolvm 1.38.2 from the release page, verify its SHA-256, extract it to `~/.local/opt/smolvm-1.38.2`, and link the launcher at `~/.local/bin/smolvm`.

> **Note**
>
> Credential verification receipts from `abx auth verify` are bound to the smolvm version. A future `abx` release that pins a different smolvm version invalidates them. See [Upgrading](https://sandrinodm.github.io/agent-box/operate/upgrading/).

## Linux host prerequisites

Besides smolvm, a Linux host needs:

- Read and write access to `/dev/kvm`. If the device is group `kvm`, run `sudo usermod -aG kvm "$USER"` and log in again.
- Local `ext4` for `ABX_HOME` (`~/.abx` by default) and for smolvm's state (`ABX_SMOLVM_STATE_DIR`, or your home directory by default). Every other filesystem is refused, including btrfs, XFS, NFS, CIFS, FUSE, overlay and tmpfs, with `State at <path> requires local ext4. Found <type> at <dir>.` If your home directory is on another filesystem, point both variables at directories on an `ext4` mount.
- Standard tools at fixed system paths: `/usr/bin/sqlite3`, `/usr/bin/git` 2.39 or later, `/usr/bin/timeout`, `/usr/bin/mkfifo`, `/usr/bin/sha256sum`, `/bin/sleep` and `/bin/rm`.
- Executable paths and state directories that are owned by you or `root` and are not writable by group or others.

`abx status` shows distro-specific install commands for anything missing. [Linux hosts](https://sandrinodm.github.io/agent-box/operate/linux-hosts/) covers each failure.

## Check the install

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

`abx --version` prints `abx 0.3.0`. `abx status` never starts a VM or creates `~/.abx`, so it is safe to run on a fresh host. If it reports problems, fix them in the order it lists, then continue with the [quickstart](https://sandrinodm.github.io/agent-box/get-started/quickstart/).

## Build from source

Building needs Node.js 24 or later, `pnpm` 12, and the Xcode Command Line Tools on macOS or `clang`, `build-essential` and GNU `make` on Linux. From a checkout of the [repository](https://github.com/sandrinodm/agent-box):

```sh
pnpm install --frozen-lockfile
make
export PATH="$PWD/build:$PATH"
abx --version
```

`make` writes the native binary to `build/abx`. `make install` copies it to `/usr/local/bin/abx`; set `PREFIX=...` to install elsewhere. See [Contributing](https://sandrinodm.github.io/agent-box/project/contributing/) for the development workflow.

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