What is Cloudflare Sandbox SDK?
Latest launch
Summary
Cloudflare's SDK for running untrusted or generated code in isolated sandboxes via a Worker.
- Category
- Agent infra
- Pricing
- Not stated in the sources on this page.
Cloudflare Sandbox SDK is a way to run code in isolation from your application. Its docs say "A sandbox is an isolated place to run code." and that "Your Worker decides which application APIs and data the code receives, and whether the code can reach the public Internet." The GitHub repository describes it as "Run sandboxed code environments on Cloudflare's edge network".
According to its docs, you can use a sandbox for "agent-written code, user-uploaded applications, data analysis, development previews, build pipelines". Cloudflare provides two environments: Containers, which run an image you provide as a full Linux environment, and Dynamic Workers, which create a new Worker at runtime. The docs say sandbox containers use the Durable Object scheduling policy, "which is in public beta". The repository's license is not reported by the GitHub API, and pricing is not stated in the cited sources beyond pointers to separate Containers and Dynamic Workers pricing pages.
For version changes, see the Cloudflare Sandbox SDK 1.0.0 launch. The migration docs say 0.x receives bug and security fixes until 2026-12-31. For similar tools, browse the Agent infra category, or compare E2B, Daytona and Modal. Primary sources: the product docs, the GitHub repository and the migration guide.
Cloudflare Sandbox SDK alternatives
| Tool | License | Pricing note |
|---|---|---|
Cloudflare Sandbox SDKThis pageCloudflare's SDK for running untrusted or generated code in isolated sandboxes via a Worker. | — | Not stated |
E2BE2B is an open-source sandbox environment for running AI agents in secure, on-demand Linux VMs. | Apache-2.0 | Not stated |
DaytonaDaytona is infrastructure for running AI-generated code in isolated sandboxes via SDKs, API and CLI. | — | Not stated |
ModalModal runs code in the cloud and offers Sandboxes, secure containers for untrusted user or agent code. | — | Not stated |
Launches and updates
Cloudflare Sandbox SDK 1.0.0 is a ground-up rewrite
Cloudflare Sandbox SDKCloudflare released @cloudflare/sandbox 1.0.0 on October 8, 2026, a ground-up rewrite of its Sandbox SDK that requires migrating from 0.x.
Category: Agent infra
Pricing: Not stated
Guides covering Cloudflare Sandbox SDK
Questions
What is Cloudflare Sandbox SDK?
Its docs describe a sandbox as "an isolated place to run code." The GitHub repository description is "Run sandboxed code environments on Cloudflare's edge network". Sandboxes are accessed through a Worker.
Is Cloudflare Sandbox SDK open source?
Not stated in the cited sources. The GitHub API does not report a recognized license for the cloudflare/sandbox-sdk repository.
How is Cloudflare Sandbox SDK used?
According to its docs, your Worker starts a sandbox and sends it work. Uses listed include agent-written code, user-uploaded applications, data analysis, development previews and build pipelines. Teams on @cloudflare/sandbox 0.x can follow the migration guide to 1.0.