Flashbox

Pay‑per‑command sandbox for your agent

$0 for idle time, sandbox ready in 4ms.

Start building
Try it in your terminal npx flashbox demo

Set up for agents (MCP)

sbx_k2m9x4 ready in 4 ms
grep -rl api-v1 config/17 ms · $0.00005
config/prod.json
config/staging.json
· idle 41 s, user reading$0
sed -i s/api-v1/api-v2/ config/*.json17 ms · $0.00005
↺ rollback to before sed · 211 ms · $0
sed -i s/api-v1/api-v2/ config/staging.json17 ms · $0.00005
⑂ fork for the regenerated reply · $0

Switch the configs to the api-v2 host.

grep

prod.json and staging.json both use api-v1. Change both?

Yes, both.

sed
edited

Yes, both.Only staging, please.

sed

Done. Only staging.json uses api-v2.

↻ Regenerate
Session cost$0.00015

Every command costs $0.00005

per command, 1 s of CPU included
$0.00005per command, 1 s of CPU included
per CPU-minute after that
+$0.002per CPU-minute after that
idle time, rollback, fork, reading files
$0idle time, rollback, fork, reading files
commands free every month
100,000commands free every month

Free while it waits

Pay per command. Waiting costs nothing.

const sandbox = await fb.create(); // ready in 4 ms

await sandbox.run("ls"); // $0.00005
// the user reads for 3 minutes: $0
await sandbox.run("grep -rn TODO src"); // $0.00005

Undo any step

Every command is a checkpoint.

const ok = await sandbox.run("git status");
await sandbox.run("rm -rf src"); // oops

await sandbox.rollback(ok.checkpoint.id); // 211 ms, $0
const [retry] = await fb.fork(ok.checkpoint.id);

Heavy work runs native

Installs, builds and data science move to a full-speed machine with the same files.

const r = await sandbox.run("pip install pandas");

r.route.target; // "native"
r.cost.usd; // 0.00005

A real shell session

cd and export carry over, like a terminal.

await sandbox.run("cd app && export NODE_ENV=test");
const r = await sandbox.run("bun test");

r.cwd; // "/workspace/app"

Files in and out

Folders as archives, links for your users.

await sandbox.files.uploadDir("./repo", "repo");

const zip = await sandbox.files.download("out");
const { url } = await sandbox.files.link("report.pdf");

Locked down

Allowlist the network. Keep secrets out of the logs.

const sandbox = await fb.create({
  network: { allow: ["api.github.com"] },
});
await sandbox.run("gh api user", { secrets: { GH_TOKEN } });
// secret values in the output: [redacted]

Plug into any agent

MCP, TypeScript, Python or plain HTTP.

claude mcp add --transport http flashbox \
  https://flashbox.app/mcp \
  --header "Authorization: Bearer $FLASHBOX_API_KEY"

One chat, open for an hour

120 tool calls at each provider's list price.

Flashbox compared with other agent sandboxes
SandboxHow it billsOne agent hour*Ready inUndo and branch
FlashboxOnly per command; the hour itself is free$0 for the hour
+ $0.00005 per command
under 30 msEvery tool call is a checkpoint: roll back or fork any step
E2BPer second, allocated CPU and memoryabout $0.0670.7–1.6 sPause and resume a sandbox
DaytonaPer second, allocated CPU and memoryabout $0.0670.3–0.7 sDisk snapshots and archive
ModalPer second, at least the requested resourcesabout $0.0950.9–2.4 sFilesystem and memory snapshots
Vercel SandboxActive CPU plus memory by the hourabout $0.0400.7–1.9 sSnapshots ($0.08 per GB-month)
Cloudflare ContainersActive CPU plus provisioned memoryabout $0.0110.7–3.1 sDisk only
Fly SpritesCPU and memory while awakeabout $0.0241.0–2.0 sDisk checkpoints

* One agent hour: a conversation open for an hour with 120 short tool calls. Others at list price for 1 vCPU and 1 GiB for the hour, busy or idle. Prices and start times checked 2026-11-23; sources on each comparison page.

All comparisons and sources · Pricing

Questions

What is Flashbox?

A Linux sandbox for your AI agent to run commands in, one per conversation. You pay per command; idle time is free.

Why per command, not per second?

A conversation is mostly people reading and the model thinking. An hour with 120 tool calls costs $0.006 here and about $0.067 at E2B's list price.

What does a command cost?

$0.05 per 1,000, with a second of CPU each. Reads, rollback and fork are free. 100,000 a month are free, and nothing is charged during the beta.

Can it run npm install, builds or video?

Yes. Heavy commands run on full-speed machines with the same files, automatically: npm install typescript takes about 8.8 s.

Is it safe to run what users ask for?

Each sandbox is isolated, runs without root and cannot reach private networks or cloud metadata. Data is stored in Europe and deleted after 7 days unless you keep it.

How do I connect my agent?

Add the MCP server, use the TypeScript SDK, or call the HTTP API from any language.

Try it in your terminal

A one-minute agent session, priced command by command.

Try it in your terminal npx flashbox demo
Start building