Concepts (25)
Last updated Sep 30, 2026 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.
These pages explain how the Sandbox SDK works, why it's designed the way it is, and the concepts you need to understand to use it effectively.
- Architecture - How the SDK is structured and why
- Sandbox lifecycle - Understanding sandbox states and behavior
- Container runtime - How code executes in isolated containers
- Session management - When and how to use sessions
- Preview URLs - How to expose sandboxed services on the public internet.
- Security model - Isolation, validation, and safety mechanisms
- Terminal connections - How browser terminal connections work
- Directory backups - Overlay restore, local extract, and cross-device renames
Related resources
- Tutorials - Learn by building complete applications
- How-to guides - Solve specific problems
- API reference - Technical details and method signatures
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/sandbox/sdk/concepts/#page","headline":"Concepts","description":"Learn how the Sandbox SDK 0.x works, including architecture, lifecycle, security, and sessions.","url":"https://developers.cloudflare.com/sandbox/sdk/concepts/","inLanguage":"en","image":"https://developers.cloudflare.com/sandbox/sdk/concepts/og.png?v=84623be765317a51","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 combines Workers, Durable Objects, and Containers for secure code execution. title: Architecture image: https://developers.cloudflare.com/sandbox/sdk/concepts/architecture/og.png?v=fc9759f139bbeafd
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