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 for the details.
Install abx
The install script downloads the release archive for your platform from GitHub Releases and installs abx into ~/.local/bin. To update an existing installation later, run the same script again or see Upgrading:
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh | shIt changes nothing else on your system, and it installs only abx. To read the script before you run it:
curl -fsSLO https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh
less install.sh
sh install.shWhat the script checks
Before it installs anything, the script:
- Downloads
abx-<version>-<platform>.tar.gzand the release’sSHA256SUMS, and refuses to continue if the archive’s SHA-256 does not match. - Extracts the
abxbinary and runsabx --version. It stops unless the output is exactlyabx <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 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:
curl -fsSL https://raw.githubusercontent.com/sandrinodm/agent-box/main/scripts/install.sh \
| ABX_VERSION=0.3.0 ABX_VERIFY_ATTESTATION=1 shmacOS 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:
xattr -d com.apple.quarantine abxInstall 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.
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.gzorsmolvm-1.38.2-linux-arm64.tar.gzfrom 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.
Linux host prerequisites
Besides smolvm, a Linux host needs:
- Read and write access to
/dev/kvm. If the device is groupkvm, runsudo usermod -aG kvm "$USER"and log in again. - Local
ext4forABX_HOME(~/.abxby 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, withState at <path> requires local ext4. Found <type> at <dir>.If your home directory is on another filesystem, point both variables at directories on anext4mount. - Standard tools at fixed system paths:
/usr/bin/sqlite3,/usr/bin/git2.39 or later,/usr/bin/timeout,/usr/bin/mkfifo,/usr/bin/sha256sum,/bin/sleepand/bin/rm. - Executable paths and state directories that are owned by you or
rootand are not writable by group or others.
abx status shows distro-specific install commands for anything missing. Linux hosts covers each failure.
Check the install
abx --version
abx statusabx --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.
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:
pnpm install --frozen-lockfile
make
export PATH="$PWD/build:$PATH"
abx --versionmake writes the native binary to build/abx. make install copies it to /usr/local/bin/abx; set PREFIX=... to install elsewhere. See Contributing for the development workflow.