Sandboxes
A Flashbox sandbox is a small Linux machine for one agent session. It is ready in tens of milliseconds, it costs nothing while idle, and every command run in it ends in a checkpoint.
What is inside
- Alpine Linux on a real Linux kernel compiled to WebAssembly, with aarch64 programs on an emulated CPU.
- Installed: bash, coreutils, findutils, grep, sed, gawk, diffutils, patch, tar, gzip, xz, zstd, unzip, curl, wget, git, openssh-client, jq, ripgrep, Node.js 24 with npm, Python 3.14 with pip.
- 256 MiB of memory and a 2 GiB disk.
Where the agent can write
| Path | What it is |
|---|---|
/workspace | The working directory for commands, and the default for relative paths |
/tmp | Scratch space |
/home/user | Home: dotfiles and tool caches (npm, pip) |
All three are on the sandbox's own disk, which is what checkpoints copy. The rest of the system is read-only, and commands run as an unprivileged user with no way to become root.
Life cycle
- Create:
POST /v1/sandboxes. A warm machine is handed to you, so this usually takes tens of milliseconds. - Run: commands, file writes and background processes. Each one is billed and checkpointed.
- Hibernate: after 5 minutes without a call (or
POST /v1/sandboxes/:id/hibernate) the machine stops. A hibernated sandbox costs nothing. - Resume: the next call starts it again from its newest checkpoint, automatically. Files come back; with a memory checkpoint, running processes come back too.
- Destroy:
DELETE /v1/sandboxes/:id. Its checkpoints stay for a day, so you can still fork one.
Fit
Flashbox is built for an agent's thin commands. CPU-heavy work (package installs, builds, compilers, test suites) runs about 30 times slower than on a normal machine, because programs run on an emulated CPU, so Flashbox refuses it by default. See Commands.