Skip to content
sandboxrouting

Modal vs Cloudflare Sandbox

Modal gives more free usage at 2 vCPU and 4 GiB: about 126 h a month, 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.238/h.

Modal isolates more strongly (gVisor) than Cloudflare Sandbox (Container), so minIsolation: "gvisor" keeps only Modal.

ModalCloudflare Sandbox
Free usage$30 every month$0.68 every month
Free hours at 2 vCPU, 4 GiB126 h3.8 h
Free limits100 concurrent, 24 h—
Paid after~$0.19/h (2 vCPU, 2 GiB)$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.238/h$0.0792/h
IsolationgVisorContainer
Longest sandbox1 d—
Longest commandno capno cap
KeysMODAL_TOKEN_ID, MODAL_TOKEN_SECRETCLOUDFLARE_SANDBOX_URL, CLOUDFLARE_SANDBOX_TOKEN
Terms checkedNov 11, 2026Nov 21, 2026
Public ports yes no
Pause and resume no no
Any OCI image yes no
GPUs yes no
Snapshots yes no
Native file listing yes yes
Extend a live box no 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

  1. First: Cloudflare Sandbox (Free every month, 100% left, resets in 9.5 d)
  2. Then: Modal (Free every month, 100% left, resets in 9.5 d)

cheapest, allowPaid false

  1. First: Cloudflare Sandbox (One-time credit, ~$0.0792/h at 30% CPU (up to $0.1800/h))
  2. Then: Modal (One-time credit, $0.2380/h)

cheapest, allowPaid true

  1. First: Cloudflare Sandbox (One-time credit, ~$0.0792/h at 30% CPU (up to $0.1800/h))
  2. Then: Modal (One-time credit, $0.2380/h)

fastest, allowPaid false

  1. First: Cloudflare Sandbox (Free every month, ~10.0 s to ready (not tried yet, so assumed as fast as the fastest))
  2. Then: Modal (Free every month, ~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.