Code sandboxes for AI agents
12 APIs compared on price, free tier, MCP support and real usage. Prices from the vendors' pricing pages, checked Oct 9, 2026.
| 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 | 12.7M | 539 | 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 | 8.1M | 228 | 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 | 6.1M | 15K | 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 … |
2.4M | 17 | 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 | 70.7K | 116 | |
| 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 | 23.6K | 5 | MCP |
| Judge0 Run untrusted code in 60+ languages in a sandbox via a REST API, self-hosted or cloud. |
Basic cloud plan: 50 submissions per day at no cost | Free plan | 38 | 4,519 | MCP (community) |
| Piston Self-host a high-performance engine that executes code in many languages via an HTTP API. |
Open source | not published | — | 2,845 | |
| JDoodle Execute code in 114 languages and frameworks in a browser-based IDE. |
1,000 code executions per day, 15 AI credits daily | Free plan · paid from $4/mo | — | — | |
| Sololearn Playground Online learning platform with code playground and AI tutor for practicing programming. |
Free forever with all course content,... | Free plan · paid from $5.83/mo | — | — | |
| OpenFaaS Serverless function deployment and execution platform for Kubernetes. |
Free (open source) | Free plan · paid from $1250/mo | — | — | |
| Ona Agents handle tasks securely to completion in ephemeral, policy-enforced environments. |
— | from $20/mo | — | — |
Nothing here matches. Search all APIs →
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, text-to-speech) 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 Model hosting and inference Embeddings and rerank Document parsing and OCR LLM observability and evals Error tracking and analytics Databases and backends Auth and user accounts File storage and media CDN Hosting and deployment SMS, chat and notifications Integrations and automation Business apps with APIs Maps and location Wallets, tokens and NFTs Stock and financial data Game backends and multiplayer Speech-to-text and transcription