Cloudflare Sandbox vs Upstash Box

Cloudflare Sandbox runs each sandbox in its own Firecracker microVM inside the Workers platform. Its disk starts fresh after sleep unless your code saves a snapshot or uses R2. Upstash Box is a Docker container with a coding agent built in. It pauses when idle, keeps its files with no code, and bills only the CPU it uses.

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.

Upstash Box

Upstash Box is a cloud computer for AI agents from Upstash, the company known for serverless Redis, Vector and QStash.

Each box is a Docker container with its own filesystem, shell, git and an optional coding agent such as Claude Code, Codex, OpenCode or Cursor, which you drive from TypeScript or Python SDKs. A box pauses when it sits idle, keeps its files, and you pay for the CPU it actually uses. Upstash built it to run its own Context7 service and opened it to everyone in March 2026.

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 rankUpstash Box: 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 Docker and files that survive a break. Cloudflare runs Docker with iptables off, and your code keeps files with snapshots, automatic saves or R2. Upstash keeps files with no code but does not document Docker inside a box. boat has Docker and saves the disk with no code.
192nd of 365, with limits
$1,543 a month
98th of 365, with limits
$464 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
43rd cheapest of 361
$2,188 a month
170th of 361, with limits
$450 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
Both fit short code runs well: each bills CPU only while busy and wakes on the next request. Upstash's EphemeralBox is ready at once and deletes itself after at most 3 days.
17th cheapest of 336
$144 a month
13th cheapest of 336
$119 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. Upstash wakes a user's paused box on the next request and runs 1,000 boxes at once on Pay as You Go. Cloudflare allows 1,500 vCPU per account by default. boat gives each user a full VM, with starts limited per plan.
19th cheapest of 349
$731 a month
4th cheapest of 349
$222 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
343rd of 349, with limits
$8,000 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
Both fit agent evals. Upstash snapshots a running box and starts many boxes from it. Cloudflare starts new sandboxes from a saved snapshot or backup. boat forks a running sandbox from its last 1-minute snapshot.
60th cheapest of 359
$818 a month
67th cheapest of 359
$1,011 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 images need Docker and room on disk. Upstash does not document Docker inside a box, and its disks stop at 30 GB. Cloudflare has 20 GB at most, with iptables off. boat has Docker with BuildKit and 51 GB of disk at the default size.
303rd of 374, with limits
$704 a month
122nd cheapest of 374
$1,480 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box must keep its files when you log off. An Upstash keep-alive box does that for a flat monthly price. Cloudflare starts a fresh disk after sleep unless your code restores a snapshot (beta, 30 days) or mounts an R2 bucket. boat keeps a stopped disk at least 14 days with no compute charge.
123rd cheapest of 371
$93 a month
8th cheapest of 371
$19 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
Neither ships a desktop. On Cloudflare you build one into your image, or use the separate Browser Run service. Upstash runs Chromium on a virtual display with a view-only live view. boat streams a Linux desktop at 60 fps with computer tools.
207th of 367, with limits
$460 a month
123rd of 367, with limits
$76 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
Upstash ships a managed Chromium with AI page actions and CDP. On Cloudflare you bake a browser into your image, or use the separate Browser Run service. boat gives the agent Chrome on a desktop it can see and click.
68th of 356, with limits
$233 a month
48th of 356, with limits
$38 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
41st cheapest of 343
$400 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
201st of 327, with limits
$8,000 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
255th of 351, with limits
$259 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 SandboxUpstash Boxboat
IsolationFirecracker microVM per container, own kernel and networkDocker container per box on AWS, with its own filesystem, process tree and network stackFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Files after a pauseDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucketPauses when idle and keeps its files with no code; storage keeps billing while pausedDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot
Largest machine4 vCPU / 12 GiB / 20 GB diskLarge: 8 vCPU / 16 GB / 30 GB disk on self-serve plans; custom sizes on Enterprise16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher); 51 GB disk at 4 vCPU / 8 GB
Docker insidedocker:dind with iptables and IP forwarding turned offNot documented; the box is itself a Docker container, and custom images are listed as coming soonDocker with BuildKit and Compose, root and systemd
Nested virtualizationNot documentedNot documented; boxes are containersYes, /dev/kvm for Android emulators and VMs
ForkSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkSnapshot a running box and start many new boxes from itFork a running sandbox in one call from its last 1-minute snapshot
Wake on requestStops after inactivity and wakes on the next requestA request to a public URL resumes a paused boxNo; a stopped sandbox is started by API
Desktop and browserBuilt-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsersManaged Chromium with AI page actions, CDP and a view-only live view; no desktop or VNC1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageClaude Code, Codex, OpenCode and Cursor built in, with run and stream APIs, webhooks and scheduled promptsSeven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events API
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPHTTPS URL per port, public unless you add a token or basic auth; SSH through a gateway; no raw TCP documentedUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6
Outbound rulesallowedHosts deny-by-default list plus outbound handlers you write in Worker codeAllow all, deny all, or allow and deny by domain and CIDR, changeable on a running boxOpen internet, no provider-side allowlist; filter inside the VM with root
Keeping keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeHost proxy injects headers into outbound HTTPS on port 443 for any host; set when the box is createdOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register
Running at once1,500 vCPU, 6 TiB memory and 30 TB disk per account by default; higher on request; no per-start fee1,000 boxes on Pay as You Go, raised on request; no start limit published100 to 2,000 by plan; $2,000 plan includes 90 starts a minute; extra starts $0.03 to $0.07; starts above 270 a minute fail, and boat never queues a start
RegionsSeveral regions across Cloudflare's network; pin to a region or jurisdictionAWS us-east-1; custom regions on EnterpriseGermany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCloudflare SandboxUpstash Boxboat
Full VM (own kernel)YesNo documented wayYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupYesYes
Computer-use APINo documented wayNo documented wayYes
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 wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesYesYes
Agent harness APIWith your own setupYesYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceYesNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNo documented wayNot publishedYes
Usage per sandbox (API)Not publishedYesYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
Upstash BoxNot measured
boat28.06 runs/s

