New
### CodeSandbox is now part of [Together AI!](https://together.ai) We have joined forces to launch [CodeSandbox SDK](https://codesandbox.io/sdk) and bring code interpretation to generative AI.
[Learn more](/blog/joining-together-ai-introducing-codesandbox-sdk)
Sandboxes
built for scale
================================
Programmatically spin up isolated sandboxes for instant code execution in your AI agents and code playgrounds.
--------------------------------------------------------------------------------------------------------------
[Start for free](/new?utm_source=landingpage) [Try CodeSandbox SDK chevron\_right](https://codesandbox.io/docs/sdk#quickstart)
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.
-------------------------------
[
AI Code Completion
Write code faster using our built-in code completion, powered by Codeium.
4.0k
](/templates/codeium)[
Angular
The quickest way to get started with Angular!
276.6k
](/templates/angular)[
Docker
The easiest way to get started from Docker in CodeSandbox
84.8k
](/templates/docker)[
HTML + CSS
A template for HTML and CSS
27.6k
](/templates/html-css)[
JavaScript
The JavaScript template
22.0k
](/templates/javascript)[
Next.js
The official Next.js template by the CodeSandbox team
102.0k
](/templates/nextjs)[
Next.js + Postgres
The perfect starter for a full-stack application using Next.js, Postgres and Drizzle-ORM.
1.5k
](/templates/postgres-drizzle-nextjs)[
Python
The starter template of Python for CodeSandbox
132.1k
](/templates/python)[
React (JS)
Quickest way to get started with a React application! Uses Vite on the server, and create-react-app in the browser.
10.7k
](/templates/react-vite)
[Explore templates](/templates)
Its dramatically improved my experience of sharing ideas.
Brian VaughnSoftware Engineer, React Team
It feels much more like my local environment.
Jonnie HallmanDesigner Developer, Stripe
We found this technology to be the best on the market today to sustain a very high load of requests.
Robert RizkCo-Founder and COO of Blackbox AI
CodeSandbox SDK provides the critical dev environment infrastructure that brings our vision to life.
Ran MaCo-Founder & CTO of Superblocks
Its dramatically improved my experience of sharing ideas.
Brian VaughnSoftware Engineer, React Team
It feels much more like my local environment.
Jonnie HallmanDesigner Developer, Stripe
We found this technology to be the best on the market today to sustain a very high load of requests.
Robert RizkCo-Founder and COO of Blackbox AI
CodeSandbox SDK provides the critical dev environment infrastructure that brings our vision to life.
Ran MaCo-Founder & CTO of Superblocks
It's a great experience and I miss some of its features when developing in VS Code.
Edwin WebbSenior Software Engineer
The new CodeSandbox is the first online editor I can see myself using to build a full project.
Matthew PhillipsCo-creator of Astro
It's such a huge productivity boost.
DominikFrontend Tech Lead at Adverity
It's a great experience and I miss some of its features when developing in VS Code.
Edwin WebbSenior Software Engineer
The new CodeSandbox is the first online editor I can see myself using to build a full project.
Matthew PhillipsCo-creator of Astro
It's such a huge productivity boost.
DominikFrontend Tech Lead at Adverity
#### 0 million+
users
#### 0+
repositories connected
#### 0+
organizations
#### 0.0 billion+
lines of code written
Join the future of building
---------------------------
[Start for free](/new?utm_source=startcodingcta)