CodeSandbox is a platform that allows developers to programmatically spin up isolated sandboxes for instant code execution. It provides powerful APIs to create secure, scalable development environments that can run any type of code. Each sandbox runs in isolation, enabling safe execution of untrusted code without affecting the host system. The infrastructure supports millions of concurrent VMs and offers quick start times (under 2 seconds), auto-resume, and customizable hibernation to manage resources efficiently.
Key Features
- Powerful APIs: Create and manage sandboxes programmatically.
- Secure & Isolated: Each environment is isolated for safe code execution.
- Scalable: Handles millions of concurrent VMs with easy provisioning.
- Continuous Context: Resume sandboxes after inactivity without data loss.
- Quick Start & Auto Resume: Spin up and restore snapshots in under 2 seconds.
- Customizable Hibernation: Control inactivity periods before hibernation.
Use Cases
- AI Agents: Give agents sandboxes to resolve prompts or run autonomous tasks in parallel.
- Development Environments at Scale: Create sandboxes for each developer or student.
- Secure Code Interpretation & Evals: Run untrusted code safely and evaluate results.
- CI/CD: Run tests inside sandboxes and hibernate when done.
CodeSandbox is now part of Together AI, enabling code interpretation for generative AI applications.
Key Benefits
- Powerful APIs for creating isolated sandboxes
- Secure and isolated environments for untrusted code
- Scalable with millions of concurrent VMs
- Quick start and auto resume within 2 seconds