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 processes
Start and manage long-running services and applications.
Backup and restore
Create point-in-time backups and restore sandbox directories.
Browser terminals
Connect browser-based terminals to sandbox shells using xterm.js or raw WebSockets.
Run Docker-in-Docker
Run Docker commands inside a sandbox container.
Use code interpreter
Execute Python and JavaScript code with rich outputs.
Execute commands
Run commands with streaming output, error handling, and shell access.
Expose services
Create preview URLs and expose ports for web services.
Watch filesystem changes
Monitor files and directories in real-time to build responsive development tools and automation workflows.
Work with Git
Clone repositories, manage branches, and automate Git operations.
Manage files
Read, write, organize, and synchronize files in the sandbox.
Mount buckets
Mount S3-compatible object storage as local filesystems for persistent data storage.
Stream output
Handle real-time output from commands and processes.
Deploy to Production
Set up custom domains for preview URLs in production.
WebSocket Connections
Connect to WebSocket servers running in sandboxes.
- Tutorials - Step-by-step learning paths
- API reference - Complete method documentation