Stop and start
Stop shuts a sandbox down cleanly and keeps only its disk. Memory and running processes are not kept. Start boots a fresh VM from that disk: a cold boot, with the same id, env, metadata, volumes and network rules.
curl -X POST https://api.groundbox.dev/v1/sandboxes/sbx_.../stop \
-H "Authorization: Bearer $GROUNDBOX_API_KEY"
curl -X POST https://api.groundbox.dev/v1/sandboxes/sbx_.../start \
-H "Authorization: Bearer $GROUNDBOX_API_KEY"Three ways to put a sandbox away:
- Pause keeps memory, processes and disk. Resume brings it back as it was.
- Stop keeps the disk only. Start boots it again; anything that was running has to be started again.
- Delete ends it for good. Nothing is kept.
- A stopped sandbox is billed for storage only, at the same rate as a paused one: $0.05 per GB-month.
- Stopped and paused sandboxes count toward the same limit for a team, and share the 30-day rule: one that is not started or resumed in that time is deleted.
- Its status reads
shutting_down, thenshut_down. The statusstoppedmeans something else: the sandbox has ended and cannot come back (a deleted sandbox readsstopped). Start takes it throughstartingtorunning, andshut_down_atsays when it was stopped. - Each call fits one state. Start on a paused sandbox, or resume on a stopped one, answers
409and names the call to use. - A sandbox with volumes cannot be paused, but it can be stopped and started. Its volumes are attached again on start.
- Start answers
503 no_capacitywhen the machine that keeps the disk has no room right now. The sandbox stays stopped; try again later.
At the timeout
By default a sandbox that reaches its timeout is deleted. Set on_timeout when you create it to choose: "delete" (the default), "stop" to shut it down and keep its disk, or "pause" to pause it. Both work on every plan. The sandbox's on_timeout field shows what it will do.
curl https://api.groundbox.dev/v1/sandboxes \
-H "Authorization: Bearer $GROUNDBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cpus": 2, "timeout_minutes": 60, "on_timeout": "stop"}'In the SDKs: stop_sandbox(id) and start_sandbox(id). In the CLI: groundbox sandbox stop <id> and groundbox sandbox start <id>. For agents, the MCP tool sandbox with action stop or start.