Cloudflare Sandbox vs Instabox

Both run each sandbox in its own Firecracker microVM. Cloudflare Sandbox is a container inside the Workers platform. It sleeps when idle, wakes on the next request, and keeps files through snapshots or R2 that your code sets up. Instabox gives each agent a Linux machine with root and Docker that keeps its disk, pauses with its memory and forks while running, with a free plan for one machine.

The companies and products

Cloudflare Sandbox

Cloudflare Sandbox SDK runs untrusted or AI-generated code in Linux containers on Cloudflare's network, driven from a Cloudflare Worker.

Each sandbox is a Cloudflare Container backed by a Durable Object. Each container runs in its own Firecracker microVM with its own kernel and network. You build a linux/amd64 image, pick an instance type of up to 4 vCPU and 12 GiB, and reach the sandbox through your own Worker. The disk resets when the container stops, and your code keeps files with snapshots, automatic saves, R2 backups or R2 bucket mounts. It suits teams already on Workers who want sandboxes that sleep when idle. For code that only calls known methods, Cloudflare also offers Dynamic Workers, which run JavaScript in V8 isolates.

Instabox

Instabox gives each AI agent its own Linux machine in the cloud. It has a free plan with one machine and paid plans from $20 a month plus usage.

Each Instabox machine is a Firecracker microVM with its own kernel, root and Docker. It starts from a template (agent-browser by default, universal, t3, herdr, orca, android, omarchy or ci), from your own snapshot, or from a Docker image that you import as a snapshot. The default size is 4 vCPU / 8 GiB, and paid plans go up to 32 vCPU / 64 GiB. You drive it from a CLI, a TypeScript SDK, an HTTP API or an MCP server, with SSH, mosh, HTTPS port URLs and a desktop for computer use.

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “43rd cheapest of 361” means 42 of the other 360 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadCloudflare Sandbox: price rankInstabox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory needs repos and installed tools to stay put. Instabox keeps the disk and forks a running machine. On Cloudflare your code keeps files with snapshots, automatic saves or R2. boat saves the disk every minute and adds /dev/kvm and an agent API.
192nd of 365, with limits
$1,543 a month
Cheapest of 365
$410 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Always-on assistants need their files to stay. Instabox keeps them and runs with the idle pause turned off on a paid plan. On Cloudflare your code saves snapshots or mounts R2. On boat you turn auto-stop off on a paid plan.
43rd cheapest of 361
$2,188 a month
4th cheapest of 361
$534 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
For short code-interpreter calls Cloudflare fits well: CPU is billed only while busy, and a container wakes on the next request. Instabox has no per-start charge and pauses with memory between runs.
17th cheapest of 336
$144 a month
4th cheapest of 336
$56 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
Both fit sandboxes for your users. Cloudflare runs up to 1,500 vCPU at once by default. Instabox Team runs 500 machines at once. For 300 at once we estimate $476 a month on Cloudflare, $500 on Instabox Team and $200 on boat.
19th cheapest of 349
$731 a month
10th cheapest of 349
$500 a month
3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
147th of 349, with limits
$9,428 a month
16th of 349, with limits
$845 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
Cloudflare's account limits leave room for many evals in parallel. Instabox runs 100 to 500 machines at once by plan, with 30 to 100 starts a minute. boat runs 100 to 2,000 at once, with starts per minute, hour and day included per plan.
60th cheapest of 359
$818 a month
34th cheapest of 359
$500 a month
10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
CI jobs that build Docker images need disk. Cloudflare has 20 GB and turns off iptables for Docker. Instabox has a ci template that works as a GitHub Actions runner. boat adds /dev/kvm for Android emulators and VM builds.
303rd of 374, with limits
$704 a month
3rd cheapest of 374
$89 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Instabox makes a pleasant cloud dev box with SSH, mosh and a pause that keeps memory. Cloudflare starts from a fresh disk after sleep unless your code snapshots it or mounts R2. boat keeps a stopped disk at least 14 days.
123rd cheapest of 371
$93 a month
14th cheapest of 371
$24 a month
19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Instabox has a VNC desktop with a browser and a screenshot and click API; you bring the model. On Cloudflare you build a desktop into your image. boat streams a desktop at 60 fps with computer tools for its built-in agents.
207th of 367, with limits
$460 a month
4th cheapest of 367
$122 a month
7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
68th of 356, with limits
$233 a month
49th of 356, with limits
$61 a month
7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
102nd cheapest of 343
$286 a month
5th cheapest of 343
$83 a month
6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
168th of 327, with limits
$5,741 a month
31st of 327, with limits
$1,658 a month
73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
25th cheapest of 351
$325 a month
2nd cheapest of 351
$100 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureCloudflare SandboxInstaboxboat
IsolationFirecracker microVM per container, own kernel and networkFirecracker microVM per machine, own kernel and rootFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Machine sizesUp to 4 vCPU / 12 GiB / 20 GB disk; 4 vCPU always comes with 12 GiB4 vCPU / 8 GiB on Free; up to 8 / 16 on $20, 16 / 32 on $100, 32 / 64 on $500; 20 GiB disk, up to 1 TiB on Team2 to 8 vCPU on the $20 plan; up to 16 vCPU / 32 GB / 251 GB disk from $100
How many at once1,500 vCPU, 6 TiB memory and 30 TB disk running per account; higher on request1 machine on Free; 100 running on Pro, 200 on Builder, 500 on Team100 on the $20 plan, up to 2,000 on the $2,000 plan; starts per minute, hour and day included per plan
Files between sessionsDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucketA machine keeps its disk while paused or stopped; snapshots saved by hand, no automatic saveDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot
Idle and pauseStops after inactivity and wakes on the next request; memory and processes are not keptPauses after 30 idle minutes by default, keeping memory and running programs; resume usually takes about a second; a port visit wakes itAuto-stop on a timer (1 h by default), not on idle; disk kept, the machine boots again on resume
ForkSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkFork a running or stopped machine's disk, up to 5 copies per callFork a running sandbox's disk in one call; the fork uses the last 1-minute snapshot
Docker insidedocker:dind with iptables and IP forwarding turned offDocker and Docker Compose, with root and systemdDocker with BuildKit and Compose, with root and systemd
Custom imageAny linux/amd64 container imageImport a Docker or OCI image as a snapshot, then start machines from itNo; start from boat's Ubuntu 24.04 image or a saved snapshot
Nested virtualizationNot documented/dev/kvm not documented; an android template runs Android 14 nativelyYes, /dev/kvm for Android emulators and VMs
Desktop and computer useBuilt-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsersVNC desktop with a browser on most templates, screenshot and click API, shareable view or control links; you bring the model1920x1080, 60 fps desktop and Chrome, with computer tools for every built-in agent; no GPU
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPHTTPS on up to 16 ports, public by default, token-protected with --private; raw TCP through the port gateway; SSH with moshUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6
Egress controlallowedHosts deny-by-default list plus outbound handlers you write in Worker codeSecrets proxy limits key use to allowed hosts; no general egress allowlist documentedNo provider-side allowlist
Keeping API keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeSecrets proxy swaps a placeholder for the real key in outbound HTTPS headers to allowed hostsOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs; other secrets still enter the sandbox
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your image, plus integrationsClaude Code, Codex and OpenCode on some templates; CLI, skills and MCP; you run the agent yourselfSeven installed, with a prompt, steer and events API
RegionsSeveral regions across Cloudflare's network; pin to a region or jurisdictionNot publishedGermany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCloudflare SandboxInstaboxboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNot publishedYes
RootYesYesYes
SystemdNot publishedYesYes
Desktop GUINo documented wayYesYes
BrowserWith your own setupYesYes
Computer-use APINo documented wayYesYes
SSHYesYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsWith your own setupNo documented wayYes
Fork/cloneWith your own setupYesYes
Live fork (no pause)With your own setupYesYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesNot publishedNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesYesYes
Agent harness APIWith your own setupNot publishedYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNot publishedNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNot publishedNo documented way
Self-hostingNo documented wayNot publishedNo documented way
BYOCNo documented wayYesNo documented way
Open sourceYesNo documented wayNo documented way
Scoped API keysNot publishedYesYes
Spend limitsNo documented wayYesYes
Usage per sandbox (API)Not publishedYesYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesNot publishedNo documented way
HIPAAYesYesNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
InstaboxNot measured
boat28.06 runs/s

