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.
Use code interpreter
Execute Python and JavaScript code with rich outputs.
Run Docker-in-Docker
Run Docker commands inside a sandbox container.
Browser terminals
Connect browser-based terminals to sandbox shells using xterm.js or raw WebSockets.
Execute commands
Run commands with streaming output, error handling, and shell access.
Watch filesystem changes
Monitor files and directories in real-time to build responsive development tools and automation workflows.
Expose services
Create preview URLs and expose ports for web services.
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.
Deploy to Production
Set up custom domains for preview URLs in production.
WebSocket Connections
Connect to WebSocket servers running in sandboxes.
Stream output
Handle real-time output from commands and processes.
- Tutorials - Step-by-step learning paths
- API reference - Complete method documentation