Installation
Install the Sandbox SDK using your preferred package manager:Authentication
Set your API key as an environment variable:Basic Usage
Create a Sandbox
Create a new sandbox with a Docker image:Execute Commands
Execute commands using string syntax (shell execution):Get Sandbox Info
Fetch current sandbox state:List Sandboxes
List all sandboxes in your organization:Refresh State
Refresh sandbox data from the server:Delete Sandbox
Clean up when you’re done:Complete Example
Key Concepts
Timeouts
Sandboxes auto-stop after 10 minutes by default. Extend the timeout:Files
Read and write files (text and binary, up to 10 MB):Background Processes
Run servers without blocking:Exposing Services
Your server must bind to IPv6 (::):
Next Steps
Sandbox Management
Manage lifecycle, timeouts, and state
File Operations
Read and write text and binary files
Command Execution
Run commands and background processes
Networking
Expose services via public URLs
Pricing
Understand billing and costs
Troubleshooting
Common issues and solutions