Cloudflare Sandbox vs Unikraft Cloud

Both run each sandbox in its own Firecracker microVM, and both sleep when idle. Cloudflare bills per use inside its Workers platform, and keeps files through snapshots or R2 that your code sets up. Unikraft sells flat pools of running capacity, and its stateful standby snapshots memory, so instances wake in milliseconds with their state.

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.

Unikraft Cloud

Unikraft Cloud is a microVM cloud from Unikraft Inc. It runs any Dockerfile-based workload as a minimal Linux microVM, with cold starts it states as under 10 ms and scale-to-zero.

Your Dockerfile becomes the VM image at build time. Each instance runs on a customized Firecracker VMM and can go into standby when no traffic arrives. It is a general compute platform for dense, bursty work such as HTTP services, browsers and agent fleets. It sells flat self-serve plans, plus Enterprise dedicated hosts, on-prem and bring your own cloud. You reach instances through services, the CLI and a sandbox plugin for commands and files. For SSH or a desktop, you add them to your image with its official guides.

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 rankUnikraft Cloud: 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 last a whole day. On Cloudflare your code saves snapshots, automatic saves or R2, and Docker runs with iptables off. Unikraft builds your Dockerfile into the VM image and documents no container runtime inside. boat has Docker and saves the disk with no code.
192nd of 365, with limits
$1,543 a month
Not ranked: misses a requirement5th 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
Not ranked: misses a requirement6th 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. On Unikraft, standby instances do not count against the running pool, and self-serve plans run up to 24 instances at once.
17th cheapest of 336
$144 a month
Not ranked: misses a requirement189th 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 on Workers Paid. Unikraft Pro holds 5,000 standby instances but 24 running ones, so hundreds of active users need an Enterprise contract. boat runs 300 at once from the $100 plan, with starts limited per plan.
19th cheapest of 349
$731 a month
Not ranked: misses a requirement3rd 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
Not ranked: misses a requirement39th 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
Not ranked: misses a requirement10th 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 or run emulators need Docker and /dev/kvm. Cloudflare has 20 GB of disk at most. Unikraft offers nested virtualization on Enterprise. boat has both on every plan, and each job start counts against its plan's start limits.
303rd of 374, with limits
$704 a month
Not ranked: misses a requirement2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Unikraft keeps a box in standby with its memory, and you add sshd to your image and reach it through a TLS tunnel. 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 and gives direct SSH.
123rd cheapest of 371
$93 a month
121st cheapest of 371
$39 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. Unikraft documents a VNC desktop recipe you build into your image and resume from a snapshot. boat streams a 60 fps desktop with computer tools.
207th of 367, with limits
$460 a month
Not ranked: misses a requirement7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
Browser companies such as Browser Use run their own browsers on Unikraft at scale. On Cloudflare the browser goes in your image, or in the separate Browser Run service. boat gives each sandbox Chrome on a desktop.
68th of 356, with limits
$233 a month
Not ranked: misses a requirement7th 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
Not ranked: misses a requirement6th 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
Not ranked: misses a requirement73rd 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 want raw TCP and full root networking. Cloudflare containers cannot change iptables or take raw TCP inbound. Unikraft reaches instances through its load balancer, with TLS-wrapped TCP on other ports. boat has raw ports over public IPv6.
25th cheapest of 351
$325 a month
Not ranked: misses a requirement3rd 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 SandboxUnikraft Cloudboat
IsolationFirecracker microVM per container, own kernel and networkMinimal Linux microVM on a customized Firecracker VMM; full VMs on EnterpriseFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Machine sizeUp to 4 vCPU / 12 GiB / 20 GB disk per containerPlan pool shared by all running instances: 2 vCPU / 4 GiB, 8 vCPU / 8 GiB or 24 vCPU / 32 GiB; per-instance maximum not published4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB per sandbox (needs the $100 plan or higher); disk 51 to 251 GB
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 bucketStateful standby snapshots memory and resumes with warm caches; volumes availableDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot; memory is not saved
Fork and checkpointsSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkCheckpoint a running microVM's memory and volumes, then start new instances from itFork a running sandbox in one call from its last 1-minute disk snapshot; memory is not copied
Custom imageAny linux/amd64 container imageAny Dockerfile becomes the instance imageboat's Ubuntu 24.04 image or a saved snapshot; no custom Docker image
Docker insidedocker:dind with iptables and IP forwarding turned offThe Dockerfile becomes the VM image; no container runtime inside a running instance documentedDocker with BuildKit and Compose, root and systemd
Nested virtualizationNot documentedYes, with a per-instance flag and permission, Enterprise onlyYes, /dev/kvm on every plan
SSHYesYes, with setup: run sshd in your image and connect through a TLS service port and a local tunnelBuilt in on every sandbox, no tunnel
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 prebuilt desktop; an official VNC/noVNC desktop recipe you build into your image1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU
Wake on requestStops after inactivity and wakes on the next requestStandby after a 1 second idle cooldown by default; traffic wakes it, with a stated cold start under 10 msNo idle timer; a stopped sandbox is started by API
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPLoad balancer services: HTTP, HTTPS and TLS-wrapped TCP, custom domains; no public IP per instanceUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6
Egress controlallowedHosts deny-by-default list plus outbound handlers in Worker code, on Workers PaidNetwork shield filters traffic, Enterprise only, limited accessOpen internet, no provider-side allowlist; filter inside the VM with root
Keeping API keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeNetwork shield injects secrets into any HTTP traffic, Enterprise onlyOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) on every plan, for model providers and HTTPS APIs you register
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageNone installed; you add the agent to your own imageSeven installed, with a prompt, steer and events API
Regions and hostingSeveral regions across Cloudflare's network; pin to a region or jurisdiction; no self-hostingDallas, Frankfurt, San Francisco, Singapore, Washington DC; on-prem and BYOC on EnterpriseGermany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCloudflare SandboxUnikraft Cloudboat
Full VM (own kernel)YesYesYes
Docker insideYesNo documented wayYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayWith your own setupYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHYesWith your own setupYes
Persistent diskWith your own setupYesYes
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 wayYesNo 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 wayNot publishedYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesNo documented wayYes
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 publishedNo documented wayYes
Audit logsYesYesNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
Unikraft CloudNot measured
boat28.06 runs/s

Neither Cloudflare Sandbox nor Unikraft Cloud is in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which is faster. 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. Unikraft states cold starts under 10 ms, which is its own figure for start time, not CPU speed.

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 Unikraft Cloud 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 monthUnikraft Cloud, 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$39 · Hobby$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$39 · Hobby$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 PaidNot ranked: misses a requirement$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 PaidNot ranked: misses a requirement$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 limitsNot ranked: misses a requirement$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.

Unikraft Cloud: Unikraft charges a flat monthly fee for a pool of running capacity: free for 2 vCPU / 4 GiB, $39 for 8 vCPU / 8 GiB, $199 for 24 vCPU / 32 GiB. Standby instances do not count against the pool. It publishes no per-hour, disk or egress price, so anything bigger is an Enterprise quote.

Unikraft Cloud: 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 50 GB of files between days only through snapshot, automatic-save or R2 code, and its local disk tops out at 20 GB. An account runs 1,500 vCPU at once by default, short of the 2,000 the 1,000-job burst needs, raised on request. Unikraft's pools are shared by every running instance: one 4 vCPU / 8 GB agent fills the Team pool, so the 50-agent, user-sandbox and burst scenarios need Enterprise. boat does not fit the 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 SandboxUnikraft Cloudboat
One coding agent, workdaysNone for this scenario
  • flat pool: the tier is billed whether used or not
  • disk beyond 0 GiB: price unknown
  • 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
  • disk beyond 0 GiB: price unknown
  • egress price not published
None for this scenario
50 agents in parallelNone for this scenario
  • no pool tier with 200 vCPU / 400 GiB for 50 VMs
  • no published per-resource rate
