For detailed cost optimization guidance, see the Cost Optimization page in Core Concepts.
Quick Tips
1. Use Smaller Resources
Start with minimal resources and scale up if needed:- Python
- JavaScript/TypeScript
2. Delete When Done
Always delete sandboxes after use:- Python
- JavaScript/TypeScript
3. Use Pause Instead of Keeping Running
Pause preserves state but costs less than keeping sandboxes running:- Python
- JavaScript/TypeScript
4. Reuse Sandboxes
Reuse sandboxes for multiple operations:- Python
- JavaScript/TypeScript
Cost Comparison
| Strategy | Cost Impact | Use Case |
|---|---|---|
| Minimal resources | Low | Simple scripts, testing |
| Right-sized resources | Medium | Production workloads |
| Over-provisioned | High | ❌ Avoid unless necessary |
| Reuse sandboxes | Low | Multiple operations |
| Create per operation | High | ❌ Avoid |
| Pause when idle | Low | Intermittent workloads |
| Keep running | High | ❌ Avoid for idle sandboxes |

