---
title: How-to guides
description: Practical guides for solving specific tasks with the Sandbox SDK.
image: https://developers.cloudflare.com/dev-products-preview.png
---

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

[Skip to content](#%5Ftop) 

# How-to guides

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.

[Run background processesStart and manage long-running services and applications.](https://developers.cloudflare.com/sandbox/guides/background-processes/)[Backup and restoreCreate point-in-time backups and restore sandbox directories.](https://developers.cloudflare.com/sandbox/guides/backup-restore/)[Browser terminalsConnect browser-based terminals to sandbox shells using xterm.js or raw WebSockets.](https://developers.cloudflare.com/sandbox/guides/browser-terminals/)[Use code interpreterExecute Python and JavaScript code with rich outputs.](https://developers.cloudflare.com/sandbox/guides/code-execution/)[Run Docker-in-DockerRun Docker commands inside a sandbox container.](https://developers.cloudflare.com/sandbox/guides/docker-in-docker/)[Execute commandsRun commands with streaming output, error handling, and shell access.](https://developers.cloudflare.com/sandbox/guides/execute-commands/)[Expose servicesCreate preview URLs and expose ports for web services.](https://developers.cloudflare.com/sandbox/guides/expose-services/)[Watch filesystem changesMonitor files and directories in real-time to build responsive development tools and automation workflows.](https://developers.cloudflare.com/sandbox/guides/file-watching/)[Work with GitClone repositories, manage branches, and automate Git operations.](https://developers.cloudflare.com/sandbox/guides/git-workflows/)[Manage filesRead, write, organize, and synchronize files in the sandbox.](https://developers.cloudflare.com/sandbox/guides/manage-files/)[Mount bucketsMount S3-compatible object storage as local filesystems for persistent data storage.](https://developers.cloudflare.com/sandbox/guides/mount-buckets/)[Handle outbound trafficIntercept and handle outbound HTTP from sandboxes using Workers.](https://developers.cloudflare.com/sandbox/guides/outbound-traffic/)[Deploy to productionSet up custom domains for preview URLs in production.](https://developers.cloudflare.com/sandbox/guides/production-deployment/)[Proxy requests to external APIsKeep credentials secure by routing sandbox requests through a Worker proxy that injects authentication at request time.](https://developers.cloudflare.com/sandbox/guides/proxy-requests/)[Stream outputHandle real-time output from commands and processes.](https://developers.cloudflare.com/sandbox/guides/streaming-output/)[WebSocket connectionsConnect to WebSocket servers running in sandboxes.](https://developers.cloudflare.com/sandbox/guides/websocket-connections/)[Connect to Workers bindingsAccess KV, R2, Durable Objects, and other bindings from a sandbox.](https://developers.cloudflare.com/sandbox/guides/workers-connections/)

## Related resources

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

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/sandbox/","name":"Sandbox SDK"}},{"@type":"ListItem","position":3,"item":{"@id":"/sandbox/guides/","name":"How-to guides"}}]}
```