None for this scenario
Sandboxes for your usersNone for this scenario
  • no pool tier with 600 vCPU / 1,200 GiB for 300 VMs
  • no published per-resource rate
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • no pool tier with 2,000 vCPU / 4,000 GiB for 1,000 VMs
  • no published per-resource rate
  • 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, billed per use, with egress rules you write in code.

  • Pay only while it works. For short, spiky sessions, Cloudflare bills CPU only while busy and scales to many sandboxes without buying a fixed pool.
  • Egress rules on a self-serve plan. Teams that must lock down outbound traffic get a deny-by-default host list and their own request handlers without an Enterprise contract.
  • Fits apps already on Workers. If your app runs on Workers, sandboxes sit next to Durable Objects and R2 with little to wire up.

Use Unikraft Cloud when

you run small services or browsers that sleep most of the time and must wake in milliseconds, want a free plan or flat prices, or need on-prem, your own cloud or GPUs under Enterprise.

  • Wakes in milliseconds with its memory. For services that sleep most of the time, Unikraft snapshots memory and wakes on the next request with warm caches.
  • A free plan and a flat bill. Hobby is free with no card, and Team ($39) and Pro ($199) are flat pools in which sleeping instances do not count.
  • Your own hardware or cloud. Enterprise customers can run it on dedicated hosts, on-prem or in their own cloud, with GPUs and arm64 hosts.

Where boat fits

Cloudflare and Unikraft are both built for sandboxes that sleep often and start fast. If your agents instead work for hours in one place, building with Docker, running emulators or using a desktop, boat gives each one a full VM that saves its disk with no code, with agents you drive from outside already installed. boat runs only in the EU, has no GPU and limits starts per plan.

A full machine with Docker and /dev/kvm

Agents start databases with docker compose and run emulators. Cloudflare runs Docker with iptables off on 20 GB of disk. Unikraft documents no container runtime inside an instance and offers nested virtualization on Enterprise. boat has Docker and /dev/kvm on every plan.

Files that stay put with no code

On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2. Unikraft's standby keeps memory and warm caches. boat saves the disk every minute and at each stop, with no compute charge while stopped. A boat resume is like a reboot.

Big sandboxes and fleets, self-serve

Unikraft's largest self-serve pool is 24 vCPU / 32 GiB for all running instances, so 50 agents at 4 vCPU / 8 GB need Enterprise. A boat sandbox goes up to 16 vCPU / 32 GB, and paid plans run 100 to 2,000 at once, with starts limited per plan.

Use boat when your agents need a real machine for hours: Docker, /dev/kvm, a desktop, a disk saved with no code, and coding agents you drive from outside. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Unikraft Cloud.

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 Unikraft Cloud?

For one agent running 24/7, Unikraft's $39 Team pool is lower than Cloudflare's $148 estimate, and on workdays both come to $39. For 50 agents, sandboxes for your users or 1,000 short jobs, no self-serve Unikraft plan is big enough, while Cloudflare prices the user-sandbox scenario at $476 a month. boat costs $20 for one agent on workdays, $26 for 24/7 and $200 for the user sandboxes.

Which is faster, Cloudflare Sandbox or Unikraft Cloud?

We cannot compare CPU: neither is in StarSling's run of 3 October 2026. For start time, Unikraft states cold boots under 10 ms and wakes on the next request; ComputeSDK measured a 671 ms median for Cloudflare with 100 at once (2026-11-06), and Unikraft is not in that run. boat is in neither start-time figure.

Can Cloudflare Sandbox or Unikraft Cloud run Docker?

Cloudflare supports docker:dind with iptables and IP forwarding turned off. Unikraft uses your Dockerfile to build the VM image and does not document a container runtime inside a running instance. boat runs Docker with BuildKit and Compose, systemd and root.

Do they keep my files when a sandbox sleeps?

Both can. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. Unikraft's stateful standby snapshots memory and resumes with warm caches, and volumes keep files. 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 SSH into them?

Cloudflare containers support SSH. On Unikraft you add an SSH server to your image, expose it as a TLS service and connect through a local tunnel. Every boat sandbox takes SSH directly, with no tunnel.

Where do they run?

Cloudflare places containers in several regions of its network and lets you pin a region or jurisdiction. Unikraft runs in Dallas, Frankfurt, San Francisco, Singapore and Washington DC, with on-prem and your own cloud 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