Flashbox docs
Start with the quickstart: a sandbox and your first command in under a minute.
Start
- Quickstart: Create a Flashbox sandbox and run your first command in under a minute, with curl, the TypeScript SDK or MCP.
- CLI: The Flashbox CLI signs you in with GitHub and opens a session where every command runs in a sandbox, with its time and cost shown after it.
Concepts
- Sandboxes: What a Flashbox sandbox is, what is installed in it, where an agent can write, and how sandboxes start, hibernate and resume.
- Commands: Run a shell command in a Flashbox sandbox: request and response fields, timeouts, the CPU budget, heavy-command routing, background processes and changed files.
- Checkpoints: Every Flashbox command ends in a checkpoint. Roll a sandbox back to any of them, fork any of them into new sandboxes, pin the ones you want to keep.
- Files: Read, write and list files in a Flashbox sandbox over HTTP. Writes are billed as a command and end in a checkpoint.
- Background processes: Start long-running processes in a Flashbox sandbox, read their output, and keep them running through rollback and hibernation.
- Network: Flashbox sandboxes reach the public internet by default; private and cloud-metadata addresses are always blocked. Use an allowlist or no network at all.
Reference
- Limits: Flashbox limits per command, per sandbox and per account, in one table.
- Billing: How Flashbox bills: per command with a second of CPU included, CPU overage per minute, egress beyond 10 GB, and nothing for idle sandboxes.
- API reference: Every Flashbox API route, its method and how it authenticates, generated from the server's route table.
- Errors: Flashbox API error responses: the JSON shape, every error code with its HTTP status, and which errors are safe to retry.
Integrations
- MCP: Give any MCP client Flashbox sandboxes: the hosted endpoint, setup for Claude Code and other clients, and the tool list.
- TypeScript SDK: The Flashbox TypeScript SDK: one dependency-free file for Node, Bun, Deno, browsers and Workers.
- Python: Use Flashbox sandboxes from Python over plain HTTP with httpx or requests: a ten-line client that creates a sandbox and runs commands.