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

Sandboxes built for scale

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

The official Next.js template by the CodeSandbox team

Secure code
generation at scale

Powerful APIs

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

Secure & isolated

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

Ready for scale

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

Continuous context

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

Quick start & auto resume

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

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.

AI Code Completion

Write code faster using our built-in code completion, powered by Codeium.

Angular
The quickest way to get started with Angular!
Docker

The easiest way to get started from Docker in CodeSandbox

HTML + CSS

A template for HTML and CSS

JavaScript

The JavaScript template

Next.js

The official Next.js template by the CodeSandbox team

Next.js + Postgres
The perfect starter for a full-stack application using Next.js, Postgres an…
Python

The starter template of Python for CodeSandbox

React (JS)
Quickest way to get started with a React application! Uses Vite on the…
users
0 million+
repositories connected
0 +
organizations
0 +
lines of code written
0 billion+

Join the future of building