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.
Use code interpreter
Execute Python and JavaScript code with rich outputs.
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.
Mount buckets
Mount S3-compatible object storage as local filesystems for persistent data storage.
Manage files
Read, write, organize, and synchronize files in the sandbox.
Deploy to Production
Set up custom domains for preview URLs in production.
Stream output
Handle real-time output from commands and processes.
WebSocket Connections
Connect to WebSocket servers running in sandboxes.
- Tutorials - Step-by-step learning paths
- API reference - Complete method documentation