Sandboxes for AI agents, billed per command
Flashbox is an AI agent sandbox for thin commands: fetching pages and APIs, reading and searching files, small edits and short scripts. A sandbox is ready in about 26 ms, idle ones cost nothing, and every command ends in a checkpoint you can roll back to.
Or watch it in your terminal: npx -y https://flashbox.app/cli.tgz demo (the CLI)
import { Flashbox } from "./flashbox.ts";
const fb = new Flashbox(); // FLASHBOX_API_KEY, FLASHBOX_API_URL
const sb = await fb.create(); // ready in tens of milliseconds
const r = await sb.run("curl -s https://example.com | grep -o '<title>.*</title>'");
r.stdout; // "<title>Example Domain</title>\n"
r.checkpoint.id; // "ck_..." : roll back to it, or fork it
r.cost.usd; // 0.00005
Idle costs nothing
You pay per command: $0.05 per 1,000, a second of CPU included. A sandbox waiting on the model is not billed at all.
Every command is a checkpoint
Roll back any step or fork it into new sandboxes. While a server runs in the background, checkpoints keep it running too.
Ready in about 26 ms
Warm machines wait with their disk mounted, so a new sandbox has nothing left to boot. Commands take tens of milliseconds.
Measured, not promised
to a running sandbox
a thin command, median, including its checkpoint
to roll a sandbox back to an earlier command
per fork of a checkpoint
Server-side times on a Hetzner cx33 server (4 shared vCPU, AMD EPYC Rome at 2.0 GHz, XFS), measured 2026-11-23 with the test suite in our repository. On an Apple M1 Max: 25 ms to create, 42 ms per command.
Built for
- A web-fetch or HTTP tool for your agent
- Reading, grepping and editing files and repositories
- Short Python or Node scripts over data
- Trying something, undoing it, trying again
- Exploring several approaches in parallel with fork
Not built for
- Package installs, builds, type checks and test suites: about 30 times slower under emulation, so refused by default
- GPUs, Docker, or programs that need root
- Inbound connections or long-lived public servers
For those, use a full-machine sandbox; the comparisons say which.
How it compares
| Startup | Billing | Idle sandbox, per hour | Memory checkpoints | |
|---|---|---|---|---|
| Flashbox | about 26 ms (measured) | Per command | $0 | Every command, while processes run |
| E2B | 717 ms create, 662 ms resume (LogRocket) | Per second, allocated CPU and memory | about $0.067 for 1 vCPU and 1 GiB, whether busy or idle | Memory and filesystem (pause and resume) |
| Daytona | 742 ms create (LogRocket) | Per second, allocated CPU and memory | about $0.067 for 1 vCPU and 1 GiB | Disk snapshots and archive |
| Modal | 2.4 s create (LogRocket) | Per second, at least the requested resources | about $0.095 for half a core (1 vCPU) and 1 GiB | Filesystem and memory snapshots |
| Vercel Sandbox | 1.85 s create, 3.3 s resume (LogRocket) | Active CPU plus memory by the hour | about $0.03 to $0.05 | Snapshots ($0.08/GB-month) |
Competitors' figures are their list prices and published or third-party benchmarks, checked 2026-11-23. All comparisons.
Common questions
What is Flashbox?
Flashbox is an AI agent sandbox for thin commands: a Linux machine per agent session, ready in about 26 ms, billed per command, with a checkpoint after every command that you can roll back to or fork.
What counts as a command?
One run of a shell command, one file write or one background-process start. Reading and listing files is free. Each command includes a second of guest CPU; CPU beyond that is billed per CPU-minute.
What does an idle sandbox cost?
Nothing. There is no charge per hour, per GB of memory or per sandbox. An idle sandbox stops running after a few minutes and resumes from its newest checkpoint on the next call.
Can my agent run npm install, builds or tests?
Not by default. Programs run on an emulated CPU, so CPU-heavy work is about 30 times slower than on a normal machine. Flashbox refuses package installs, builds, compilers and test suites with a clear error unless you ask it to try anyway. Sending them to a full machine with the same files is coming next.
How is it isolated?
Each sandbox is Linux compiled to WebAssembly with programs on an emulated CPU, a read-only system and no root access. Each account's sandboxes run in their own process, sandboxed on the host. Network traffic goes through a gateway that blocks private and cloud-metadata addresses.
How much does it cost?
$0.05 per 1,000 commands, with 100,000 free each month. During the beta nothing is charged.