# Cloudflare Sandbox vs Modal: pricing and limits (Nov 2026)

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

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), [gVisor](https://roost.guide/glossary/gvisor/index.md), [Wall-clock billing](https://roost.guide/glossary/wall-clock-billing/index.md)

## Agent sandboxes

| Term | Cloudflare Sandbox | Modal |
|---|---|---|
| Price | $0.072 /vCPU-h (+ $0.009 per GB-hour) | $0.142 /core (2 vCPU)-h (+ $0.024 per GB-hour) |
| 1-hour session | ≥ $0.18 (2 vCPU / 4 GB · rank 43 of 60) | ≥ $0.238 (2 vCPU / 4 GB · rank 51 of 60) |
| Fleet month | ≥ $1,589 (50 × 8 h × 22 days) | ≥ $2,094 (50 × 8 h × 22 days) |
| 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 Sandbox 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] | gVisor [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] | 24 h [2] |
| Runtime: Concurrent sandboxes | 1,500 vCPU, raisable [1] | 100 [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] | unknown (No Sandbox create rate limit on the pricing page, the Sandboxes product FAQ or the Sandbox guides; the documented 200/s sync and 1,500/s async invocation limits cover Function calls, not Sandboxes) [2] |
| Runtime: Largest vCPU | 4 [1] | unknown (Docs say a maximum CPU request is enforced at creation but do not state it; the default soft CPU limit is 16.125 physical cores) [2] |
| Runtime: Largest memory | 12 GB [1] | unknown (Docs say a maximum memory request is enforced at creation but do not state it) [2] |
| Lifecycle: Survives a stop | Nothing (ephemeral) [4] | Nothing (ephemeral) [5] |
| Lifecycle: Snapshots | Yes [4] | Yes [5] |
| Lifecycle: Pause and resume | No [4] | No [5] |
| Lifecycle: Fork | Disk copy [4] | Disk copy [5] |
| Lifecycle: Compute billed while stopped | No [4] | unknown (No paused or stopped state exists; a running idle Sandbox still bills max(request, actual), at least 0.125 cores and 128 MiB) [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] | 1 s [5] |
| Capabilities: GPU | No [6] | Yes [7] |
| Capabilities: Desktop | None [6] | None [7] |
| Capabilities: Coding agents installed | None [6] | None [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, Go [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] | 512 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 (Snapshots are stored as Images; no storage price for Images is published) [8] |
| Storage and network: Egress | $0.025 per GB [1] | $0.04 per GB [8] |
| Platform: Regions | unknown (Cloudflare picks the location from pre-initialized locations across its network; no region list or region choice published) [6] | us, eu, ap, uk, ca, me, sa, af, mx [9] |
| Platform: Your cloud (BYOC) | No [6] | unknown (No bring-your-own-cloud offer on the pricing, Sandbox or security pages) [9] |
| Platform: Self-host | No [6] | No [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] | $30 [8] |
| Free allowance: One-time credit | None [1] | None [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]

### Modal: plans and limits

- Starter: Free; at once 100, included $30; $30/month free compute, 3 seats, 100 containers + 10 GPU concurrency, 1 TiB/month egress [8]
- Team: $250 /month; at once 5,000, included $100; $100/month free compute, unlimited seats, 5,000 containers + 50 GPU concurrency, 10 TiB/month egress, static IP proxy [8]
- Enterprise: unknown (Custom pricing with volume-based discounts); at once ? (unknown: Custom: the pricing page and the Sandboxes FAQ say custom limits, with no number); Custom concurrency, 100 TiB/month egress, SSO, audit logs, HIPAA [8]

Data: Cloudflare Sandbox [JSON](https://roost.guide/api/v1/providers/cloudflare-sandbox.json); Modal [JSON](https://roost.guide/api/v1/providers/modal.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://modal.com/products/sandboxes (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://modal.com/docs/guide/sandboxes (checked 14 Nov 2026)
[6] https://developers.cloudflare.com/containers/faq/ (checked 14 Nov 2026)
[7] https://modal.com/docs/guide/security (checked 14 Nov 2026)
[8] https://modal.com/pricing (checked 14 Nov 2026)
[9] https://modal.com/docs/guide/region-selection (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)
