# Cloudflare Sandbox vs E2B: agent sandboxes pricing (Nov 2026)

Cloudflare Sandbox and E2B side by side for agent sandboxes: 27 terms differ. 1-hour session (2 vCPU / 4 GB): ≥ $0.18 on Cloudflare Sandbox, ≥ $0.166 on E2B.

Explained: [Runner vs sandbox vs devbox](https://roost.guide/explained/index.md), [MicroVM](https://roost.guide/glossary/microvm/index.md), [Firecracker](https://roost.guide/glossary/firecracker/index.md), [Snapshot](https://roost.guide/glossary/snapshot/index.md), [Fork (branch)](https://roost.guide/glossary/fork/index.md), [Active-CPU billing](https://roost.guide/glossary/active-cpu-billing/index.md), [vCPU-hour](https://roost.guide/glossary/vcpu-hour/index.md), [GB-hour](https://roost.guide/glossary/gb-hour/index.md), [CDP (Chrome DevTools Protocol)](https://roost.guide/glossary/cdp/index.md), [Pause and resume](https://roost.guide/glossary/pause-and-resume/index.md), [Wall-clock billing](https://roost.guide/glossary/wall-clock-billing/index.md), [BYOC (bring your own cloud)](https://roost.guide/glossary/byoc/index.md), [Computer use (virtual desktop)](https://roost.guide/glossary/computer-use/index.md)

## Agent sandboxes

| Term | Cloudflare Sandbox | E2B |
|---|---|---|
| Price | $0.072 /vCPU-h (+ $0.009 per GB-hour) | $0.0504 /vCPU-h (+ $0.0162 per GB-hour) |
| 1-hour session | ≥ $0.18 (2 vCPU / 4 GB · rank 43 of 60) | ≥ $0.166 (2 vCPU / 4 GB · rank 39 of 60) |
| Fleet month | ≥ $1,589 (50 × 8 h × 22 days) | ≥ $1,607 (50 × 8 h × 22 days · on Pro) |
| Billing: Payment | Metered: usage billed afterwards [1] | Metered: usage billed afterwards [2] |
| Billing: Plan minimum | $5 a month [1] | $0 [2] |
| Billing: Billing increment | unknown (Billed 'for every 10ms' an instance runs; finer than the whole seconds this table lists) [1] | Per second [2] |
| Billing: Minimum charge | unknown (Not published) [1] | unknown (No minimum billed duration on the pricing page or the billing docs) [2] |
| Billing: Per-job fee | No fee [1] | No fee [2] |
| Runtime: Billed on | Active CPU [1] | Running time [2] |
| Runtime: Isolation | Firecracker microVM [1] | Firecracker microVM [2] |
| Runtime: Max session | unknown (No maximum published; an instance runs while its Durable Object is active plus an inactivity timeout of up to 6 hours, and Cloudflare does not guarantee a run time) [1] | 1 h [2] |
| Runtime: Concurrent sandboxes | 1,500 vCPU, raisable [1] | 10 [2] |
| Runtime: Starts | unknown (No start or create rate limit on the Containers limits, pricing, FAQ, scaling-and-routing pages or the Sandbox limits and lifetime pages) [3] | 60/min, then refused [2] |
| Runtime: Largest vCPU | 4 [1] | 8 [2] |
| Runtime: Largest memory | 12 GB [1] | 8 GB [2] |
| Lifecycle: Survives a stop | Nothing (ephemeral) [4] | Disk and memory [5] |
| Lifecycle: Snapshots | Yes [4] | Yes [5] |
| Lifecycle: Pause and resume | No [4] | Yes [5] |
| Lifecycle: Fork | Disk copy [4] | Memory and processes [5] |
| Lifecycle: Compute billed while stopped | No [4] | No [5] |
| Lifecycle: Auto-stop | unknown (No default in minutes; without setInactivityTimeout() the instance stops 'shortly after' its Durable Object becomes inactive (timeout settable up to 6 hours)) [4] | after 5 min [5] |
| Lifecycle: Start time (vendor claim) | 3 s [4] | 150 ms [5] |
| Capabilities: GPU | No [6] | No [7] |
| Capabilities: Desktop | None [6] | Computer-use API [7] |
| Capabilities: Coding agents installed | None [6] | Amp, Claude Code, Codex, Devin, Droid, Grok Build, Hermes, Muse Code, OpenCode, Pi, Prime Agent [7] |
| Capabilities: Agent prompt API | No [6] | No [7] |
| Capabilities: SSH | No [6] | Yes [7] |
| Capabilities: Docker inside | Yes [6] | Yes [7] |
| Capabilities: SDKs | TypeScript [6] | Python, TypeScript, CLI, REST [7] |
| Capabilities: SOC 2 | unknown (Cloudflare's SOC 2 FAQ lists Workers and Durable Objects in scope but not Containers or Sandbox) [6] | Yes [7] |
| Storage and network: Disk included | None [1] | 10 GB [8] |
| Storage and network: Extra disk | unknown (Disk is billed at $0.00000007 per GB-second of provisioned disk while the instance runs; no per-month rate) [1] | Free [8] |
| Storage and network: Snapshot storage | unknown (Container snapshots (public beta) have no published storage price) [1] | unknown (Pricing page and billing docs give no price for stored snapshots or paused sandboxes; they only say paused sandboxes cost no compute) [8] |
| Storage and network: Egress | $0.025 per GB [1] | unknown (Not on the pricing page or in the billing docs) [8] |
| Platform: Regions | unknown (Cloudflare picks the location from pre-initialized locations across its network; no region list or region choice published) [6] | us-west-1, us-west-2, eu-west-1, ap-southeast-1 [9] |
| Platform: Your cloud (BYOC) | No [6] | Yes [9] |
| Platform: Self-host | No [6] | Yes [9] |
| Free allowance: Minutes a month | unknown (Workers Paid includes 375 vCPU-minutes of active CPU, 25 GiB-hours of memory and 200 GB-hours of disk a month, not wall-clock sandbox minutes) [1] | 0 min [8] |
| Free allowance: Credit a month | None [1] | None [8] |
| Free allowance: One-time credit | None [1] | $100 [8] |
| Cross-provider tools: Sandbox SDK | Not listed [10] | Supported [10] |

### Cloudflare Sandbox: plans and limits

- Workers Free: Free; at once 0; Containers not available [1]
- Workers Paid: $5 /month; at once 1,500 vCPU raisable, largest 4 vCPU; 375 vCPU-minutes, 25 GiB-hours memory and 200 GB-hours disk of Containers a month; Workers and Durable Objects allowances [11]

### E2B: plans and limits

- Hobby: Free; at once 10, starts 60/min, max session 1 h, largest 8 vCPU; $100 one-time usage credit, 10 concurrent sandboxes, 1-hour continuous runtime, 8 vCPU / 8 GiB / 10 GiB disk [8]
- Pro: $150 /month; at once 100, included $0, starts 300/min, max session 24 h; Usage billed on top; 100 concurrent sandboxes (add-ons to 1,100), 24-hour continuous runtime, custom CPU and RAM, 20 GiB disk [8]
- Enterprise: unknown (Custom; the pricing page says a $2,000 monthly minimum applies to Enterprise usage); at once ? (unknown: Custom: the pricing page says 500 included in a $2,000 commitment; billing docs say 1,100+; provider pages conflict); Custom limits, multi-day sessions, BYOC on AWS, GCP or Azure [8]

Data: Cloudflare Sandbox [JSON](https://roost.guide/api/v1/providers/cloudflare-sandbox.json); E2B [JSON](https://roost.guide/api/v1/providers/e2b.json); Agent sandboxes [JSON](https://roost.guide/api/v1/agent-sandboxes.json), [CSV](https://roost.guide/api/v1/agent-sandboxes.csv); [API docs](https://roost.guide/data/).

## Sources

[1] https://developers.cloudflare.com/containers/platform/pricing/ (checked 14 Nov 2026)
[2] https://docs.e2b.dev/billing (checked 14 Nov 2026)
[3] https://developers.cloudflare.com/containers/platform/limits/ (checked 14 Nov 2026)
[4] https://developers.cloudflare.com/sandbox/concepts/lifetime/ (checked 14 Nov 2026)
[5] https://docs.e2b.dev/faq/sandbox-lifetime (checked 14 Nov 2026)
[6] https://developers.cloudflare.com/containers/faq/ (checked 14 Nov 2026)
[7] https://docs.e2b.dev/faq/security-and-compliance (checked 14 Nov 2026)
[8] https://e2b.dev/pricing (checked 14 Nov 2026)
[9] https://docs.e2b.dev/byoc (checked 14 Nov 2026)
[10] https://sandbox-sdk.app/docs/providers (checked 22 Nov 2026)
[11] https://developers.cloudflare.com/workers/platform/pricing/ (checked 14 Nov 2026)
