---
description: Practical guides for solving specific tasks with the Sandbox SDK.
title: How-to guides
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.

# How-to guides

Last updated Aug 24, 2026|Copy as Markdown|[View as Markdown](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/index.md)|[Agent setup](https://e8aee267.previews.developers.cloudflare.com/agent-setup/)

These guides show you how to solve specific problems and implement features with the Sandbox SDK. Each guide focuses on a particular task and provides practical, production-ready solutions.

[**2026 deprecation migration guide**Migrate away from deprecated Sandbox SDK features on the current stable package.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/2026-deprecation/)

[**Run background processes**Start and manage long-running services and applications.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/background-processes/)

[**Backup and restore**Create point-in-time backups and restore sandbox directories.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/backup-restore/)

[**Browser terminals**Connect browser-based terminals to sandbox shells using xterm.js or raw WebSockets.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/browser-terminals/)

[**Use code interpreter**Execute Python and JavaScript code with rich outputs.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/code-execution/)

[**Deploy a Sandbox application**Deploy a Sandbox Worker and keep the npm package and container image on the same release line.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/deploy/)

[**Run Docker-in-Docker**Run Docker commands inside a sandbox container.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/docker-in-docker/)

[**Execute commands**Run commands with streaming output, error handling, and shell access.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/execute-commands/)

[**Expose services**Create preview URLs and expose ports for web services.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/expose-services/)

[**Watch filesystem changes**Monitor files and directories in real-time to build responsive development tools and automation workflows.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/file-watching/)

[**Work with Git**Clone repositories, manage branches, and automate Git operations.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/git-workflows/)

[**Manage files**Read, write, organize, and synchronize files in the sandbox.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/manage-files/)

[**Mount buckets**Mount S3-compatible object storage as local filesystems for persistent data storage.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/mount-buckets/)

[**Handle outbound traffic**Intercept and handle outbound HTTP from sandboxes using Workers.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/outbound-traffic/)

[**Configure preview URLs on a custom domain**Set up wildcard DNS, routes, and TLS so exposePort preview URLs work on your domain.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/preview-urls-custom-domain/)

[**Stream output**Handle real-time output from commands and processes.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/streaming-output/)

[**WebSocket connections**Connect to WebSocket servers running in sandboxes.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/websocket-connections/)

[**Connect to Workers bindings**Access KV, R2, Durable Objects, and other bindings from a sandbox.](https://e8aee267.previews.developers.cloudflare.com/sandbox/guides/workers-connections/)

## Related resources

* [Tutorials](https://e8aee267.previews.developers.cloudflare.com/sandbox/tutorials/) \- Step-by-step learning paths
* [API reference](https://e8aee267.previews.developers.cloudflare.com/sandbox/api/) \- Complete method documentation

Was this helpful?

YesNo

## On this page

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

```json
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/sandbox/guides/#page","headline":"How-to guides · Cloudflare Sandbox SDK docs","description":"Practical guides for solving specific tasks with the Sandbox SDK.","url":"https://developers.cloudflare.com/sandbox/guides/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","dateModified":"2026-08-24","publisher":{"@type":"Organization","name":"Cloudflare","url":"https://www.cloudflare.com/"},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
