---
description: Learn how the Sandbox SDK works, including architecture, lifecycle, security, and sessions.
title: Concepts
image: https://developers.cloudflare.com/og-docs.png
---

[Skip to content](#main-content)

> 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.

# Concepts

Last updated Sep 1, 2026|Copy as Markdown| [View as Markdown](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/index.md)| [Agent setup](https://0285ca83.previews.developers.cloudflare.com/agent-setup/)

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](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/architecture/) - How the SDK is structured and why
- [Sandbox lifecycle](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/sandboxes/) - Understanding sandbox states and behavior
- [Container runtime](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/containers/) - How code executes in isolated containers
- [Session management](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/sessions/) - When and how to use sessions
- [Preview URLs](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/preview-urls/) - How to expose sandboxed services on the public internet.
- [Security model](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/security/) - Isolation, validation, and safety mechanisms
- [Terminal connections](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/terminal/) - How browser terminal connections work
- [Directory backups](https://0285ca83.previews.developers.cloudflare.com/sandbox/concepts/backup-restore/) - Overlay restore, local extract, and cross-device renames

## Related resources

- [Tutorials](https://0285ca83.previews.developers.cloudflare.com/sandbox/tutorials/) - Learn by building complete applications
- [How-to guides](https://0285ca83.previews.developers.cloudflare.com/sandbox/guides/) - Solve specific problems
- [API reference](https://0285ca83.previews.developers.cloudflare.com/sandbox/api/) - Technical details and method signatures

Was this helpful?

YesNo

## On this page

[![](https://0285ca83.previews.developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://0285ca83.previews.developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/sandbox/concepts/#page","headline":"Concepts · Cloudflare Sandbox SDK docs","description":"Learn how the Sandbox SDK works, including architecture, lifecycle, security, and sessions.","url":"https://developers.cloudflare.com/sandbox/concepts/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","dateModified":"2026-09-01","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/"}}
```
