Code sandboxes for AI agents
6 APIs compared on price, free tier, MCP support and real usage. Prices from the vendors' pricing pages, checked Oct 9, 2026.
Free to start
6 of 6
Modal Sandboxes, Vercel Sandbox, E2B
Official MCP server
4 of 6
plug straight into Claude Code, Cursor and others
| 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 |
| CodeSandbox SDK Programmatic microVM sandboxes with snapshot/fork, for running agent and user code. |
Build plan: free, 10 concurrent VMs... | Free plan · paid from $170/mo | 119K | 112 | |
| 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 |
Other categories
Web search APIs Scraping and crawling Browser automation (cloud) Memory for agents Vector databases LLM gateways and routers Email sending Voice (speech-to-text Payments for agents Blockchain RPC and node providers DEX swap and liquidity APIs Crypto market and on-chain data 3D model generation Image generation APIs Sound effects and music generation Video generation APIs