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$0 for idle time, sandbox ready in 4ms.
npx flashbox demoSwitch the configs to the api-v2 host.
prod.json and staging.json both use api-v1. Change both?
Yes, both.
Yes, both.Only staging, please.
Done. Only staging.json uses api-v2.
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.00005Every 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);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.00005cd 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"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");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]MCP, TypeScript, Python or plain HTTP.
claude mcp add --transport http flashbox \
https://flashbox.app/mcp \
--header "Authorization: Bearer $FLASHBOX_API_KEY"import { Flashbox } from "flashbox"; // npm install flashbox
const sandbox = await new Flashbox().create();
const r = await sandbox.run("curl -s https://example.com | head -5");
console.log(r.stdout, r.cost.usd);import os, requests
API = "https://flashbox.app/v1"
H = {"Authorization": f"Bearer {os.environ['FLASHBOX_API_KEY']}"}
sandbox = requests.post(f"{API}/sandboxes", headers=H, json={}).json()
r = requests.post(f"{API}/sandboxes/{sandbox['id']}/commands",
headers=H, json={"command": "ls -la"}).json()
print(r["stdout"])npx flashbox # a session: every command shows its time and cost
flashbox:/workspace$ ls
flashbox:/workspace$ /rollback 1
flashbox:/workspace$ /cost120 tool calls at each provider's list price.
| Sandbox | How it bills | One agent hour* | Ready in | Undo and branch |
|---|---|---|---|---|
| Flashbox | Only per command; the hour itself is free | $0 for the hour + $0.00005 per command | under 30 ms | Every tool call is a checkpoint: roll back or fork any step |
| E2B | Per second, allocated CPU and memory | about $0.067 | 0.7–1.6 s | Pause and resume a sandbox |
| Daytona | Per second, allocated CPU and memory | about $0.067 | 0.3–0.7 s | Disk snapshots and archive |
| Modal | Per second, at least the requested resources | about $0.095 | 0.9–2.4 s | Filesystem and memory snapshots |
| Vercel Sandbox | Active CPU plus memory by the hour | about $0.040 | 0.7–1.9 s | Snapshots ($0.08 per GB-month) |
| Cloudflare Containers | Active CPU plus provisioned memory | about $0.011 | 0.7–3.1 s | Disk only |
| Fly Sprites | CPU and memory while awake | about $0.024 | 1.0–2.0 s | Disk 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.
A Linux sandbox for your AI agent to run commands in, one per conversation. You pay per command; idle time is free.
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.
$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.
Yes. Heavy commands run on full-speed machines with the same files, automatically: npm install typescript takes about 8.8 s.
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.
Add the MCP server, use the TypeScript SDK, or call the HTTP API from any language.
A one-minute agent session, priced command by command.
npx flashbox demo