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.

Terminal
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

Terminal
# 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

StatusWhat it means
runningCommands and files are available.
pausingAnnex asked the provider to pause, but the outcome is not confirmed yet.
pausedThe same sandbox and files are retained; commands and files return 409 sandbox_paused.
resumingAnnex 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_continues is false, 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?

UseChoose it when
Pause and resumeYou need the same sandbox, account and files. Every provider is supported; pause_mode and pause_billing_continues report what stopped.
Checkpoint and restoreYou 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.