Key Features
- Full Linux Environment - Ubuntu with bash shell
- Package Management - pip (Python), npm (Node.js)
- System Tools - curl, wget, git, ffmpeg, imagemagick, and more
- Persistent Session - Files persist within same session
- Higher Limits - 5-minute default timeout, up to 12GB memory
How to Enable
For Agents
- Agents > Select Agent > Settings > Capabilities
- Attach Sandbox
For MCP Gateways
- Gateways > Select Gateway > Capabilities
- Attach Sandbox
Usage Examples
Install and Use Package
Process Images
Complex Data Pipeline
Environment Details
Available Languages
- Python 3.11 - Full stdlib + pip
- Node.js 20 - npm/yarn support
- Bash/Shell - Full command line access
- Other tools - git, curl, wget, ffmpeg, etc.
Size Tiers
| Size | vCPUs | Memory | Disk |
|---|---|---|---|
| XS | 0.25 | 1 GB | 4 GB |
| SM (default) | 0.5 | 4 GB | 8 GB |
| MD | 1.0 | 6 GB | 12 GB |
| LG | 2.0 | 8 GB | 16 GB |
| XL | 4.0 | 12 GB | 20 GB |
Storage
- Session-scoped - Data deleted after session ends
- Files capability - Persistent storage (separate)
Resource Limits
| Limit | Value | Notes |
|---|---|---|
| Command Timeout | 5 min default, 30 min max | Configurable per execution |
| Max Lifetime | 60 minutes | Auto-terminates after 1 hour |
| Idle Timeout | 20 minutes | Auto-terminates if idle |
| Containers per Session | 1 | One active at a time |
| Default Size | SM | 0.5 vCPU, 4 GB RAM, 8 GB disk |
| Network | Outbound only | No inbound connections |
| Package Installation | Unlimited | Any language packages |
Difference from Code Runner
| Feature | Code Runner | Sandbox |
|---|---|---|
| Timeout | 30 seconds | 5 min default, 30 min max |
| Memory | 128MB | 1 GB – 12 GB (by size) |
| Storage | None | 4 GB – 20 GB (by size) |
| Packages | None | pip, npm |
| System tools | None | curl, ffmpeg, etc. |
| Cost | Low | Higher |
Common Use Cases
Data Processing
Web Scraping
Image/Video Processing
Database Operations
Cost
For current pricing details, see Pricing. Monitor in Account > Usage dashboard.Best Practices
Install Strategically
Only install packages you need:Set Resource Limits
Prevent runaway processes:Use Virtual Environments
Avoid conflicts with environment setup:Monitor Output
Keep track of what’s happening:Troubleshooting
Session Timeout
Command exceeded timeout (5 min default, 30 min max). Break into smaller tasks or optimize code.Out of Memory
Exceeded memory for your size tier. Scale up or process in batches.Package Installation Fails
- Check package name is correct
- Ensure compatible Python/Node version
- Try installing dependencies separately