CodeSandbox SDK by CodeSandbox (Together AI)
Programmatic microVM sandboxes with snapshot/fork, for running agent and user code.
Price
Free plan
paid plans from $170/mo
Free tier
Yes
Build plan: free, 10 concurrent VMs (included credits not stated)
SDK downloads
119K
npm @codesandbox/sdk
Pricing
| Free tier | Build plan: free, 10 concurrent VMs (included credits not stated) |
|---|---|
| Cheapest paid plan | $170 a month |
| Usage price | $0.01486 per VM credit; Nano VM (2 cores, 4 GB) 10 credits/hour = $0.1486/hour; Pico 5 credits/hour = $0.0743/hour |
| Good to know | Scale plan price ($170/month base with 1,100 credits) comes from the docs' worked example; the docs give conflicting Scale concurrency (250 vs 100 VMs). Billed in whole minutes. Enterprise via Together AI sales. npm SDK last published 2025-12. |
From the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy.
Use it from an agent
| MCP server | None found |
|---|---|
| npm | npm install @codesandbox/sdk |
| GitHub | codesandbox/codesandbox-sdk · 112 stars · last push Jun 18, 2026 |
Alternatives to CodeSandbox SDK
| API | Free | Price | SDK downloads / wk | GitHub stars | MCP |
|---|---|---|---|---|---|
| Modal Sandboxes Serverless isolated containers for coding agents and untrusted code, with GPUs available. |
Starter: $30/month of free compute, no monthly fee | Free plan · paid from $250/mo | 11.5M | 522 | MCP (community) |
| Vercel Sandbox Ephemeral Linux microVMs on Vercel for running untrusted or AI-generated code. |
Hobby: 5 active-CPU hours, 420 GB-hours... | Free plan · paid from $20/mo | 6.3M | 210 | MCP |
| E2B Secure cloud sandboxes (microVMs) where agents run code, start in under a second. |
Hobby: $100 one-time usage credit, sessions... | Free plan · paid from $150/mo | 3.4M | 14.3K | MCP |
| Daytona Fast-starting sandboxes (CPU, GPU, Windows) for running AI-generated code, billed per second. |
$200 in free compute, no credit card | Free plan then vCPU $0.0504/hour; memory $0.0162 per GiB-hour; storage... |
2.3M | 71.6K | MCP |
| Riza Code Interpreter API that runs untrusted Python, JavaScript, TypeScript, Ruby and PHP in WebAssembly isolation. |
Hobby: up to 100,000 requests/month,... | Free plan · paid from $250/mo | 3,874 | 5 | MCP |