Cloudflare Sandbox vs Morph Cloud
Cloudflare Sandbox runs a container you ship, each in its own microVM, 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. Morph Cloud gives you full VMs that you can pause, wake and branch with their memory still in place.
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.
- Largest instance
- 4 vCPU, 12 GiB memory, 20 GB disk
- Compliance
- Cloudflare holds a SOC 2 Type II report
Morph Cloud
Morph Cloud sells full virtual machines for AI agents that can be snapshotted, branched and restored with their memory, which it calls Infinibranch.
You get MorphVM instances as low-level building blocks and Devboxes as ready workspaces on top of them, with SSH, preview URLs and a tmux API for running coding agents you install yourself. Everything is billed in MCUs, where one MCU is 1 vCPU, 4 GB of RAM or 16 GB of disk for an hour. It is built for teams that fan agents out from one saved state. It also sells managed GitHub Actions runners and a shared filesystem.
- Regions
- Not published
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 workload | Cloudflare Sandbox: price rank | Morph Cloud: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Long agent sessions need a disk that stays and real Docker. Morph has both in a full VM. On Cloudflare your code keeps files with snapshots or R2, and Docker runs with iptables off. boat adds coding agents you prompt and steer by API. | 192nd of 365, with limits $1,543 a month | 215th of 365, with limits $2,288 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 | 272nd of 361, with limits $3,014 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. Cloudflare bills CPU only while it is busy and wakes on the next request. Morph can pause a machine with its memory, bill only its snapshot while paused, and wake it on demand. | 17th cheapest of 336 $144 a month | 20th cheapest of 336 $154 a month | 189th of 336, with limits $2,000 a month |
| Sandboxes for your users 300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month Both fit sandboxes for your users. Cloudflare adds egress rules you write in Worker code, and Morph pauses each machine with its memory. boat adds token-gated HTTPS on up to 50 ports. | 19th cheapest of 349 $731 a month | 21st cheapest of 349 $905 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 Morph's memory branching suits rollouts that all start from the same running state. Cloudflare snapshots a sandbox's disk and starts new sandboxes from it. A boat fork copies the disk only. | 147th of 349, with limits $9,428 a month | 92nd of 349, with limits $4,847 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 | 51st cheapest of 359 $675 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 Morph sells managed GitHub Actions runners. Cloudflare has 20 GB of disk and runs Docker with iptables turned off. On boat you run your own runner, with Docker and /dev/kvm. | 303rd of 374, with limits $704 a month | 37th cheapest of 374 $355 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. Cloudflare starts from a fresh disk after sleep unless your code snapshots it or mounts R2. Morph keeps everything while paused and bills the snapshot. boat keeps a stopped disk at least 14 days with no compute charge. | 123rd cheapest of 371 $93 a month | 86th cheapest of 371 $116 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 ready desktop for computer use. On Cloudflare you build one into your image. Morph has a browser-based remote desktop where you install the browser and agent. boat has a 60 fps desktop and computer tools. | 207th of 367, with limits $460 a month | 219th of 367, with limits $595 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 | 267th of 356, with limits $250 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 | 286th of 343, with limits $234 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 | 152nd of 327, with limits $4,750 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 | 245th of 351, with limits $228 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 requirement | Not ranked: misses a requirement | 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Cloudflare Sandbox | Morph Cloud | boat |
|---|---|---|---|
| Isolation | Firecracker microVM per container, own kernel and network | Full VM with its own kernel | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| Files between sessions | Disk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucket | Kept when you pause or snapshot; a TTL can pause the VM with its memory; a plain stop releases the instance | Disk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot |
| Pause with memory | No; after sleep the container starts again without its processes | Yes; resume brings back all processes and memory, and a paused VM bills only its snapshot | No; disk is saved and resume boots the machine again |
| Fork a running machine | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | Yes, with its memory, as many copies as you ask for, in under 250 ms | Yes, with its disk from the last 1-minute snapshot, without memory |
| Wake on request | Yes; stops after inactivity and wakes on the next request | Yes; a paused VM resumes on the next HTTP request, SSH or exec call | No; a stopped sandbox is started by API |
| Docker inside | docker:dind with iptables and IP forwarding turned off | Yes, including Docker in Docker and local Kubernetes | Docker with BuildKit and Compose, root and systemd |
| Nested virtualization | Not documented | Experimental | Yes, /dev/kvm for Android emulators and VMs |
| Desktop and browser | Built-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsers | Browser-based remote desktop; you set up the browser and any computer use agent | 1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU |
| Coding agents | Guides for Claude Code, Codex, OpenCode and Pi in your image, plus integrations | You install the agent, then drive it through a tmux API that sends keys and reads the screen | Seven installed (Claude Code, Codex, OpenCode and more), with a prompt, steer and events API |
| Keeping keys out of the sandbox | Your outbound handler adds the token for any HTTP or HTTPS host; you write the code | No documented proxy that keeps model or API keys outside the VM; keys are set inside the machine | Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs; other secrets still enter the sandbox |
| Egress control | allowedHosts deny-by-default list plus outbound handlers in Worker code | No egress allowlist documented | No provider-side allowlist |
| Inbound traffic | HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP | Named HTTP services with optional API key auth; SSH and port forwarding through Morph's gateway; no public raw TCP | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6 |
| Guest systems | Linux containers (linux/amd64 images) | Linux, with experimental Windows and macOS (x86) | Linux; Windows programs through Wine on the desktop, no Windows VM |
| Regions | Several regions across Cloudflare's network; pin to a region or jurisdiction | Not published | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Morph Cloud | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Yes | Yes |
| Desktop GUI | No documented way | Yes | Yes |
| Browser | With your own setup | No documented way | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | With your own setup | Yes | Yes |
| Fork/clone | With your own setup | Yes | Yes |
| Live fork (no pause) | With your own setup | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | No documented way | No documented way |
| Secret proxy | Yes | No documented way | Yes |
| Secret proxy for any API | Yes | No documented way | Yes |
| Preinstalled agents | Yes | No documented way | Yes |
| Agent harness API | With your own setup | Yes | Yes |
| MCP server | No documented way | No documented way | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | Yes | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Yes | Yes |
| Spend limits | No documented way | Not published | Yes |
| Usage per sandbox (API) | Not published | Yes | Yes |
| Audit logs | Yes | Yes | No documented way |
| SSO | Yes | Not published | No documented way |
| SOC 2 | Yes | Not published | No documented way |
| HIPAA | Yes | Not published | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Cloudflare Sandbox nor Morph Cloud is in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which has faster CPU. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on other hosts. ComputeSDK measured a 671 ms median start for Cloudflare with 100 at once (2026-11-06, default size). Morph says it restores a snapshot in under 250 ms, which measures 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 Morph 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.
| Scenario | Cloudflare Sandbox, a month | Morph Cloud, a month | boat, 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 | $32 · Developer | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $121 · Team | $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,459 · Scale | $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 | $325 · Scale | $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 | $869 · Scale | $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.
Morph Cloud: Morph bills MCUs at $0.05 each: per hour, a machine uses the largest of its vCPUs, its RAM in 4 GiB steps or its disk in 16 GiB steps. The Free plan includes no MCUs. Team ($40 a month for 1,000 MCUs) and Scale ($250 a month for 7,500 MCUs) are prepaid bundles at a discount. A paused VM bills only its snapshot storage.
Morph 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, and starts far above that are refused. 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 credentials proxy ($1 a day plus $1 per 1,000 requests), if on, still bill while stopped.
Limits in those scenarios
Cloudflare keeps files between days only through snapshots, automatic saves or R2 that your code sets up, and its default 1,500 vCPU at once is short of the 2,000 the 1,000-job burst needs, though Cloudflare raises it on request. Morph fits all five scenarios, but disk beyond 16 GiB per vCPU raises the bill, and egress prices are not published. Morph's always-on figure assumes the VM stays awake; one that pauses when idle costs less. boat does not fit the burst as is: the $2,000 plan includes 90 starts a minute and 600 an hour, charges $0.03 to $0.07 for extra starts, and refuses starts above 270 a minute.
| Scenario | Cloudflare Sandbox | Morph Cloud | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops | None for this scenario |
| None for this scenario |
| 50 agents in parallel | None for this scenario |
| None for this scenario |
| Sandboxes for your users | None for this scenario |
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use Cloudflare Sandbox when
your app already runs on Workers, you want short sandboxes that sleep when idle, and you need egress rules written as code.
- Egress rules you can program. For teams that must lock down traffic: Cloudflare blocks every host not on your list and can run your code on each request.
- Sleeps when idle, wakes on request. For many short, spiky sessions: a sandbox sleeps when quiet, wakes on the next request, and bills CPU only while busy.
- Built into the Workers platform. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, in a region you can pick.
Use Morph Cloud when
your agents branch from one running state with its memory, pause between requests and wake on demand, or need managed CI runners.
- Memory snapshots and branching. For agents that fan out from one running state: Morph branches a VM with its memory into many copies in under 250 ms.
- A full VM, not a container. For heavier builds: Morph VMs run Docker in Docker and local Kubernetes, and keep their disk and memory while paused.
- Managed CI runners and other guests. Morph also sells managed GitHub Actions runners and lists experimental Windows and macOS (x86) guests.
Where boat fits
Cloudflare and Morph both hand you a machine and leave the agent setup to you. If your agents run for hours, build with Docker and use a browser, boat gives you a full VM with those parts already inside, and it saves its disk with no code. boat does not keep memory, runs only in the EU, and caps starts per plan.
Agents ready to drive from outside
On Cloudflare you bake each agent into your image. On Morph you install it and send keystrokes through tmux, then parse the screen. boat ships Claude Code, Codex and others with one API to prompt, steer and follow them.
Files saved with no code
On Cloudflare your code saves snapshots, automatic saves or R2. On Morph you pause or snapshot before a stop, or set a TTL that pauses the VM. boat saves the disk every minute and at each stop. If a boat machine fails, you lose what was written after the last good snapshot.
Desktop and browser ready
On Cloudflare you build a desktop into your image. Morph has you install the browser and computer use agent on its remote desktop. boat has a 60 fps desktop with Chrome and computer tools.
Use boat when your agents work for hours and should arrive ready: coding agents driven by API, Docker and /dev/kvm, a 60 fps desktop, and a disk saved every minute. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Morph 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 Morph Cloud?
Not in our scenarios: Morph's estimate is lower in all five, for example $325 against $476 a month for sandboxes for your users, and $869 against $1,889 for 1,000 short jobs at once. boat is lower than both in four of the five, for example $200 for the user sandboxes. For the 1,000-job burst boat costs $8,800, because it bills extra starts.
Which is faster, Cloudflare Sandbox or Morph Cloud?
Neither is in StarSling's run of 3 October 2026, so we cannot say. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host. Morph's under 250 ms figure is for restoring a snapshot, not for CPU speed.
Can Cloudflare Sandbox run Docker?
Yes, with docker:dind, but the daemon runs with iptables and IP forwarding turned off because containers cannot change iptables. Morph runs Docker in Docker and local Kubernetes in a full VM. boat runs Docker with BuildKit, root and systemd.
Do they keep my files?
Yes, in different ways. Cloudflare starts from a fresh disk after sleep, unless your code saves a snapshot, schedules automatic saves or works in a mounted R2 bucket. Morph keeps disk and memory while a VM is paused, and a plain stop releases the instance. boat saves the disk every minute and at each stop, and keeps it at least 14 days after a stop.
Is each one a VM or a container?
On Cloudflare you ship a container image, and each container runs in its own Firecracker microVM with its own kernel. Morph Cloud and boat both give you full VMs with root.
Where do they run?
Cloudflare places sandboxes in several regions of its network and lets you pin one. Morph does not publish its regions. 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
- boat vs Cloudflare Sandbox
- boat vs Morph Cloud
- E2B vs Cloudflare Sandbox
- Daytona vs Cloudflare Sandbox
- Modal vs Cloudflare Sandbox
- Vercel Sandbox vs Cloudflare Sandbox
- Cloudflare Sandbox vs Blaxel
- Cloudflare Sandbox vs Runloop
- Cloudflare Sandbox vs Tensorlake
- Cloudflare Sandbox vs CodeSandbox SDK
- Cloudflare Sandbox vs Northflank
- Cloudflare Sandbox vs Fly.io Machines