Start
The annex command
Start sandboxes, run commands in them and move files from your own terminal. Sign in once in a browser; after that the dashboard isn't needed.
Install
curl -fsSL https://annex.eversonder.com/cli/install.sh | shOn a Mac or Linux, Intel or ARM. On Windows, use it inside WSL. The script checks the download before installing it.
The command is open source, at github.com/eversonder/annex-cli. To build it yourself instead, with Go installed:
go install github.com/eversonder/annex-cli/cmd/annex@latestUpdate
annex updateIt downloads the newest build for this computer, checks it against the hash Annex publishes beside it, and puts it in place of the old one. Installed in /usr/local/bin by someone else? Run sudo annex update.
When something is slow or doesn't work
annex doctorIt checks, in turn, that this annex is the newest, that its key works, that each connected account's key still works, and that a running sandbox runs a command, and says how long each took. Paste what it prints when you ask for help.
ANNEX_TIMING=1 annex run -- lsBefore any command, ANNEX_TIMING=1 prints each request to Annex on stderr: how long the whole trip took, and how much of it Annex spent and how much the provider did.
Sign in
annex loginIt prints a short code and opens a page in your browser. Check the code matches, choose a workspace and approve. The terminal then holds an API key for that workspace, named CLI on your-computer, in ~/.config/annex/config.json. Revoke it under API keys to sign that computer out.
Already have a key? annex login --key anx_live_…, or set ANNEX_API_KEY for scripts and CI.
Use it
annex start --route cheapest --vcpu 2 --memory 4
annex ls
annex shell # a terminal in the sandbox
annex run -- npm test # one command; exits with its exit code
annex cp report.csv sbx_…:/home/user/report.csv
annex cp sbx_…:/home/user/chart.png .
annex stop| Command | What it does |
|---|---|
annex start | Starts a sandbox. --route is cheapest, fastest or a provider's name; --region, --vcpu and --memory are optional. |
annex ls | Running sandboxes; -a for all. |
annex info | One sandbox: where it runs, its size, rate and cost so far. |
annex shell | A terminal in the sandbox: its own shell, key by key, so editors, prompts, Tab and Ctrl+C work as they do over ssh. exit or Ctrl+D leaves. With --lines, or where a sandbox can't open one, each line runs as a command instead and the folder (cd) and exported variables carry over from line to line. |
annex tunnel | annex tunnel sbx_… 5432 lets programs on your computer reach port 5432 in the sandbox at 127.0.0.1:5432, as ssh -L does; --local picks another port on your side. Anything on your computer can use that port while it runs, a web page in your browser included. Ctrl+C stops it. |
annex run -- … | Runs one command and streams its output. Its exit code becomes the command's. |
annex files | Lists a folder. |
annex cp | Copies a file in or out. The sandbox side is sbx_…:/path. |
annex logs | What the sandbox has logged. |
annex pause, resume, stop | Pause keeps the files; stop ends the sandbox for good. |
annex template | The workspace's templates: ls, apply (saves an annex.yml), show, rm. |
annex providers | The accounts the workspace has connected, and any whose key the provider refused. |
annex providers add [name] | Connect a provider. It opens the dashboard's page for it: adding an account takes a signed-in person, never this computer's key. |
annex providers key <id> | Replace an account's key, on the same connection. It opens the dashboard's page for it, for the same reason. |
annex providers check <id> | Ask the provider whether the account's key still works. |
annex connect claude | Give Claude Code Annex's tools with this computer's key; annex connect cursor for Cursor (--project writes a file for the project that holds no key). |
annex whoami | Which workspace this terminal uses. |
Leave the sandbox ID out when exactly one is running. Add --json to any command for the API's own answer.
What it isn't
annex shell keeps one connection open to the sandbox, so nothing is asked again for each line. What you type in it isn't kept: the task's activity gets one line saying a terminal was opened, and secret values are hidden in what it shows, as in command output. The first time in a sandbox it takes a few seconds longer, while Annex puts a small helper there. A sandbox that can't reach Annex's address gets the line-at-a-time shell, where a program that asks a question while it runs, or draws the whole screen (an editor, top), can't be used. Connecting a provider account is still done in the dashboard, as it needs your keys.