Neither Cloudflare Sandbox nor Upstash Box 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. 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. In ComputeSDK's run of 6 November 2026, with 100 started at once at each provider's default size, the median time to first command was 671 ms for Cloudflare and 2.34 s for Upstash Box. boat is not in ComputeSDK.

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 Upstash Box 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 monthUpstash Box, 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$21 · Pay as You Go$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$21 · Pay as You Go$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$900 · Pay as You Go · with limits$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$306 · Pay as You Go$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$1,822 · Pay as You Go$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.

Upstash Box: A standard box is billed for the CPU it uses, at $0.10, $0.20 or $0.40 per active CPU hour for Small, Medium and Large, plus $0.10 per GB-month of storage, snapshots included. RAM is free, and Pay as You Go has no monthly fee. A keep-alive box costs a flat $8, $16 or $32 a month, busy or not. The egress price is not published.

Upstash Box: 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 keeps files between days only through snapshot, automatic-save or R2 code, and its local disk tops out at 20 GB. Its 1,500 vCPU account limit is short of the 2,000 the 1,000-job burst needs, raised on request. Upstash fits that burst, but it does not document Docker inside a box, so it misses the 50-agent scenario; its disks stop at 30 GB and its egress price is not published. boat fits the 50-agent scenario at $317 a month but not the burst: 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 SandboxUpstash Boxboat
One coding agent, workdaysNone for this scenario
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
One agent that never stopsNone for this scenario
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
50 agents in parallelNone for this scenario
  • not confirmed: Docker inside
  • flat pool: the tier is billed whether used or not
  • egress price not published
