Cloudflare Sandbox vs Deno Sandbox

Both run code in its own Firecracker microVM. Cloudflare Sandbox gives you up to 4 vCPU with no fixed time limit, driven from a Worker and asleep when idle. Deno Sandbox gives you 2 vCPU that Deno says starts in under 200 ms, locks down outbound traffic and lives up to 30 minutes. Deno Sandbox is not available to new customers since November 2026.

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.

Deno Sandbox

Deno Sandbox comes from the company behind the Deno runtime and runs untrusted or AI-generated code in Linux microVMs. Since November 2026 it is not part of Deno Deploy plans and is not available to new customers.

Each sandbox is a Firecracker microVM with 2 vCPU, 768 MB to 4 GB of memory and a 10 GB disk that is wiped when it ends, created from a TypeScript or Python SDK. A bootable volume (Chicago only) can be the root disk and keep its files. Deno Deploy can limit outbound traffic to a host allowlist and swap placeholder secrets for real ones. A sandbox can be promoted to a Deno Deploy app.

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 rankDeno Sandbox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A software factory runs builds and Docker for hours. A Deno sandbox stops at 30 minutes on 2 vCPU. On Cloudflare your code keeps files with snapshots, automatic saves or R2. boat saves a full VM's disk with no code.
192nd of 365, with limits
$1,543 a month
No published price5th 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
No published price6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Short code-interpreter calls suit both: Cloudflare bills CPU only while busy, and Deno says a sandbox starts in under 200 ms. Deno Sandbox is closed to new customers since November 2026, so new teams cannot pick it.
17th cheapest of 336
$144 a month
No published price189th 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
Cloudflare fits sandboxes for your users, with egress rules you write as Worker code. Deno Sandbox is closed to new customers; existing organizations get 5 at once by default. boat plans run 100 to 2,000 at once, with start limits per plan.
19th cheapest of 349
$731 a month
No published price3rd 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
RL rollouts need many short machines at once. Cloudflare runs up to 1,500 vCPU per account by default, higher on request. Deno allows 5 sandboxes at once by default. boat includes a set number of starts per plan.
147th of 349, with limits
$9,428 a month
No published price39th 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 fits agent evals, with any image and CPU billed only while busy. Deno's 30-minute lifetime and default of 5 sandboxes at once limit eval runs, and it is closed to new customers.
60th cheapest of 359
$818 a month
No published price10th 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 and Docker. Cloudflare has 20 GB of disk at most and runs Docker with iptables turned off. Deno does not document Docker. boat runs Docker with BuildKit and has /dev/kvm.
303rd of 374, with limits
$704 a month
No published price2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box needs its files after you log off. On Cloudflare your code keeps them. On Deno a bootable volume in Chicago keeps them. boat stops with no compute charge and keeps its disk at least 14 days.
123rd cheapest of 371
$93 a month
No published price19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Cloudflare removed its built-in desktop, and Deno documents none; on both you install one yourself. boat ships a 1920x1080, 60 fps desktop with Chrome and computer tools for agents.
207th of 367, with limits
$460 a month
No published price7th 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
No published price7th 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
No published price6th 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
No published price73rd 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
No published price3rd 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 requirementNo published priceNot 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 requirementNo published priceNot ranked: misses a requirement

Key features

FeatureCloudflare SandboxDeno Sandboxboat
IsolationFirecracker microVM per container, own kernel and networkFirecracker microVM per sandbox, own kernelFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Largest machine4 vCPU / 12 GiB / 20 GB disk2 vCPU (no CPU option documented), 768 MB to 4 GB memory, 10 GB disk4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB / 251 GB disk on the $100 plan and higher
Session lengthNo fixed maximum; stops after inactivity and wakes on the next requestUp to 30 minutes; longer work can be promoted to a Deno Deploy appAuto-stop 1 hour by default, up to 30 days, or off on a paid plan for no cap
Files between sessionsDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucketRoot disk wiped when the sandbox ends; a volume of 300 MB to 20 GB (Chicago only) keeps files, and a bootable volume can be the root diskDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop
Snapshots and forkSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkRead-only volume snapshots that many new sandboxes can boot from (Chicago only)Fork a running sandbox in one call, from its last 1-minute snapshot
Docker insidedocker:dind with iptables and IP forwarding turned offRoot access; Docker not documentedDocker with BuildKit and Compose, root and systemd
Nested virtualizationNot documentedNot documentedYes, /dev/kvm for Android emulators and VMs
Desktop and browserBuilt-in desktop removed in SDK 0.10.2; headless browsers through the separate Browser Run serviceNo desktop documented; a VS Code editor in the browser and SSH; you install a browser with apt-get1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPHTTPS URL per exposed port, public without authentication; SSHUp 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 codeHost allowlist per sandbox (allowNet), enforced by Deno Deploy outside your codeOpen internet, no provider-side allowlist
Keeping API keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeAny secret swapped in on outbound HTTPS requests to approved hosts; the sandbox sees a placeholderOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs; other secrets enter the sandbox
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageA root image with Claude Code, run through the shell command APISeven installed (Claude Code, Codex and more), with a prompt, steer and events API
Start and idleSleeps after inactivity and wakes on the next requestUnder 200 ms start, as stated by DenoBoots a full VM; auto-stop timer, not idle detection
Availability and regionsSelf-serve on Workers Paid; several regions across Cloudflare's network, pin to a region or jurisdictionNot available to new customers since November 2026; Amsterdam and ChicagoSelf-serve from $20 a month; Germany, Finland and France, no US or Asia region
Every feature Battleships tracks (43)
FeatureCloudflare SandboxDeno Sandboxboat
Full VM (own kernel)YesYesYes
Docker insideYesNot publishedYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayNo documented wayYes
Automatic snapshotsWith your own setupNo documented wayYes
Fork/cloneWith your own setupNo documented wayYes
Live fork (no pause)With your own setupNo documented wayYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestYesNo documented wayNo 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 setupNo documented wayYes
MCP serverNo documented wayNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo 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 wayYesYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesNot publishedNo documented way
HIPAAYesNot publishedNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
Deno SandboxNot measured
boat28.06 runs/s

Cloudflare Sandbox and Deno Sandbox are not in StarSling's run of 3 October 2026 (run 37073680030), so we cannot compare their 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). Deno states starts under 200 ms; that is its own figure. 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 Deno Sandbox 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 monthDeno Sandbox, 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 PaidNo published price$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers PaidNo published price$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 PaidNo published price$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 PaidNo published price$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 limitsNo published price$8,800 · $2000/mo · with limits

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

Deno Sandbox: Deno Sandbox is no longer included in Deno Deploy plans and is not available to new customers (November 2026). Deno publishes no current sandbox rates, so it has no price in our scenarios. The launch post listed $0.05 per hour of CPU time, $0.016 per GB-hour of memory and $0.20 per GiB-month of volume storage.

Deno Sandbox: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge; saved snapshots above the included count and the AI proxy, if on, still bill. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07.

Limits in those scenarios

Deno Sandbox is closed to new customers, so it has no price in our scenarios; existing organizations get 5 sandboxes at once by default, each living up to 30 minutes on 2 vCPU and up to 4 GB. Cloudflare's local disk tops out at 20 GB and resets after sleep, so the scenarios that keep 50 GB of files between days need your own snapshot, automatic-save or R2 code, and the 1,000-job burst needs 2,000 vCPU against a default account limit of 1,500, which Cloudflare raises on request. On boat, the $2,000 plan includes 90 starts a minute, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429, so boat does not fit 1,000 jobs at once.

ScenarioCloudflare SandboxDeno Sandboxboat
One coding agent, workdaysNone for this scenario
  • discontinued / closed to new customers
None for this scenario
One agent that never stopsNone for this scenario
  • discontinued / closed to new customers
None for this scenario
50 agents in parallelNone for this scenario
  • discontinued / closed to new customers
None for this scenario
Sandboxes for your usersNone for this scenario
  • discontinued / closed to new customers
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • discontinued / closed to new customers
  • 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 sandboxes of up to 4 vCPU that sleep when idle, wake on the next request and have no fixed time limit.

  • No 30-minute cap and a bigger box. For work that runs longer: no fixed time limit, and up to 4 vCPU and 12 GiB against Deno's 2 vCPU and 4 GB.
  • Sleeps when idle, wakes on request. Useful for many spiky sessions: a sandbox sleeps after a quiet spell, wakes on the next request, and bills CPU only while busy.
  • Open to new customers on Workers. Any team can start on Workers Paid today, with sandboxes next to Durable Objects and R2 and egress rules written as code.

Use Deno Sandbox when

Use Deno Sandbox if your organization already has it and you run short pieces of untrusted code that must start in milliseconds and reach only the hosts you allow. New customers cannot sign up since November 2026.

  • Fast starts. Good for one sandbox per request: Deno says a sandbox starts in under 200 ms, and its launch rates billed CPU only while code runs.
  • Locked-down outbound traffic, no code to write. Pass a list of allowed hosts, and Deno Deploy blocks the rest and swaps placeholder secrets for real ones.
  • A path to Deno Deploy. Fits existing Deno Deploy teams: a sandbox can be promoted to a Deploy app, running in Chicago or Amsterdam.

Where boat fits

Cloudflare Sandbox and Deno Sandbox both suit short runs that start from an image. If your agents work for hours, build Docker images, need a desktop or must find their files again tomorrow, look at boat: a full VM that saves its disk with no code, with coding agents you drive from outside.

Files kept with no code

On Cloudflare your code keeps files with snapshots, automatic saves or R2. A Deno sandbox stops at 30 minutes, and a volume in Chicago keeps its files. boat saves the disk every minute and at each stop; a resume is like a reboot.

Room for real builds

Cloudflare tops out at 4 vCPU and 20 GB of disk, with iptables off for Docker. Deno documents 2 vCPU and 4 GB and no Docker. boat goes up to 16 vCPU / 32 GB with Docker, systemd and /dev/kvm.

Agents and a desktop ready to drive

On Cloudflare you bake agents into your image and build your own desktop. On Deno you run Claude Code through shell commands. boat installs seven agents, with a prompt and steer API and a 60 fps desktop.

Use boat when your agents do real work for hours: builds, tests, Docker, emulators and a desktop, on a bigger machine whose disk is saved every minute. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Deno Sandbox.

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 Deno Sandbox?

We cannot compare today. Deno Sandbox is closed to new customers since November 2026 and publishes no current rates. Cloudflare costs $148 a month for one agent that never stops in our scenarios, and boat $26. At Deno's launch rates, which billed CPU only while code ran, a nearly idle sandbox could cost little.

Which is faster?

We cannot say: neither is in StarSling's CPU run. Cloudflare offers up to 4 vCPU against Deno's 2 vCPU. ComputeSDK measured a 671 ms median start for Cloudflare with 100 at once, and Deno states starts under 200 ms.

How long can each sandbox run?

Cloudflare sets no fixed maximum; a sandbox stops after inactivity. A Deno sandbox lives up to 30 minutes unless you promote it to a Deno Deploy app. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).

Can Cloudflare Sandbox or Deno Sandbox run Docker?

Cloudflare supports docker:dind with iptables and IP forwarding turned off, because containers cannot change iptables. Deno's docs do not mention Docker inside a sandbox. boat runs Docker with BuildKit and systemd and exposes /dev/kvm.

Do they keep my files?

Both can, with setup. Cloudflare keeps files when your code saves a snapshot, schedules automatic saves, makes an R2 backup or works in a mounted R2 bucket. Deno keeps files on a volume in Chicago; the default root disk is wiped when the sandbox ends. boat saves the disk every minute and at each stop with no code; a machine failure loses writes after the last good snapshot.

Can I limit where a sandbox connects to?

Yes, on both. Cloudflare has an allowedHosts list plus outbound handlers you write as Worker code, and Deno takes a host allowlist enforced outside your code. boat does not offer a provider-side egress allowlist today.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons