E2B vs Cloudflare Sandbox
E2B gives more free usage at 2 vCPU and 4 GiB: about 604 h once, against 3.8 h a month on Cloudflare Sandbox.
Once free usage is gone, Cloudflare Sandbox is cheaper to rank: $0.0792/h against $0.166/h.
E2B isolates more strongly (microVM) than Cloudflare Sandbox (Container), so minIsolation: "microvm" keeps only E2B.
| E2B | Cloudflare Sandbox | |
|---|---|---|
| Free usage | $100 once | $0.68 every month |
| Free hours at 2 vCPU, 4 GiB | 604 h | 3.8 h |
| Free limits | 10 concurrent, 1 h | — |
| Paid after | $0.050/vCPU-h | $0.072/vCPU-h (active CPU only) + $0.009/GiB-h; 2 vCPU comes with 8 GiB, ≈ $0.22/h busy |
| Ranked at (2 vCPU, 4 GiB) | $0.166/h | $0.0792/h |
| Isolation | microVM | Container |
| Longest sandbox | 1 d | — |
| Longest command | no cap | no cap |
| Keys | E2B_API_KEY | CLOUDFLARE_SANDBOX_URL, CLOUDFLARE_SANDBOX_TOKEN |
| Terms checked | Nov 11, 2026 | Nov 21, 2026 |
| Public ports | yes | no |
| Pause and resume | yes | no |
| Any OCI image | no | no |
| GPUs | no | no |
| Snapshots | yes | no |
| Native file listing | yes | yes |
| Extend a live box | yes | yes |
Which one the router asks first
The router’s own plan with only these two configured, a 10-minute request at 2 vCPU and 4 GiB, and an empty ledger, generated on Nov 21, 2026.
free-first, allowPaid false
- First: Cloudflare Sandbox (Free every month, 100% left, resets in 9.5 d)
- Then: E2B (One-time credit, 100% left)
cheapest, allowPaid false
- First: Cloudflare Sandbox (One-time credit, ~$0.0792/h at 30% CPU (up to $0.1800/h))
- Then: E2B (One-time credit, $0.1656/h)
cheapest, allowPaid true
- First: Cloudflare Sandbox (One-time credit, ~$0.0792/h at 30% CPU (up to $0.1800/h))
- Then: E2B (One-time credit, $0.1656/h)
fastest, allowPaid false
- First: Cloudflare Sandbox (Free every month, ~10.0 s to ready (not tried yet, so assumed as fast as the fastest))
- Then: E2B (One-time credit, ~10.0 s to ready (not tried yet, so assumed as fast as the fastest))
Terms change; each provider’s pricing page is linked from its page here. Neither provider endorses this comparison.