None for this scenario
Sandboxes for your usersNone for this scenario
  • egress price not published
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • egress price not published
  • 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 short sandboxes with their own kernel that wake on request, with egress rules you write as code.

  • A microVM with its own kernel. Each container runs in its own Firecracker microVM, and Docker works inside it, with iptables turned off.
  • Egress you can program. Useful when every outbound request must pass your own Worker code, on top of a deny-by-default host list.
  • Close to your Workers app. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, in a region you can pick.

Use Upstash Box when

your agents mostly wait, need to keep their files between pauses with no code, come with a coding agent built in, start in big bursts, and can run in the US.

  • Files stay through a pause. A box pauses when idle and comes back with its files, with no code, so an agent can pick up where it stopped.
  • Agents ready out of the box. Claude Code, Codex, OpenCode and Cursor come built in, with streaming, webhooks and scheduled prompts.
  • Pay only for CPU you use. Good for agents that wait a lot: idle CPU and RAM cost nothing, and a keep-alive box has a flat price.

Where boat fits

Look at boat if your agents need more than a short run: Docker, a disk larger than 30 GB that is saved with no code, emulators or a desktop. Cloudflare keeps files through snapshot or R2 code, and Upstash does not document Docker inside a box, which is why Upstash does not fit the 50-agent scenario on this page. boat runs only in the EU, has no GPU and limits starts per plan.

A full machine with Docker and /dev/kvm

Upstash does not document Docker inside a box, and Cloudflare runs Docker with iptables off and documents no nested virtualization. boat gives each agent root, systemd, Docker with BuildKit and /dev/kvm for emulators and VMs.

Files saved with no code, and room for them

On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2, on 20 GB of disk; Upstash stops at 30 GB. boat saves the disk every minute, has 51 GB at 4 vCPU / 8 GB, and keeps a stopped disk at least 14 days. A boat resume is like a reboot.

A desktop and real hosting

Neither ships a desktop, and neither takes raw TCP from outside. boat streams a 60 fps desktop for computer-use agents, serves up to 50 HTTPS URLs and takes raw ports over public IPv6.

Use boat when your agents need a real machine for hours: Docker, emulators, a desktop, a disk above 30 GB saved with no code, and hosting on many ports. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Upstash Box.

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 Upstash Box?

Not in the scenarios on this page: Upstash's estimate is lower in all five, though it does not fit the 50-agent one because Docker inside a box is not documented. One always-on agent is $21 a month on Upstash against $148 on Cloudflare, and 300 user sandboxes are $306 against $476. boat costs $26 and $200 for the same two, and $8,800 for 1,000 short jobs at once, because it bills extra starts.

Which one keeps my files?

Both can. An Upstash box pauses when idle and resumes with its files, with no code, and storage keeps billing while paused. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. boat saves the disk every minute and at each stop with no code, and keeps it at least 14 days after a stop.

Can I run Docker inside Cloudflare Sandbox or Upstash Box?

On Cloudflare, yes, through docker:dind with iptables and IP forwarding turned off. Upstash does not document Docker inside a box, since each box is itself a Docker container. boat runs Docker with BuildKit and Compose, and systemd.

Which is faster?

We cannot compare CPU: neither is in StarSling's run of 3 October 2026. For start time with 100 at once, ComputeSDK measured a median of 671 ms for Cloudflare and 2.34 s for Upstash Box (2026-11-06). boat did 28.06 V8 Web Tooling runs/s in StarSling's run, on an AMD Ryzen 9 9950X host; boat is not in ComputeSDK.

Which has stronger isolation?

Cloudflare runs each container in its own Firecracker microVM with its own kernel. An Upstash box is a Docker container with its own filesystem, process tree and network stack. boat sandboxes are full VMs with their own kernel.

Where do they run?

Cloudflare places containers in several regions of its network and lets you pin a region or jurisdiction. Upstash Box runs in AWS us-east-1, with custom regions on Enterprise. boat runs on machines in Germany, Finland and France, and you cannot pick a region.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons