Cloudflare Sandbox vs Northflank

Both run each sandbox in a microVM with its own kernel. 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. Northflank is a full cloud platform: a sandbox runs until you pause it, keeps files through volumes or filesystem snapshots you turn on, and comes with GPUs, 17 regions and your own cloud.

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.

Northflank

Northflank is a London developer platform for running services, jobs and databases on Kubernetes, and Sandboxes is its product for running untrusted code.

A Northflank sandbox is a container image deployed as a service. CPU sandboxes run in Kata microVMs with their own kernel, and GPU sandboxes run under gVisor. You create and drive them from the JavaScript or Python SDK, the CLI or the dashboard, on Northflank's cloud or inside your own. It suits teams that want one platform for apps, databases, GPUs and sandboxes.

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 rankNorthflank: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Both keep a coding agent's files only through steps you set up. On Cloudflare your code saves snapshots, schedules automatic saves or mounts R2, and the disk is 20 GB at most. On Northflank you attach volumes, or snapshot the filesystem before a pause and restore from it. boat saves the disk every minute with no code.
192nd of 365, with limits
$1,543 a month
186th of 365, with limits
$1,413 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
44th cheapest of 361
$2,551 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
Short code-interpreter calls suit both. Cloudflare bills CPU only while busy and wakes on the next request. Northflank has per-second plans from 0.1 vCPU with no start fee. Each boat start counts against the plan's start limits.
17th cheapest of 336
$144 a month
91st of 336, with limits
$114 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
Cloudflare suits apps already on Workers, with 1,500 vCPU per account by default. Northflank does not publish how many sandboxes can run at once. boat runs 100 to 2,000 at once by plan, with starts limited per minute, hour and day.
19th cheapest of 349
$731 a month
94th of 349, with limits
$810 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
333rd of 349, with limits
$1,742 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
60th cheapest of 359
$818 a month
139th of 359, with limits
$685 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
Northflank boots your own image with its own kernel, so Docker runs inside. Cloudflare has 20 GB of disk at most and runs docker:dind with iptables turned off, but bills CPU only while busy. boat has 51 GB of disk on the default size, Docker with BuildKit and /dev/kvm.
303rd of 374, with limits
$704 a month
36th cheapest of 374
$347 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box should keep its files when you log off. Cloudflare starts a fresh disk after sleep unless your code restores a snapshot (beta, 30 days) or mounts an R2 bucket. Northflank keeps volumes, and the rest of the disk if you snapshot it before a pause. boat keeps a stopped disk at least 14 days with no code.
123rd cheapest of 371
$93 a month
124th cheapest of 371
$106 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 built-in desktop. On Cloudflare you build one into your image, or use the separate Browser Run service for headless browsers. On Northflank you install a desktop, a browser and a stream in your own image. boat streams a 60 fps desktop with computer tools.
207th of 367, with limits
$460 a month
189th of 367, with limits
$367 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
83rd of 356, with limits
$359 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
94th cheapest of 343
$200 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
83rd of 327, with limits
$2,031 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
Red-team runs often want raw TCP and nested VMs. Cloudflare takes no raw TCP from outside, and Northflank offers public TCP and UDP through a separate load balancer. boat has raw ports over public IPv6 and /dev/kvm.
25th cheapest of 351
$325 a month
43rd of 351, with limits
$180 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
Northflank fits, with GPU sandboxes from L4 to H100, H200 and B200. Cloudflare Sandbox and boat have no GPU.
Not ranked: misses a requirement5th cheapest of 102
$692 a month
Not 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 SandboxNorthflankboat
IsolationFirecracker microVM per container, own kernel and networkKata microVM with its own kernel for CPU; gVisor for GPUFull 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 diskPlans up to 20 vCPU / 40 GB, custom sizes on request; a resize restarts the sandbox16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher)
Files between sessionsDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucketAttached volumes survive (billed while paused); the rest of the disk resets unless you snapshot it before pausing and restore from itDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot; memory and running programs are not saved
Snapshots and forkSnapshot or back up a running sandbox, then start new sandboxes from it (snapshots public beta, 30 days); no one-call forkOpt-in filesystem snapshots of a running or terminating sandbox, restored into a new oneAutomatic disk snapshots; fork a running sandbox in one call from its last 1-minute snapshot
Custom imageAny linux/amd64 container imageAny container imageNo; start from boat's Ubuntu 24.04 image or a saved snapshot
Sleep when idleStops after inactivity and wakes on the next requestNo idle auto-pause; bills until you pause itAuto-stop 1 h after create or resume by default (up to 30 days, or off on paid plans); no idle timer, full rate while running
Docker insidedocker:dind with iptables and IP forwarding turned offOwn kernel, so Docker can run insideDocker with BuildKit and Compose, root and systemd
Nested virtualizationNot documentedNot documented inside a sandboxYes, /dev/kvm for Android emulators and VMs
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 browsersNo built-in desktop; Northflank's guide runs Playwright browser agents from your own image1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageHarnesses start Claude Code, Codex, Cursor, OpenCode, Pi, OMP or Devin CLI; you reach the agent by terminal or SSHSeven agents installed, with a prompt, steer and events API
Keeping API keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeHeader injection for listed hosts in the network policy API (documented for your own cluster)Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPHTTPS ports on a code.run or your own domain, private by default; SSH; public TCP and UDP through a separate load balancerUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6; the IP changes at each resume
Outbound rulesallowedHosts deny-by-default list plus outbound handlers you write in Worker codeNetwork policies with allow lists by IP, CIDR or domain, documented for your own cluster; static egress IPsOpen internet, no provider-side allowlist; filter inside the VM with root
GPUsNoneL4, A100, H100, H200, B200, RTX PRO 6000 and moreNone
Where it runsSeveral regions of Cloudflare's network; pin to a region or jurisdiction17 regions in North America, South America, Europe, Asia, Australia and Africa, one per project; or your own cloudGermany, Finland and France; no US or Asia region; you cannot pick one
ComplianceSOC 2 Type II reportSOC 2 Type 2, HIPAA and ISO 27001SOC 2 in progress; no report today
Every feature Battleships tracks (43)
FeatureCloudflare SandboxNorthflankboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesNot publishedYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskWith your own setupWith your own setupYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsWith your own setupYesYes
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-stopYesNo documented wayNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
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 wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayYesNo documented way
BYOCNo documented wayYesNo 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 logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
NorthflankNot measured
boat28.06 runs/s

Neither Cloudflare Sandbox nor Northflank 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. For start time, ComputeSDK measured a 671 ms median for Cloudflare with 100 at once (2026-11-06) and an 83 ms median for Northflank one at a time (2026-08-07), each at its default size. Those are different tests, so they do not compare. 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 Northflank 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 monthNorthflank, 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$30 · Developer Sandbox (free tier)$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$106 · Developer Sandbox (free tier)$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$1,290 · Developer Sandbox (free tier)$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$359 · Developer Sandbox (free tier) · with limits$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$684 · Developer Sandbox (free tier) · 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.

Northflank: Northflank bills per second for the plan size you pick, from $0.0038 an hour for 0.1 vCPU; 4 vCPU / 8 GB is $0.1333 an hour. There is no monthly fee and no start fee. A sandbox bills until you pause it. Volumes cost $0.11657 per GiB a month, also while paused, and outbound traffic costs $0.06 per GB.

Northflank: 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

In the scenarios that keep 50 GB of files between days, Cloudflare needs your own snapshot, automatic-save or R2 code, and its local disk tops out at 20 GB. Northflank keeps files outside attached volumes only if you snapshot before each pause. Cloudflare allows 1,500 vCPU at once per account by default, short of the 2,000 the 1,000-job burst needs, and raises it on request. Northflank does not publish how many sandboxes can run at once, so 300 or 1,000 at a time is not confirmed. boat does not fit that burst either: 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 SandboxNorthflankboat
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 scenario
  • how many machines can run at once: limit not published, probably fine at 50 (the typical published limit is 50)
None for this scenario
Sandboxes for your usersNone for this scenario
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • 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 that sleep when idle, wake on the next request and follow egress rules you write.

  • 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.
  • Egress rules you can program. For locked-down code runs: block every host except the ones you list, and run your own code on each outbound request.
  • Next to your Workers app. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2 with little to wire up.

Use Northflank when

you need GPUs next to the agent, machines bigger than 16 vCPU, regions outside Europe, SOC 2, HIPAA or ISO 27001 reports, or sandboxes inside your own cloud account.

  • GPU sandboxes. For agents that train, fine-tune or run models: Northflank has GPU sandboxes from L4 to H100, H200 and B200.
  • Bigger machines that keep running. For long jobs: plans go up to 20 vCPU / 40 GB, and a sandbox runs until you pause it.
  • Your own cloud, and one platform. For teams that must run in their own AWS, GCP or Azure account, or want apps, databases and sandboxes together.

Where boat fits

Both options keep an agent's files through steps you set up: snapshots or R2 on Cloudflare, volumes or snapshots before a pause on Northflank. If your agents work for hours or days on one machine, boat saves the disk with no code, runs Docker, a desktop and nested VMs, and comes with coding agents you drive from your own code. boat runs only in the EU, has no GPU and limits starts per plan.

Files that stay put with no code

On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2. On Northflank you attach volumes, which bill while paused, or snapshot the filesystem before each pause. boat saves the disk every minute and at each stop. Memory is not saved, so a resume is like a reboot, and a machine failure loses writes after the last good snapshot.

Docker, a desktop and KVM inside

Cloudflare runs Docker with iptables off, and neither Cloudflare nor Northflank ships a desktop or documents /dev/kvm. On both you build and stream a desktop yourself. boat has Docker with BuildKit, a 60 fps desktop and /dev/kvm.

Agents driven from outside

On Cloudflare you bake each agent into your image and write the handler that adds every token. Northflank Harnesses start the agent, and you reach it by terminal or SSH. boat has a prompt, steer and events API.

Use boat when your agents work for hours on one machine and should find their files as they left them with no snapshot code: installs, Docker, emulators, a desktop and a browser, with the agent driven from your code. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Northflank.

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 Northflank?

In all five scenarios on this page, Northflank's estimate is lower. One agent that never stops is $106 a month on Northflank against $148 on Cloudflare, and 50 agents in parallel are $1,290 against $1,660. For 300 user sandboxes and 1,000 short jobs, Northflank's limit on sandboxes at once is not published. boat costs $26 for the always-on agent and $317 for the 50 agents, but $8,800 for the 1,000 short jobs, because it bills extra starts. A nearly idle sandbox can cost less on Cloudflare, which bills CPU only while busy.

Which is faster, Cloudflare Sandbox or Northflank?

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

Do they keep my files when a sandbox stops?

Yes, through steps you set up. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. Northflank keeps attached volumes, and the rest of the disk if you snapshot it before a pause and restore from it. 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 Northflank?

Yes on both. Cloudflare supports docker:dind with iptables and IP forwarding turned off, and Northflank gives each sandbox its own kernel so Docker can run. boat runs Docker with BuildKit and Compose, root and systemd.

Does Cloudflare Sandbox or Northflank have GPUs?

Northflank does, with GPU sandboxes under gVisor from L4 to H100, H200, B200 and more. Cloudflare Sandbox and boat run on CPUs only.

Can I run Claude Code or Codex in each?

Yes. On Cloudflare you put the agent in your image, and Northflank Harnesses start Claude Code, Codex, Cursor, OpenCode or Pi that you reach by terminal or SSH. boat installs seven agents with an API to prompt, steer and follow them.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons