Cloudflare Sandboxes vs Modal: prices, limits and features.
Cloudflare Sandboxes lists the lower price for 2 vCPU and 4 GB: $0.036 to $0.18 / hour against $0.24 / hour. Here is where they differ, from each one's own pages, plus a third option if neither fits.
The short answer
Cloudflare's Sandbox SDK runs code in Cloudflare Containers, started from a Worker. Modal is a serverless compute platform; Modal Sandboxes run untrusted code in containers started from its SDKs.
Pick Cloudflare Sandboxes if you want
- a lower list price for 2 vCPU and 4 GB: $0.036 to $0.18 / hour against $0.24 / hour
- CPU billed only while busy; Modal bills CPU the whole time a sandbox runs
- isolation: microVM with its own kernel (Modal: gVisor by default; a VM runtime as an option)
Pick Modal if you want
- pause keeps memory: No pause; memory snapshots are experimental (Cloudflare Sandboxes: No)
- GPUs: Yes, T4 to H100 and up, which Cloudflare Sandboxes's pages do not state
- SDK languages: Python, JavaScript and Go (Cloudflare Sandboxes: TypeScript, inside Workers)
- security report: SOC 2 Type II, which Cloudflare Sandboxes's pages do not state
Or Groundbox if you want
- pause keeps memory: yes, memory and disk
- CI runners too: yes, on the same key and bill
- fork and snapshots: fork a running sandbox; save points
Where Cloudflare Sandboxes or Modal is ahead of Groundbox: GPUs, SDK languages, security report.
Side by side
a rust mark means that side is ahead · each value links to its source · checked 2026-11-20
Each against Groundbox: Groundbox vs Cloudflare Sandboxes and Groundbox vs Modal. Every other comparison is on /compare.
Sources
Cloudflare Sandboxes
- Cloudflare Containers pricing, checked 2026-11-20
- Cloudflare Containers limits, checked 2026-11-19
- Cloudflare Sandbox SDK, checked 2026-11-19
- Cloudflare Sandbox: lifetime, checked 2026-11-19
- Cloudflare Sandbox: network, checked 2026-11-19
- Cloudflare Sandbox: get started, checked 2026-11-19
Modal
- Modal pricing, checked 2026-11-20
- Modal docs: sandboxes, checked 2026-11-19
- Modal docs: sandbox resources, checked 2026-11-19
- Modal docs: sandbox snapshots, checked 2026-11-20
- Modal docs: sandbox networking, checked 2026-11-19
- Modal docs: security, checked 2026-11-19