Guides
Pause and resume
Every Annex sandbox can pause. Pause keeps it on its original provider account so you can resume it later with the same ID and files. Annex never deletes it, starts another one or fails over to another account.
Start any sandbox
No special route or requirement is needed. pause_resume is true on every sandbox. The older requires: ["pause_resume"] input is still accepted and now matches every provider.
KEY=anx_live_…; A=https://annex.eversonder.com/v1/workspaces/wsp_… # your key and workspace
curl -s -X POST $A/sandboxes -H "Authorization: Bearer $KEY" \
-H 'Content-Type: application/json' \
-d '{"route":"cheapest","vcpu":2,"memory_gib":4}'Pause and resume
# keep this sandbox and its files
curl -s -X POST $A/sandboxes/sbx_…/pause -H "Authorization: Bearer $KEY"
# resume that same sandbox on the same account
curl -s -X POST $A/sandboxes/sbx_…/resume -H "Authorization: Bearer $KEY"Both return the sandbox. Repeating pause on a paused sandbox, or resume on a running one, is safe and returns 200 without making another provider operation. In MCP, use sandbox_pause and sandbox_unpause. sandbox_resume has a different job: it restores a checkpoint into a new sandbox.
States and retries
| Status | What it means |
|---|---|
running | Commands and files are available. |
pausing | Annex asked the provider to pause, but the outcome is not confirmed yet. |
paused | The same sandbox and files are retained; commands and files return 409 sandbox_paused. |
resuming | Annex asked the provider to resume, but the outcome is not confirmed yet. |
If a request times out or loses its answer, retry pause or resume with the same sandbox ID. Annex keeps an unconfirmed operation pending and never creates a replacement. An active command, file transfer, output stream, checkpoint or cache job may answer 409 sandbox_busy; close or finish it, then retry.
Files, limits and billing
- The sandbox ID, provider handle, connected account, files and original injected secrets stay with the sandbox.
pause_mode: "suspended"means the provider released compute.pause_billing_continuesisfalse, paused time is excluded from Annex's cost estimate and lifetime clock, and the sandbox releases its running slot. Retained storage charges may still apply. E2B and most cloud providers use this mode.pause_mode: "frozen"means a Linux server froze the container. Its CPU work stops and its files remain, but the allocation, cost, Annex lifetime and running slot continue.pause_mode: "access_hold"means the provider can't suspend this sandbox. Annex fences commands and files while leaving the original workload allocated, so provider billing, Annex's lifetime clock and running limits continue. Providers with no suspend call (Railway, and Daytona's current platform), older server helpers and Mac servers use this mode.- Existing task tokens keep their 24-hour expiry. Network connections to outside services may need reconnecting after resume.
- Stop is permanent: it deletes the retained sandbox and its files.
Pause or checkpoint?
| Use | Choose it when |
|---|---|
| Pause and resume | You need the same sandbox, account and files. Every provider is supported; pause_mode and pause_billing_continues report what stopped. |
| Checkpoint and restore | You need a portable file snapshot that can start a new sandbox on another provider. Running programs and memory do not go into a checkpoint. |
See Checkpoints and carrying on for portable recovery and automatic checkpoints.