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
| Isolation | V8 isolate + container |
| Cold start | 50ms |
| Price / vCPU-hr | $0.072 |
| Pricing model | Workers Paid + active CPU |
| GPU | No |
| Session limit | 30min execution cap |
| Persistence | Durable Objects state |
| Languages | JavaScript/TypeScript, containerized runtimes |
| MCP support | Yes |
| Integrations | OpenAI Agents SDK, Workers AI |
| Deployment | Managed (Cloudflare edge) |
| Free tier | Workers free tier for isolates |
| Base | Workers 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
E2B — AI code-execution sandboxDaytona — AI code-execution sandboxModal — AI code-execution sandboxVercel Sandbox — AI code-execution sandbox
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.