Sandbox SDK 0.x
Last updated Sep 30, 2026 Available on Workers Paid plan
Note
These pages document @cloudflare/sandbox 0.x for existing applications. Version 1.0 is a different library that works with a container you start from a Durable Object. To move an existing application to 1.0, refer to Migrate from Sandbox SDK 0.x. To start new work, refer to Sandboxes.
Sandbox SDK 0.x gives your Worker a Sandbox class built on Containers. A sandbox starts its container on first use, and its methods run commands, manage files, run background processes, and expose services in that container.
Move to 1.0
Migrate from Sandbox SDK 0.x
Move a 0.12 application to a Durable Object that starts its own container.
API map
Find what replaces each 0.12 API in 1.0.
Maintain a 0.x application
Getting started
Create a Worker that runs Python code in a 0.x sandbox.
How-to guides
Run commands, manage files, expose services, and deploy with Sandbox SDK 0.x.
API reference
Look up the methods of the 0.x Sandbox class.
Tutorials
Build complete applications with Sandbox SDK 0.x.
Coding agents
Install Cloudflare Skills ↗︎ for your agent (Agent setup). Use sandbox-stable with these Sandbox SDK docs.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/sandbox/sdk/#page","headline":"Sandbox SDK 0.x","description":"Documentation for existing applications on Sandbox SDK 0.x, the Sandbox class in @cloudflare/sandbox that runs commands, files, and services in a container.","url":"https://developers.cloudflare.com/sandbox/sdk/","inLanguage":"en","image":"https://developers.cloudflare.com/sandbox/sdk/og.png?v=6d27845d4289e552","dateModified":"2026-09-30","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Sandbox SDK 0.x API for executing code, managing files, running processes, and exposing services. title: API reference image: https://developers.cloudflare.com/sandbox/sdk/api/og.png?v=2992d25c6889cd46
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/sandbox/llms.txt
Use this file to discover all available pages before exploring further.
Docs