Start
Overview
Annex gives an AI agent a computer from any sandbox provider you have connected (45 of them, and your own servers), picked by price, speed, region or name. It moves on when a provider can't start one, saves checkpoints, and carries work on elsewhere when a provider ends a sandbox. Use your own provider accounts (each bills you directly), Annex credit (no account needed), or both.
Base URL
https://annex.eversonder.com/v1The full description is public: openapi.yaml and openapi.json (OpenAPI 3.1).
API keys
Make a key in the dashboard under API keys (see Quickstart). It is shown once. Send it as a bearer token:
Authorization: Bearer anx_live_…- A key belongs to one workspace and reaches only
/v1/workspaces/{wid}/…of that workspace (any other is 404), plusGET /v1/connectors. - Anything that widens access or spends your money stays with people: making keys, connecting accounts, editing and revealing secrets. A key gets
403there. - Each key may make 600 requests a minute; past that,
429withRetry-After.
The workspace in the path
Every resource lives under a workspace: /v1/workspaces/wsp_…/sandboxes. Find yours in the dashboard's address bar, or with GET /v1/workspaces when signed in.
Responses
One resource comes under its singular name; lists under the plural, with meta.
{ "sandbox": { "id": "sbx_8f3k9a2b7c4d1e0q", "status": "running", … } }
{ "sandboxes": [ … ], "meta": { "page": 1, "total": 87, "pageCount": 4, "perPage": 25 } }Nullable fields are always present (as null). Times are RFC 3339 in UTC. Money is in micro-dollars (cost_micros, currency: "USD"). 204 means done, nothing to say.
Pagination
?page= (from 1) and ?perPage= (25 by default, 100 at most). A command's output pages by cursor instead: pass meta.next_cursor until meta.done.
Errors
{ "message": "sandbox not found", "code": "not_found" }
{ "message": "The given data was invalid", "code": "validation_error",
"errors": { "vcpu": ["The vcpu field must be between 1 and 64."] } }| Code | Status | When |
|---|---|---|
bad_request | Status400 | WhenMalformed body |
unauthenticated | Status401 | WhenNo key, or an unknown or revoked one |
forbidden | Status403 | WhenA people-only action |
not_found | Status404 | WhenMissing, or in another workspace |
conflict | Status409 | WhenThe resource is busy or in the wrong state |
limit_reached | Status409 | WhenA running or spend limit; the message says which and where to change it |
sandbox_lost | Status409 | WhenIts provider ended it; with replaced_by and replacement_resume |
precondition_failed | Status412 | WhenA key-value write's If-Match is stale |
validation_error | Status422 | WhenFields are wrong (errors by field), or a value is unknown |
no_provider | Status422 | WhenNothing connected fits the route, region or size |
provider_refused | Status422 | WhenA provider refused the call in a way it would again |
too_many_requests | Status429 | WhenRate limit; wait Retry-After |
provider_unavailable | Status503 | WhenEvery provider on the route was unavailable; the message gives their reasons |
internal_error | Status500 | WhenSomething went wrong on our side |
Idempotency
Creating a sandbox, resuming, checkpointing, applying a plan and pushing a queue message take an Idempotency-Key header (any unique string, such as a UUID). Retry with the same key and the same body and you get the first answer back (Idempotent-Replayed: true) instead of a second paid machine.