AI code-execution sandbox

Cloudflare Sandbox SDK

Cloudflare Sandbox SDK runs code on Cloudflare Containers + Durable Objects, blending V8 isolates (sub-50ms) with containers, bundled into the Workers Paid plan.

Last verified 2026-07-26

Cloudflare Sandbox SDK is a hybrid: sub-50ms V8 isolates for lightweight work and containers for full environments, with "Code Mode" support. It rides the Workers Paid plan ($5/mo) plus active-CPU billing and is currently in beta with a 30-minute execution cap.

Key specs

IsolationV8 isolate + container
Cold start50ms
Price / vCPU-hr$0.072
Pricing modelWorkers Paid + active CPU
GPUNo
Session limit30min execution cap
PersistenceDurable Objects state
LanguagesJavaScript/TypeScript, containerized runtimes
MCP supportYes
IntegrationsOpenAI Agents SDK, Workers AI
DeploymentManaged (Cloudflare edge)
Free tierWorkers free tier for isolates
BaseWorkers Paid $5/mo
Active CPU~$0.072/vCPU-hr

Strengths

  • Sub-50ms isolates
  • Bundled with Workers ($5/mo)
  • Global edge

Trade-offs

  • Beta
  • 30-min execution cap
  • Container cold start slower

Best for: Edge-native apps and teams already on Cloudflare Workers.

Head-to-head

Alternatives to Cloudflare Sandbox SDK

Sources: Cloudflare Workers docs ↗

Get pricing for Cloudflare Sandbox SDK

Tell us what you're building. We'll route you to the right sandbox teams for pricing and a demo — no spam.