Products · Developer platform
Sandboxes
Isolated execution on Cloudflare using Containers and Dynamic Workers
Pricing and limits
Pricing
As of Nov 3, 2026, from Cloudflare's docs, last updated there Sep 30, 2026. Licensed CC BY 4.0; navigation removed.
Note
This page documents Sandbox SDK 0.x for existing applications. For new applications, refer to Sandboxes. To move an existing application to @cloudflare/sandbox 1.0, refer to Migrate from Sandbox SDK 0.x.
Sandbox SDK pricing is determined by the underlying Containers platform it's built on.
Containers Pricing
Refer to Containers pricing for complete details on:
- vCPU, memory, and disk usage rates
- Network egress pricing
- Instance types and their costs
Related Pricing
When using Sandbox, you'll also be billed for:
- Workers - Handles incoming requests to your sandbox
- Durable Objects - Powers each sandbox instance
- Workers Logs - Optional observability (if enabled)
Limits
As of Nov 3, 2026, from Cloudflare's docs, last updated there Sep 30, 2026. Licensed CC BY 4.0; navigation removed.
Note
This page documents Sandbox SDK 0.x for existing applications. For new applications, refer to Sandboxes. To move an existing application to @cloudflare/sandbox 1.0, refer to Migrate from Sandbox SDK 0.x.
Since the Sandbox SDK is built on top of the Containers platform, it shares the same underlying platform characteristics. Refer to these pages to understand how pricing and limits work for your sandbox deployments.
Sandbox also inherits current Containers lifecycle, placement, and routing behavior. For more detail, refer to Lifecycle of a Container and Scaling and Routing.
Container limits
Refer to Containers limits for complete details on:
- Memory, vCPU, and disk limits for concurrent container instances
- Instance types and their resource allocations
- Image size and storage limits
Workers and Durable Objects limits
When using the Sandbox SDK from Workers or Durable Objects, you are subject to Workers subrequest limits. By default, the SDK uses HTTP transport where each operation (exec(), readFile(), writeFile(), etc.) counts as one subrequest.
Subrequest limits
- Workers Free: 50 subrequests per request
- Workers Paid: 1,000 subrequests per request
Avoid subrequest limits with RPC transport
Enable RPC transport to multiplex all SDK calls over a single persistent connection:
{
"vars": {
"SANDBOX_TRANSPORT": "rpc"
},
}
[vars]
SANDBOX_TRANSPORT = "rpc"
With RPC transport enabled:
- The persistent connection counts as one subrequest
- All subsequent SDK operations use the existing connection (no additional subrequests)
- Ideal for workflows with many SDK operations per request
See Transport modes for a complete guide.
Best practices
To work within these limits:
- Right-size your instances - Choose the appropriate instance type based on your workload requirements
- Clean up unused sandboxes - Terminate sandbox sessions when they are no longer needed to free up resources
- Optimize images - Keep your custom Dockerfiles lean to reduce image size
- Use RPC transport for high-frequency operations - Enable
SANDBOX_TRANSPORT=rpcto avoid subrequest limits when making many SDK calls per request
Timeline
October 2026
- Sandbox SDK 0.12.14 updates trusted certificates after the eMudhra compromise
The private keys of eight eMudhra intermediate certificate authorities ↗︎ can be recovered, so anyone can forge a certificate for any hostname that chains to them. Sandbox SDK images before 0.12.14 trust these certificates. An HTTPS connection that leaves the container directly, such as one from mountBucket(), backups, gitCheckout(), tunnels, or code that runs in the sandbox, can be intercepted w…
September 2026
- Sandbox SDK 1.0: control every sandbox from your own Durable Object
Sandbox SDK 1.0 is available. Your own Durable Object class now controls each sandbox container directly, through the Durable Object container API on this.ctx.container. With 1.0, your class can: Choose the image and instance size each time it starts a sandbox. One class can run sandboxes on different images, and a deploy does not restart sandboxes that are running. Save the files of a sandbox as…
- Run Cursor Cloud Agents on Cloudflare via self-hosted machines
Cursor self-hosted machines ↗︎ let you run Cursor Cloud Agents on Cloudflare. Each assigned session runs in its own isolated environment backed by Cloudflare Containers. Cursor hosts the agent loop, inference, and planning. Cloudflare runs commands, file edits, repository operations, and other tools inside infrastructure that you control. The open-source Cursor Cloudflare Workers template ↗︎ depl…
July 2026
- Run Devin on Cloudflare using Devin Outposts
Devin Outposts ↗︎ lets you run Devin agents on Cloudflare. Each Devin session runs in its own isolated sandbox backed by Cloudflare Containers, so agents can execute code and use development tooling in an isolated environment. Use Devin Outposts when you want Devin sessions to run on Cloudflare managed infrastructure, with each session isolated from the others. To get started, refer to Run Devin…
June 2026
- Deprecating Sandbox SDK features
Sandbox SDK 1.0 preview A preview of Sandbox SDK 1.0 is available on @cloudflare/sandbox@next. For new projects, or to move past these deprecations in one migration, refer to the Sandbox SDK 1.0 preview and Migrate. Today we are announcing the deprecation of several features from the Sandbox SDK. The SDK has grown and matured substantially since it first launched. As agent workflows have develope…