See an AI sandbox at work in a minute
Run npx flashbox demo, no sign-in needed. Watch an agent session recorded on Flashbox: what each step cost, a mistake undone, the session copied three ways, and the bill next to a per-second sandbox's. Then run npx flashbox for a session of your own.
npx flashbox demo⚡ Sandbox sbx_abzg8tngemcgxrzk ready, 373 ms round trip from here. # The agent takes notesflashbox:/workspace$ printf '# Notes\n- example.com is reserved for documentation\n' > notes.md && cat notes.md# Notes- example.com is reserved for documentation ✓ started in 3 ms · 415 ms · $0.000050 │ session: 1 command · 415 ms · $0.000050 # Searches themflashbox:/workspace$ grep -n example notes.md2:- example.com is reserved for documentation ✓ 165 ms · $0.000050 │ session: 2 commands · 580 ms · $0.000100 # Edits a file in placeflashbox:/workspace$ sed -i 's/reserved/set aside/' notes.md && cat notes.md# Notes- example.com is set aside for documentation ✓ 179 ms · $0.000050 │ session: 3 commands · 759 ms · $0.000150 # Fetches a page over HTTPSflashbox:/workspace$ curl -s https://example.com | grep -o '<title>.*</title>'<title>Example Domain</title> ✓ 1.27 s · $0.000050 │ session: 4 commands · 2.03 s · $0.000200 # A mistake: the notes are deletedflashbox:/workspace$ rm notes.md && ls ✓ 175 ms · $0.000050 │ session: 5 commands · 2.20 s · $0.000250 # Every command ended in a checkpoint: undo the last oneflashbox:/workspace$ /rollback 1 ↺ back to ck_abwhzyfp1y95vegg in 230 ms; undid: rm notes.md && ls # The notes are backflashbox:/workspace$ cat notes.md# Notes- example.com is set aside for documentation ✓ 135 ms · $0.000050 │ session: 6 commands · 2.34 s · $0.000300 # Fork this exact state into three sandboxesflashbox:/workspace$ /fork 3 ⑂ 3 sandboxes with this exact state in 278 ms: sbx_abz370kcljkzr8gf sbx_abstsak4mo5q2ucn sbx_ab06mk9v46di58hj /switch sbx_abz370kcljkzr8gf to work in one # What it all costflashbox:/workspace$ /costThis session: 6 commands, $0.000300. Rollback and fork cost nothing. In a chat, the model thinks before each tool call (say 10 s), so this conversation stays open 62 s. A per-second sandbox (1 vCPU, 1 GiB, list price) open that long: E2B $0.001153 · Modal $0.001645. Flashbox: $0.000300. The waiting is free.
npx flashbox
Every line you type runs as one command in a sandbox, the way an agent's tool calls would. Session commands start with a slash.
npx flashbox # a session in a new sandbox
npm install -g flashbox # keep it
flashbox --sandbox sbx_... # go back to a sandbox
FLASHBOX_API_KEY=fbx_... flashbox # scripts and CI
| Command | What it does |
|---|---|
/rollback [N] | Undo the last N commands, files and running processes included |
/checkpoints | The latest checkpoints and the commands that made them |
/fork [N] | Copy this exact state into N new sandboxes; /switch moves to one |
/template save | Save this sandbox as a template new sandboxes can start from |
/bg, /ps, /logs | Start and watch background processes, such as a server |
/cost | What the session cost, next to a per-second sandbox for the same time |
CLI questions
Do I need an account?
You need to sign in once with GitHub. The CLI opens your browser, you approve a code that matches your terminal, and it gets an API key of its own. Nothing is charged during the beta.
What does the demo do?
It creates a sandbox, runs a short scripted agent session (notes, a search, an edit, a web fetch, a mistake), rolls the mistake back, forks the result into three sandboxes, then compares the cost with per-second sandboxes. It destroys its sandboxes when it finishes.
What does it need?
Node 18 or newer. Nothing else is installed: npx runs it once, or npm install -g flashbox keeps it.
Is the time shown the real time?
Yes. Each status line shows the round trip from your terminal, network included, and the price of that command at list price.
Ready for your own agent?
Create an API key, then connect over MCP, the SDK or plain HTTP.
npx flashbox demo