Skip to content

How sandboxes work

A sandbox is a private computer for one agent or project. Each one is isolated from every other sandbox and from the servers it runs on, and can’t reach private networks or cloud metadata services.

Size CPUs Memory For
Small 1 2 GB Light agents and bots
Medium 2 4 GB Coding agents (recommended)
Large 4 8 GB Big builds and test suites

Sizes are the most a sandbox may use. You pay for what it actually uses: pricing. Storage is 4 GB by default, up to 100 GB.

Change a sandbox’s size at any time, in its Settings or with stillbox resize <id> --cpus 4 --memory 8192 --disk 16384. It keeps its ID, addresses and files. A running sandbox keeps its programs running: the new CPU and memory limits apply at once, and programs that read the machine’s memory total see the new one after its next restart. Memory can’t go below what a running sandbox uses, and storage can’t go below what it holds.

Copies can have their own size: stillbox duplicate <id> --memory 8192 (not less memory than the original uses, since the copy holds it).

When nothing happens in a sandbox for a while (no CPU, network, agent turn, terminal or command), it goes to sleep: its memory and running programs are saved to disk and it stops using memory and CPU. The default is after 3 minutes; you can choose 1 minute to a day, or never, in the sandbox’s settings.

Anything you send to an asleep sandbox wakes it: a chat message, a terminal, a command, a web preview visit or a scheduled task. It carries on exactly where it was, usually in about a second. An agent in the middle of a turn counts as activity, so a sandbox never sleeps mid-task.

State Meaning
Running Awake and working
Asleep Saved to disk; wakes on the next request; costs nothing (storage is free during the beta)
Starting, waking, going to sleep Changing state
Stopped Shut down, with its disk kept; starting it begins fresh programs
Needs attention Something went wrong; the sandbox page says what

Everything a sandbox writes to its disk is kept through sleep, restarts and server maintenance. Upload and download files in the console’s Files tab, with stillbox cp, or through the API.

A sandbox’s disk lives on the server it runs on. If that server fails for good, the sandbox starts again on another server without its files. Keep work you can’t lose in Git, and save checkpoints (by hand or on a timer) to come back to.

A sandbox’s Activity tab shows:

  • Resources: CPU and memory while it was awake, and how full its disk is, over the last hour, day, week or 30 days. Stretches when it slept are gaps. From the API: GET /v1/sandboxes/{id}/metrics?range=24h.
  • Agent runs: each turn of its agent, with its tools, time and cost, kept 14 days.
  • Commands: commands run through the API or stillbox exec, with their exit code, and the agent’s shell commands. Readable while the sandbox sleeps; kept 14 days. Command lines are kept, their output isn’t. stillbox history <sandbox> or GET /v1/sandboxes/{id}/commands.
  • Processes: what is running in it now, read when you ask (it wakes the sandbox if it sleeps). stillbox ps <sandbox> or GET /v1/sandboxes/{id}/processes.

Commands and processes are recorded only while your organization records what agents do (see data controls).