Neither Cloudflare Sandbox nor Instabox is in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which has faster CPU. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on other hosts. ComputeSDK measured a 671 ms median start for Cloudflare with 100 at once (2026-11-06, default size). Instabox says a new machine's shell is ready in under a second; we have not measured it.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Cloudflare Sandbox and Instabox are not in the public benchmarks we use, so we cannot say which is faster.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioCloudflare Sandbox, a monthInstabox, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$39 · Workers Paid$0 · Free$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$25 · Pro$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$1,660 · Workers Paid$269 · Pro$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$476 · Workers Paid$500 · Team$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$1,889 · Workers Paid · with limits$500 · Team · with limits$8,800 · $2000/mo · with limits

Cloudflare Sandbox: You need Workers Paid ($5 a month minimum). CPU is billed only while busy, at $0.072 per vCPU-hour. Memory and disk are billed on the instance size in 10 ms steps until the container sleeps. 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.

Instabox: Free costs $0 for one 4 vCPU / 8 GiB machine. Pro ($20), Builder ($100) and Team ($500) a month each include usage credit equal to the fee. Usage is $0.034 an hour at 4 vCPU / 8 GiB, per second while a machine runs. Disk above the included pool costs $0.08 per GiB-month, also while stopped, and egress above the allowance $0.02 per GiB. Snapshots and paused memory are free.

