New

CodeSandbox is now part of Together AI! We have joined forces to launch CodeSandbox SDK and bring code interpretation to generative AI.

Learn more

Sandboxes
built for scale

Programmatically spin up isolated sandboxes for instant code execution in your AI agents and code playgrounds.

Secure code generation at scale

Settings

Powerful APIs

Use our APIs to create isolated development environments (sandboxes) that can run any type of code you need.

Lock

Secure & isolated

Every environment runs in isolation, so you can safely run untrusted code without it affecting your system.

Dns

Ready for scale

We can handle millions of concurrent VMs and make it easy to provision, manage and decommission VMs.

Cloud

Continuous context

Resume development within the same sandbox after periods of inactivity. With no loss thanks to our snapshots.

Sync

Quick start & auto resume

Our microVM infrastructure allows us to spin up entire VMs, clone them and restore snapshots within 2 seconds.

Schedule

Customizable hibernation

Gain total control over periods of inactivity before auto hibernation kicks in.

Built for AI agents and more

AI agents

Give agents a sandbox to resolve user prompts, or create autonomous agents running on sandboxes. You can run multiple agents in parallel without them interfering with each other. Using the forking mechanism, you can also A/B test different agents.

Development environments at scale

Create a sandbox for each developer or student, and run their code in the sandbox. This way, you can run multiple development environments in parallel without them interfering with each other.

Secure code interpretation & evals

Run code in a sandbox to interpret it. This way, you can run untrusted code without worrying about it affecting your system. You can also run popular evals on any piece of code.

CI/CD

Run tests inside a sandbox, and hibernate the sandbox when the tests are done. This way, you can quickly start the sandbox again when you need to run the tests again or evaluate the results.

Template universe

Start with your favorite stack.

No templates found.

0 million+

users

0+

repositories connected

0+

organizations

0.0 billion+

lines of code written

Join the future of building

Start for free
Accelerate your dev workflow.