Start

Connect your agent

Agents use Annex two ways: as an MCP server (Claude Code, Cursor and other MCP clients get sandbox tools with no code), or over the HTTP API. Both use an API key from API keys in the sidebar.

MCP

Streamable HTTP at https://annex.eversonder.com/mcp, authenticated with the key as a bearer token. The key's workspace is the scope: no tool takes a workspace id.

With the annex command installed and signed in, one command does it, with no key to paste:

Terminal
annex connect claude     # Claude Code, in every project
annex connect cursor     # Cursor

Or by hand:

Claude Code

Terminal
claude mcp add --transport http annex https://annex.eversonder.com/mcp --header "Authorization: Bearer anx_live_…"

Cursor

In .cursor/mcp.json (or the global one), with the key in an environment variable:

JSON
{
  "mcpServers": {
    "annex": {
      "url": "https://annex.eversonder.com/mcp",
      "headers": { "Authorization": "Bearer ${env:ANNEX_API_KEY}" }
    }
  }
}

Other MCP clients

Any client that speaks Streamable HTTP and can send a header works: point it at https://annex.eversonder.com/mcp with Authorization: Bearer anx_live_…. Claude Desktop and claude.ai need OAuth for remote servers, which Annex doesn't offer yet.

The tools are listed in MCP tools. Results are typed JSON and stay small: lists page at 25, output comes 16 KB a call.

For an agent finding its way on its own, /llms.txt lists these pages, every MCP tool and every route an API key may call, in plain text.

Without MCP: the HTTP API

Start a sandbox, run a command and wait up to 60 seconds for it, read its output, move files, then stop it:

Terminal
KEY=anx_live_…; W=wsp_…; A=https://annex.eversonder.com/v1/workspaces/$W

# 1. a sandbox: the cheapest connected account that fits 2 vCPU / 4 GiB
curl -s -X POST $A/sandboxes -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' -H "Idempotency-Key: $(uuidgen)" \
  -d '{"route":"cheapest","vcpu":2,"memory_gib":4}'

# 2. run a command, waiting up to 60 s for it to end
curl -s -X POST "$A/sandboxes/sbx_…/commands?wait=60" -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' -d '{"command":"python3 --version"}'

# 3. the rest of its output, by cursor
curl -s "$A/sandboxes/sbx_…/commands/cmd_…/output" -H "Authorization: Bearer $KEY"

# 4. files: upload, then download
curl -s -X PUT "$A/sandboxes/sbx_…/files/content?path=/home/user/app.py" \
  -H "Authorization: Bearer $KEY" --data-binary @app.py
curl -s "$A/sandboxes/sbx_…/files/content?path=/home/user/out.txt" -H "Authorization: Bearer $KEY"

# 5. stop it (and its bill)
curl -s -X POST $A/sandboxes/sbx_…/stop -H "Authorization: Bearer $KEY"

From inside a sandbox

Every sandbox Annex starts has its own task token in its environment, so code inside it never holds your API key:

VariableWhat
ANNEX_URLAnnex's address
ANNEX_WORKSPACE_IDIts workspace
ANNEX_TASK_IDThe task it belongs to
ANNEX_TASK_TOKENA token for its own task only: its queues, key-value store, webhooks, runs and memory. Revoked when it stops.
Terminal
# claim a job from the task's queue
curl -s -X POST "$ANNEX_URL/v1/workspaces/$ANNEX_WORKSPACE_ID/tasks/$ANNEX_TASK_ID/queues/jobs/claim" \
  -H "Authorization: Bearer $ANNEX_TASK_TOKEN" -H 'Content-Type: application/json' -d '{"max":1}'

# share a result with the rest of the task
curl -s -X PUT "$ANNEX_URL/v1/workspaces/$ANNEX_WORKSPACE_ID/tasks/$ANNEX_TASK_ID/kv/results/1" \
  -H "Authorization: Bearer $ANNEX_TASK_TOKEN" -H 'Content-Type: application/json' -d '{"value":{"ok":true}}'