CodeSandbox

Cloud platform to create, share, and run isolated development environments and code sandboxes instantly.

Visit Website
codesandbox.io
Verified API available Free tier ~62k monthly visits
Quick facts
What is it Cloud platform to create, share, and run isolated development environments and code sandboxes instantly.
Pricing Freemium — from $170/mo
Free tier Yes
Platform Web Application
API Yes
Best for Providing a secure sandbox for AI agents to execute code, Creating isolated development environments for teams or students
Domain registered 2016

Data updated Aug. 1, 2026

What does CodeSandbox do?

CodeSandbox is a cloud-based platform that lets you create and manage isolated development environments, called sandboxes, in seconds. You can use it through a web interface or its APIs to spin up a virtual machine that runs code. This is useful for testing, sharing projects, or providing a secure space for code to run without affecting your local system. It supports many programming languages and frameworks through ready-made templates.

What makes CodeSandbox stand out is its focus on security and scale. Each sandbox runs in complete isolation, which means you can safely execute untrusted code. The platform uses microVMs to start, clone, or restore environments in about two seconds. It also keeps sandbox state with snapshots, so work can resume after inactivity. These features are packaged into an SDK, allowing developers to integrate sandboxes directly into their own applications or AI agents.

The tool is built for developers and teams who need reliable, scalable code execution environments. It's particularly valuable for companies building AI agents that require a safe place to run generated code. Educational platforms can use it to give each student a personal coding environment. Engineering teams can also use it for continuous integration, running tests in disposable sandboxes. It removes the hassle of setting up local environments for every task or user.

#ai agents#api#cloud development#code execution#code-sandbox#developer tools#isolated-environments

Key features

What makes it stand out
01
APIs to programmatically create isolated sandboxes for code execution
02
Secure, isolated environments for running untrusted code safely
03
MicroVM infrastructure for quick startup and snapshot resumption
04
Customizable hibernation controls for managing inactive sandboxes
05
Template library for popular frameworks like React, Next.js, and Python

Who is CodeSandbox for?

Who benefits most from this tool
Providing a secure sandbox for AI agents to execute code
Creating isolated development environments for teams or students
Running secure code interpretation and evaluations (evals)

Pricing

Free tier available — start without a credit card

Build

Free
  • 5 members
  • 20 GB storage
  • 40 vm credits monthly
  • 1,000 SDK requests hourly
  • 10 concurrent vm sandboxes
  • 20 new SDK sandboxes hourly
  • 5 members
  • 40 hours of monthly VM credits
  • Unlimited Browser & VM Sandboxes
  • CodeSandbox SDK lite
  • Private Sandboxes
  • VM specs up to 4 vCPUs + 8 GiB RAM
  • VS Code extension

Scale

$170.0/month

Everything in Build, plus:

  • 20 members
  • 20 GB more on demand storage
  • 160 vm credits monthly
  • 10,000 SDK requests hourly
  • 250 concurrent vm sandboxes
  • 1,000 new SDK sandboxes hourly
  • Up to 20 members
  • 160 hours of monthly VM credits
  • Access to on-demand VM credits priced at $0.15 per hour
  • 1,000 new Sandboxes an hour
  • 250 concurrent VMs
  • 10,000 hourly requests
  • CodeSandbox SDK
  • More VM tiers

Enterprise

Custom

Everything in Scale, plus:

  • Unlimited members
  • Custom storage
  • Custom SDK requests hourly
  • Custom concurrent vm sandboxes
  • Custom new SDK sandboxes hourly
  • Unlimited members
  • Up to 50% off bulk VM credit packs
  • Create as many Sandboxes as you need
  • Bespoke concurrent VMs
  • Hourly request limits tailored to your requirements
  • VM specs up to 64 vCPUs + 128 GiB RAM
  • Dedicated support
  • SOC 2 Type II compliance
  • SSO
  • Your own dedicated cluster

Trust & presence

Search presence Top 100k site
Domain Domain registered 2016

Gallery

Click any image to enlarge

Similar tools

Agent Sandbox Verified Developer Tools

API for secure Python code execution in AI agents — run untrusted code in isolated sandboxes with file management.

Hopx Verified Developer Tools

Secure sandbox platform for running untrusted AI code — execute scripts, tests, and agents in isolated micro-VMs with ~100ms startup.

InstaVM Verified Developer Tools

Provides instant, secure virtual machines for AI agents, offering isolated execution environments with persistent storage and networking.

AgentSphere Verified Developer Tools

Secure cloud sandbox infrastructure for running AI-generated code and autonomous agents at scale

E2B Verified Developer Tools

Open-source, secure cloud sandbox environment for building and running enterprise-grade AI agents.

make · n8n
Daytona Verified Developer Tools

Secure sandbox infrastructure to run AI-generated code fast and safely.

make · n8n
sampleapp.ai Verified Developer Tools

API demo platform — build interactive sandbox demos and sample apps for developer adoption and sales

Cognitora Verified Developer Tools

Cloud platform providing autonomous AI agents with secure sandbox environments for code execution and data analysis

Share X LinkedIn Telegram
CodeSandbox Visit