Instabox: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; extra starts cost $0.03 to $0.07. A stopped sandbox has no compute charge and keeps its disk at least 14 days. Saved snapshots above the included count ($0.056 a day each) and the AI proxy, if on, still bill while stopped.

Limits in those scenarios

Cloudflare tops out at 20 GB of disk and keeps files between days only through snapshots, automatic saves or R2 that your code sets up. Its 1,500 vCPU account limit is short of the 2,000 vCPU the 1,000-job burst needs, though Cloudflare raises it on request. Instabox Team runs at most 500 machines and 100 starts a minute, so it does not fit the burst either. boat does not fit the burst as is: the $2,000 plan includes 90 starts a minute and 600 an hour, charges $0.03 to $0.07 for extra starts, and refuses starts above 270 a minute.

ScenarioCloudflare SandboxInstaboxboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stopsNone for this scenarioNone for this scenarioNone for this scenario
50 agents in parallelNone for this scenarioNone for this scenarioNone for this scenario
Sandboxes for your usersNone for this scenarioNone for this scenarioNone for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • Team: max 500 concurrent
  • bursts above 100 starts/min are queued (a burst of 333 takes ~4 min to start)
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Cloudflare Sandbox when

your app already runs on Workers and you want many short sandboxes that sleep when idle, wake on request and follow egress rules you write.

  • Egress rules you can program. For teams that must limit where code connects: block every host except the ones you list, and run your own code on each outbound request.
  • Sleeps when idle, wakes on request. For many short, spiky sessions: a sandbox sleeps when idle, wakes on the next request, and bills CPU only while busy.
  • Room to scale inside Workers. For apps already on Workers: up to 1,500 vCPU at once by default, in a region you can pick, next to Durable Objects and R2.

Use Instabox when

you want a free machine to start with, a low hourly rate, pause with memory, machines above 16 vCPU or your own Docker image.

  • Pause with memory and live fork. A paused machine keeps its memory and running programs and usually resumes in about a second; a running machine forks its disk.
  • A free plan and low rates. One 4 vCPU / 8 GiB machine is free, and paid use costs $0.034 an hour at that size, with no per-start charge.
  • Bigger machines and your own image. Machines go up to 32 vCPU / 64 GiB on the $500 Team plan, and you can import a Docker or OCI image as a snapshot.

Where boat fits

Look at boat when your agents work for hours on one machine and need it to save its disk with no code, run Docker or emulators, and be driven from outside. Cloudflare suits short sessions that sleep, and Instabox suits pause with memory, a free plan and larger machines. boat runs only in the EU and does not keep memory on stop.

Work saved every minute

On Cloudflare your code saves snapshots, automatic saves or R2 to keep files across sleep. Instabox keeps the disk, and you save snapshots by hand. boat saves the disk every minute and at each stop, and forks a running sandbox.

/dev/kvm for emulators and VMs

Cloudflare has 20 GB of disk and runs Docker with iptables off. Instabox runs Android natively on a template but does not document /dev/kvm. boat has /dev/kvm on every sandbox for Android emulators, Firecracker and other VMs.

Agents driven from outside

On Cloudflare you bake agents into your image and write the code that adds every token. On Instabox you run the agent yourself. boat installs seven agents and gives you a prompt, steer and events API.

Use boat when your agents do real work for hours: Docker, emulators and a desktop, on a machine that saves its disk every minute, forks while running, and runs agents you drive from outside. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Instabox.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is Cloudflare Sandbox cheaper than Instabox?

Usually not, in our estimates. Instabox is lower for one workday agent ($0 on Free against $39), one always-on agent ($25 against $148) and 50 agents in parallel ($269 against $1,660). Cloudflare is lower for 300 user sandboxes, $476 against $500. boat costs $20, $26, $317 and $200 for those four. None of the three fits 1,000 short jobs at once as is.

Which is faster, Cloudflare Sandbox or Instabox?

Neither is in StarSling's run of 3 October 2026, so we cannot say. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on other hosts.

Can Cloudflare Sandbox and Instabox run Docker?

Yes, both. Cloudflare supports docker:dind with iptables and IP forwarding turned off. Instabox runs Docker and Docker Compose with root and systemd. boat runs Docker with BuildKit and Compose, plus /dev/kvm.

Do they keep my files between sessions?

Instabox keeps a machine's disk while it is paused or stopped, with no code. Cloudflare starts from a fresh disk after sleep, unless your code saves a snapshot (public beta, kept 30 days), schedules automatic saves or works in a mounted R2 bucket. boat saves the disk every minute and at each stop, and keeps it at least 14 days after a stop.

Does Instabox start a machine in under a second?

Instabox says you are in a new machine's shell in under a second. Its docs say a paused machine usually resumes in about a second. Neither has been measured here.

Can I fork a running sandbox?

On Instabox and boat, yes: both fork a running machine's disk, and neither copies memory. A boat fork uses the last 1-minute snapshot, so writes from the last minute or so can be missing. On Cloudflare you snapshot or back up a sandbox, then start new sandboxes from it.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons