Best sandbox for running untrusted code from an AI agent
Depot Pick: E2B. Runner-up: Modal (then Daytona). Job: Secure code sandbox for agents. Updated 2026-11-04 (newest stored date on this page).
Execute untrusted LLM-generated code safely.
Ready call for agents
MCP https://getagentdepot.com/api/mcp → decide {"task":"run untrusted Python code in a sandbox"}
HTTP GET /api/decide?jtbd=agent-sandboxNo key. The reply carries the pick, runner-up, the pick's sourced price with its date, and a recheck token.
Depot Pick: E2B
Editorial score 8.56 / 10 (curated estimate, as of 2026-10-28). Prices below are copied from the provider's own page; units are never converted.
privacy/isolation capability + dx + reliability.
| Item | Price (USD) | Source | Price as of | Last re-checked |
|---|---|---|---|---|
| Pro | $150 / month | official page | 2026-10-28 | 2026-11-04 |
| Pro+ concurrency | $500 / month | official page | 2026-10-28 | not reconfirmed |
| Pro++ concurrency | $1000 / month | official page | 2026-10-28 | not reconfirmed |
| Enterprise minimum | $3000 / month | official page | 2026-10-28 | not reconfirmed |
Runner-up 1: Modal
Editorial score 8.44 / 10 (curated estimate, as of 2026-10-28). Prices below are copied from the provider's own page; units are never converted.
| Item | Price (USD) | Source | Price as of | Last re-checked |
|---|---|---|---|---|
| Nvidia B300 | $0.001972 / gpu second | official page | 2026-11-04 | 2026-11-04 |
| Nvidia B200 | $0.001736 / gpu second | official page | 2026-11-04 | 2026-11-04 |
| Nvidia H200 SXM | $0.001261 / gpu second | official page | 2026-11-04 | 2026-11-04 |
| Nvidia H100 SXM5 | $0.001097 / gpu second | official page | 2026-11-04 | 2026-11-04 |
Runner-up 2: Daytona
Editorial score 8.24 / 10 (curated estimate, as of 2026-10-28). Prices below are copied from the provider's own page; units are never converted.
| Item | Price (USD) | Source | Price as of | Last re-checked |
|---|---|---|---|---|
| vCPU | $0.0504 / vcpu hour | official page | 2026-11-04 | 2026-11-04 |
| Memory | $0.0162 / gib hour | official page | 2026-11-04 | 2026-11-04 |
| Storage | $0.000108 / gib hour | official page | 2026-11-04 | 2026-11-04 |
| Windows | $0.0858 / vcpu hour | official page | 2026-11-04 | 2026-11-04 |
Questions
- What does Agent Depot pick for Secure code sandbox for agents?
- E2B is the stored Depot Pick for the job agent-sandbox. privacy/isolation capability + dx + reliability.
- What is the runner-up?
- Modal, then Daytona. The ranking is editorial (scores as of 2026-10-28) and is not chosen by price.
- When should I not use E2B?
- Need persistent full IDE workspaces — Daytona. Python jobs that aren't untrusted REPL — Modal.
- How much does E2B cost?
- Pro: $150 per month, copied from https://e2b.dev/pricing (price as of 2026-10-28, last re-checked 2026-11-04). More rows are in the table on this page.
Picks are editorial and dated; community reports never change a pick or a score. Method: /methodology · Corrections: /corrections · Compare: E2B vs Modal