CodeSandbox alternatives
12 other code sandboxes compared on one normalised price. Normalised to the cost of one hour of a 2 vCPU + 4 GB sandbox with the CPU fully busy, computed from the unit rates printed on each vendor page. Vendors that bill CPU only while active (Vercel, Cloudflare, Fly.io Sprites, Upstash Box) cost less if your agent mostly waits on the model. Plan fees, storage and egress are not included.
| Vendor | Plan | Listed price (as on vendor page) | $/hr | Free tier | Source | Status | Checked |
|---|---|---|---|---|---|---|---|
| Northflank | Pay as you go | CPU $0.01667/vCPU/hour, memory $0.00833/GB/hour Derived: 2 x vCPU rate + 4 x GB rate. Sandboxes are ordinary services billed at compute rates; scale from 0.1 vCPU. | $0.0667/hr | Free tier: 2 free services, 1 free database, 2 free cron jobs | source | verified | 2026-10-19 |
| Hyperbrowser | Pay as you go | vCPU $0.045/vCPU-hour, memory $0.015/GiB-hour Derived: 2 x vCPU + 4 x GiB. Both billed while the VM runs. | $0.1500/hr | Free plan: $0, 5,000 credits included | source | verified | 2026-10-19 |
| Fly.io Sprites | Pay as you go | CPU $0.0385/CPU-hour, memory $0.021875/GB-hour (actual usage) Derived: 2 x vCPU rate + 4 x GB rate. Billed on actual CPU and memory used, not allocated; storage extra. | $0.1645/hr | — | source | verified | 2026-10-19 |
| E2B | Hobby / Pro usage | vCPU $0.000014/s, RAM $0.0000045/GiB-s (2 vCPU = $0.000028/s, 4 GiB = $0.0000180/s) Derived: 2 x vCPU rate + 4 x GB rate. Billed per second while running. Production needs Pro plan fee (row below). | $0.1656/hr | Hobby: $100 one-time credit, sessions up to 1 hour, 20 concurrent | source | verified | 2026-10-19 |
| Daytona | Pay as you go | vCPU $0.0504/h, memory $0.0162/GiB/h Derived: 2 x vCPU rate + 4 x GB rate. Per-second billing. | $0.1656/hr | $200 in free compute included; no card needed | source | verified | 2026-10-19 |
| Blaxel | Pay as you go (active CPU) | $0.0000115 / GB RAM-second (CPU scales with memory) Derived: 4 GB x $0.0000115 x 3600. CPU is bundled; suspended time costs $0. | $0.1656/hr | Up to $200 in free credits | source | verified | 2026-10-19 |
| Cloudflare Containers | Workers Paid usage | vCPU +$0.000020/s, memory +$0.0000025/GiB-s Derived: 2 x vCPU rate + 4 x GB rate. Requires $5/month Workers Paid plan. Disk billed separately (not included here). | $0.1800/hr | Included monthly on paid plan: 25 GiB-hours, 375 vCPU-minutes, 200 GB-hours disk | source | verified | 2026-10-19 |
| Upstash Box | Pay as you go | $0.1 / active CPU hour; memory included Derived: 2 vCPU x $0.1. Also offers $8/box/month fixed plan. | $0.2000/hr | Free plan listed at $0 (limits not read) | source | verified | 2026-10-19 |
| Modal | Starter (usage) | CPU $0.00003942/core-s (physical core = 2 vCPU), memory $0.00000667/GiB-s Derived: 2 x vCPU rate + 4 x GB rate. Page lists these under 'Modal Sandbox + Notebooks pricing'. Modal bills the higher of requested or used resources. | $0.2380/hr | Starter $0/month + compute with $30/month free credits | source | verified | 2026-10-19 |
| Runloop | Basic (usage) | Devbox CPU $0.108/CPU-hr, memory $0.0252/GB-hr Derived: 2 x vCPU rate + 4 x GB rate. Pro plan is $250/month + usage (optional). | $0.3168/hr | Basic plan free + usage; Pro trial with $50 usage credit | source | verified | 2026-10-19 |
| Vercel Sandbox | Hobby/Pro usage | Active CPU $0.128/hour, provisioned memory $0.0212/GB-hour Derived: 2 x vCPU rate + 4 x GB rate. CPU is billed only while active, so real cost is lower for agents that mostly wait on the model. | $0.3408/hr | Included monthly: 5 CPU-hours, 420 GB-hours, 5,000 creations | source | verified | 2026-10-19 |
| Docker Sandboxes | (not read) | no price read Pricing page fetched but shows no sandbox usage price; none recorded. | — | — | source | unverified | 2026-10-19 |