Cloudflare Sandboxes vs CodeSandbox SDK: prices, limits and features.
Their prices for 2 vCPU and 4 GB overlap: $0.036 to $0.18 / hour and $0.15 / hour, since CPU is billed only while busy. 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. The CodeSandbox SDK runs microVM sandboxes. Together AI now offers it as Together Code Sandbox and calls the old SDK legacy.
Pick Cloudflare Sandboxes if you want
- a lower price while the CPU is idle: $0.036 against $0.15 an hour
- CPU billed only while busy; CodeSandbox SDK bills CPU the whole time a sandbox runs
- fork and snapshots: Filesystem snapshots, not memory (beta), which CodeSandbox SDK's pages do not state
Pick CodeSandbox SDK if you want
- a lower price while the CPU is busy: $0.15 against $0.18 an hour
- largest size: 16 cores (Cloudflare Sandboxes: 4 vCPU and 12 GiB)
- SDK languages: Python and TypeScript (Cloudflare Sandboxes: TypeScript, inside Workers)
Or Groundbox if you want
- CI runners too: yes, on the same key and bill
Where Cloudflare Sandboxes or CodeSandbox SDK is ahead of Groundbox: longest session.
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 CodeSandbox SDK. 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
CodeSandbox SDK
- Together: Code Sandbox (legacy CodeSandbox SDK), checked 2026-11-19
- Together: Code Sandbox, checked 2026-11-19
- Together pricing, checked 2026-11-20