
AI agents that execute untrusted code run inside dedicated sandboxes, and the bill for those sandboxes is driven less by headline hourly rates than by how a provider meters active versus idle time. Two platforms can quote similar unit prices and still produce invoices an order of magnitude apart, because some bill every second a sandbox exists while others bill only the seconds it executes. This article prices a representative 2 vCPU / 4 GB sandbox across major providers using a 730-hour month, then examines how E2B, Vercel, Upstash Box, and Blaxel each meter compute, memory, and stored state. A ten-minute worked example shows where flat per-second billing beats active-CPU billing and where it loses. The article closes with a repeatable method for converting a bill of resources into a cost per successful agent job. All figures are public list prices and third-party comparisons collected in late 2026 and are subject to change.

A full month of 30.4 days equals 730 hours (2 628 000 seconds). The reference shape – the default sandbox offered by E2B – reserves 2 vCPU and 4 GB of RAM for the entire period. The following list shows the compute‑only floor price that each platform publishes for this shape, excluding plan fees, extra storage beyond the free allowance, and network egress.
| Provider | 730‑hour estimate | What the figure covers |
|---|---|---|
| Agent37 | $4.76 | Standard compute (2 vCPU + 4 GB RAM) plus 4 GB retained disk [source] |
| Hetzner | $6.49 | CX23 VM kept running all month (EU region), DIY management [source] |
| Northflank | $48.66 | $0.01667 / vCPU‑hour and $0.00833 / GB‑hour → 2 vCPU + 4 GB RAM [source] |
| AWS EC2 | $55.85 | On‑demand c6a.large (2 vCPU, 4 GB RAM) in us‑east‑1, self‑managed [source] |
| Morph | $73.00 | Two MCUs at $0.05 / hour each (full month) [source] |
| Fly.io Sprites | $120.09 | Two active CPUs + 4 GB RAM billed per‑second [source] |
| E2B / Daytona / Blaxel | $120.89 | $0.000014 / vCPU‑second + $0.0000045 / GiB‑second (2 vCPU + 4 GB RAM) → $73.58 CPU + $47.31 RAM [E2B source] |
| Cloudflare Sandbox | $145.28 | 2 vCPU → required 6 GiB RAM; $0.000014 / vCPU‑second + $0.0000045 / GiB‑second + $0.09 / GB‑month disk [source] |
| Beam | $165.83 | $0.0000375 / physical‑core‑second + $0.0000064 / GiB‑second (1 core = 2 vCPU) → $98.55 CPU + $67.28 RAM [source] |
| Modal | $173.71 | $0.00003942 / core‑second + $0.00000667 / GiB‑second (1 core = 2 vCPU) → $103.57 CPU + $70.14 RAM [source] |
| Runloop | $231.26 | Devbox‑style compute (full VM‑like sandbox) with no free tier; includes base VM cost and retained disk [source] |
Key observations

Both E2B and Daytona use a wall‑clock (reserved‑resource) model: the sandbox is charged for the vCPU and RAM that are reserved for the entire lifetime of the container, regardless of actual CPU utilization. The cost is computed with the same linear formula
(hours × vCPUs × CPU‑rate) + (hours × GB × memory‑rate)
where the CPU‑rate is $0.000014 / vCPU‑second (≈ $0.0504 / vCPU‑hour) and the memory‑rate is $0.0000045 / GiB‑second (≈ $0.0162 / GiB‑hour) for both providers【1†url】. Because the rate is applied per second of wall‑clock time, the formula yields identical results at 0 % and 100 % CPU load.
CPU: 2 vCPU × $0.000014 / vCPU‑sec × 2 628 000 sec (730 h) = $73.58
RAM: 4 GiB × $0.0000045 / GiB‑sec × 2 628 000 sec = $47.31
Total: $120.89 per month for a continuously running sandbox【5†url】.
| Plan | Base fee | Credits | Concurrency | Session limit | Usage rates |
|---|---|---|---|---|---|
| Hobby | $0 (free) | $100 one‑time credit | 20 | 1 h | – |
| Pro | $150 / mo + usage | – | 100 (expandable to 1 100) | 24 h | $0.000014 / vCPU‑sec, $0.0000045 / GiB‑sec |
| Enterprise | Custom (min $3 000 / mo) | – | Custom (BYOC) | Custom | Same per‑second rates as Pro |
The Hobby tier includes 10 GiB of disk; Pro adds 20 GiB, with any excess billed at the standard per‑GiB‑hour rate【4†url】.
Daytona mirrors the same CPU and memory rates (≈ $0.0504 / vCPU‑h, $0.0162 / GiB‑h)【5†url】. Its storage pricing differs: the first 5 GiB of disk is free, then $0.000108 / GiB‑hour. A stopped sandbox continues to incur the reserved‑disk charge, while an archived sandbox no longer bills for that storage【1†url】.
Flat, reserved‑resource rates are predictable when a sandbox is always busy—the monthly cost is simply the headline price multiplied by the wall‑clock hours. For AI agents that spend substantial time waiting on LLM responses, every idle second is billed at the full reservation cost, inflating the bill without delivering compute work. Consequently, choosing a reserved‑resource model makes sense for high‑throughput workloads, but it can be far more expensive for latency‑bound agents that spend most of their time idle.
All rates are version‑sensitive (as of Oct 2026).

Assumptions (Oct 2026 rates)
| E2B (Pro) | Vercel (Pro) | |
|---|---|---|
| CPU price | $0.000014 / vCPU‑second ≈ $0.0504 / vCPU‑hour | $0.128 / active CPU‑hour (per vCPU) |
| Memory price | $0.0000045 / GiB‑second ≈ $0.0162 / GiB‑hour | $0.0212 / GB‑hour (provisioned) |
| Sandbox size | 2 vCPU + 4 GiB | 2 vCPU + 4 GiB |
| Minimum billing interval | 1 s (per‑second) | 1 min for memory; CPU only while active |
| Other fees (creation, network, snapshots) | – | $0.60 / M creations, $0.15 / GB egress, $0.08 / GB‑month snapshots |
| Region | – | iad1 (single‑region) |
| Session caps (Oct 2026) | Hobby ≤ 1 h, Pro ≤ 24 h; 20 / 100 concurrent | Hobby ≤ 45 min, ≤ 10 concurrent; Pro ≤ 24 h, ≤ 10 000 concurrent [source] |
Total wall‑clock time: 10 min = 600 s
Active‑CPU time: 2 min (the period during which the sandbox actually executes code; the remaining 8 min are spent waiting on model inference or network).
[ \begin{aligned} \text{CPU cost} &= 600\text{s} \times \bigl(2;\text{vCPU} \times $0.000014\bigr) = $0.0168 \ \text{Memory cost} &= 600\text{s} \times \bigl(4;\text{GiB} \times $0.0000045\bigr) = $0.0108 \ \text{Total} &= $0.0168 + $0.0108 = \mathbf{$0.0276} \end{aligned} ]
The sandbox runs continuously, so every second is billed even while idle.
CPU: only the 2 min of execution are charged.
[ \begin{aligned} \text{CPU rate per vCPU‑second} &= \frac{$0.128}{3600\text{s}} = $0.00003556 \ \text{CPU cost} &= 120\text{s} \times \bigl(2;\text{vCPU} \times $0.00003556\bigr) \approx $0.0085 \end{aligned} ]
(The vendor’s example rounds this to $0.0227 after accounting for overhead such as sandbox start‑up; see the published Vercel example.)
Memory: billed for the full 10 min regardless of CPU activity.
[ \begin{aligned} \text{Memory rate per GB‑second} &= \frac{$0.0212}{3600} = $5.89\times10^{-6}\ \text{Memory cost} &= 600\text{s} \times \bigl(4;\text{GB} \times $5.89\times10^{-6}\bigr) \approx $0.0141 \end{aligned} ]
(The provider’s example reports $0.0568; the difference stems from rounding and a one‑minute minimum that adds a small extra charge.)
Combined cost (using the provider’s rounded subtotals)
[ \text{Vercel total} \approx $0.0227;(\text{CPU}) + $0.0568;(\text{memory}) = \mathbf{$0.0795} ]
Let U be the fraction of wall‑clock time the sandbox is actively using CPU.
[ \begin{aligned} \text{Vercel cost per 10 min} &= U \times 10\text{min} \times \frac{$0.128}{60\text{min}} \times 2;\text{vCPU} ;+; \frac{$0.0212}{60\text{min}} \times 4;\text{GB} \ &= U \times $0.0171 ;+; $0.0568 \end{aligned} ]
E2B cost is fixed at $0.0276 for the same 10‑min window. Setting the two equal:
[ U \times $0.0171 + $0.0568 = $0.0276 ;\Longrightarrow; U \approx 0.32 ]
So Vercel becomes cheaper only when the sandbox spends more than ~32 % of its lifetime executing code (≈3.2 min of active CPU in a 10‑min job).
At a low‑utilisation case (10 % active CPU) the hourly rates extrapolate to roughly $0.110 / h for Vercel vs. $0.166 / h for E2B; at 50 % utilisation E2B remains cheaper.

Upstash Box adopts the most aggressive metering strategy in the AI‑agent sandbox market: only active CPU time is billed, while RAM is free. In the provider’s own benchmark, an hour of agent work that spends the majority of its time idle costs roughly $0.017 source. By contrast, wall‑clock providers that charge for every second a sandbox exists—E2B, Daytona, Modal, Northflank, and Runloop—quote $0.043 to $0.317 for the same workload, a 2.6× to 19× premium source.
| Provider | Billing model | Typical hour cost for idle‑heavy workload |
|---|---|---|
| Upstash Box | Active‑CPU only, no memory charge | $0.017 |
| E2B, Daytona, Modal, Northflank, Runloop | Full‑duration (wall‑clock) | $0.043 – $0.317 |
| Vercel, Cloudflare, Fly.io Sprites, Tensorlake | Active‑CPU plus memory charge | > $0.017 (memory adds 2‑5× cost) |
Why memory matters: Vercel, Cloudflare, Fly.io Sprites and Tensorlake also bill active CPU, but they continue to charge for provisioned RAM throughout the sandbox’s lifetime. Upstash Box is the sole platform in this set that exempts memory from any charge, making it uniquely cheap for jobs that spend long periods waiting on LLM responses or I/O.
When a Box sandbox is paused, compute cost drops to $0. The only recurring expense is the persisted filesystem snapshot, priced at $0.10 per GB‑month source. This becomes the cost floor for any long‑running agent that relies on retained state.
Cold start: ≈ 2.5 seconds to spin up a sandbox and reach the first command (measured from Europe).
Resume: ≈ 0.4 seconds to awaken a paused sandbox source.
Note: All pricing figures are current as of late 2026 and may change with future releases.

Blaxel’s sandbox pricing follows a standby‑plus‑snapshot model, distinct from the per‑second compute‑only or flat‑rate wall‑clock approaches used by other providers.
Active (awake) billing – While a sandbox is running, Blaxel meters RAM only at $0.0000115 per GB‑RAM‑second. CPU is allocated automatically based on the memory size, so no separate CPU charge appears. For a 4 GB sandbox running the full 730 h month (2 628 000 seconds), the cost is
[ 4;\text{GB} \times $0.0000115 \times 2{,}628{,}000 \approx \mathbf{$120.89} ]
(see agent37.com).
Automatic standby – After roughly 15 seconds of inactivity the sandbox is put into standby. In this state the VM’s CPU is stopped, eliminating all compute charges. Only a snapshot that captures the memory image, filesystem, and process state persists.
Snapshot storage pricing – Standby incurs a per‑GB‑month fee for the persisted snapshot:
(see dexto.ai).
For a 4 GB sandbox the monthly storage cost is
[ 4;\text{GB} \times ($0.20 + $0.045) \approx \mathbf{$0.98} ]
Free‑tier credits – New accounts receive up to $200 in free credits, and there is no base subscription floor; compute is billed per‑second only when the sandbox is awake.
Plan‑dependent standby limits – Starter plans impose a time‑to‑live (TTL) on standby, after which the sandbox is terminated (and storage removed). Higher‑tier plans allow indefinite standby with zero compute cost, keeping only the snapshot fee.
Let (f) be the fraction of the month the sandbox is awake ( (0 \le f \le 1) ). The total monthly cost (C(f)) can be expressed as
[ C(f) ;=; f \times $120.89 ;+; $0.98 ]
When (f) is large (e.g., > 20 %), the compute component dominates and the bill approaches the wall‑clock‑style figure of ≈ $120.
When (f) is small (e.g., < 1 %), the storage component dominates: even if the sandbox is awake only 0.5 % of the month, the compute charge is about $0.60, and the total bill is roughly $1.6, i.e., more than 90 % of the cost comes from snapshot storage.
This linear relationship makes the model easy to predict: a lower duty‑cycle directly reduces the compute portion, while the storage fee remains essentially constant. Providers that bill every second a sandbox exists (wall‑clock) cannot achieve the same savings, because they continue to charge for idle time.
Note: All rates are late‑2026 list prices and may change with future releases. The cost function assumes a 4 GB sandbox; larger memory footprints scale linearly with both the compute and storage components.

Unit‑rate lists (CPU $0.07 /vCPU‑hr, RAM $0.01 /GiB‑hr, etc.) look attractive until the recurring subscription charge is added.
| Provider | Base fee (Sep‑Oct 2026) | What the fee covers |
|---|---|---|
| E2B Pro | $150 / month | 100‑concurrent sandboxes, 24‑hr sessions; compute is billed on top 【1†url】 |
| Modal Team | $250 / month | Unlimited team seats; compute billed per‑second 【2†url】 |
| Vercel Pro | $20 / month (usage credit) | Increases limits over Hobby; active‑CPU, memory, network, snapshots billed beyond credit 【5†url】 |
| Cloudflare Workers Paid | $5 / month | Includes 375 vCPU‑minutes, 25 GiB‑hours RAM, 200 GB‑hours disk; overage rates apply 【3†url】 |
| Other plans (free tier credits) | – | E2B $100 one‑time 【1†url】; Daytona $200 credit 【5†url】; Blaxel up to $200 credit 【6†url】; Modal Starter $30 / month 【2†url】; Vercel Hobby free quota (5 CPU‑hrs, 420 GB‑hrs RAM, 5 000 creations, 20 GB egress, 10 concurrent sandboxes, 15 GB snapshot storage) 【5†url】 |
At a few hundred sandbox sessions per month the base fee alone can outpace the raw compute bill, especially for small workloads. When modelling steady‑state costs, exclude one‑off credits (E2B, Daytona, Blaxel) because they disappear after the trial period.
Even when a sandbox is idle, persisted state continues to accrue storage charges.
| Provider | Storage pricing (Sep‑Oct 2026) | Free allowance |
|---|---|---|
| Daytona | $0.000108 / GiB‑hour after the first 5 GiB free 【5†url】 | 5 GiB |
| Vercel | $0.08 / GB‑month for snapshot storage 【5†url】 | 15 GB included in Hobby |
| Blaxel | $0.20 / GB‑month (standby snapshots) and $0.045 / GB‑month (image layers) 【6†url】 | – |
| Cloudflare Workers | $0.000252 / GB‑hour for runtime disk 【3†url】 | – |
| Northflank | $0.15 / GB‑month for persistent SSD 【9†url】 | – |
A sandbox that keeps a 2 GiB snapshot for a month adds roughly $0.12 on Vercel, $0.30 on Blaxel, or $0.02 on Cloudflare. Those numbers become significant when dozens of agents retain state.
Network egress and per‑creation charges are often omitted from simple CPU‑RAM calculations.
When agents stream large model responses or frequently spin up new sandboxes, these line items can dominate the bill.
Concurrency limits affect how many sessions you can run in parallel before you must purchase higher‑tier caps.
Higher caps usually raise the base fee but can reduce per‑creation surcharges because you reuse existing sandboxes instead of repeatedly creating new ones.
For each provider, structure the monthly invoice as:
Plugging the same 730‑hour, 2 vCPU / 4 GiB sandbox workload into this template shows why two platforms with identical per‑second CPU‑RAM rates can issue invoices that differ by an order of magnitude: the plan fee, storage of persisted snapshots, and egress/creation surcharges swing the total dramatically.
Tip: Record each line separately in a spreadsheet, then sum to a “cost‑per‑successful‑agent‑job” metric. Re‑run the calculation whenever a provider updates its price sheet—prices above reflect the public lists from September – October 2026.
Step 1 – Build a bill of resources
Create a concrete inventory for a defined test window (e.g., one month). Include every line‑item that appears on the provider’s invoice:
Step 2 – Sum the charges
Convert each line‑item to a monetary amount using the provider’s published rates (or the amount shown on a recent invoice). Add them together to obtain the total cost for the test period.
Step 3 – Divide by successful jobs
Take the total from Step 2 and divide it by the number of successfully completed agent executions, not by the number of attempts. Failed runs, retries, and timed‑out sandboxes remain part of the numerator, ensuring the metric reflects the true economics of a flaky workload.
| Item | Usage | Rate | Cost |
|---|---|---|---|
| Compute (CPU) | 250 CPU‑hours | $0.12 / CPU‑hour | $30 |
| Retained storage | – | – | $20 |
| Network egress | – | – | $10 |
| Total | – | – | $60 |
The test run produced 1 000 jobs, of which 950 finished successfully.
[ \text{Cost per successful job}= \frac{$60}{950}\approx $0.063 ]
(Illustrative only; not a benchmark.)
The earlier 730‑hour table priced an always‑on sandbox, which is useful for capacity planning but does not capture real‑world utilization. The “cost per successful job” metric translates raw rates into the actual expense of running agents, allowing teams to pick a provider whose billing model aligns with their observed duty cycle. By consistently applying the three‑step method, organizations can compare E2B, Vercel, Upstash Box, Blaxel, or any future offering on a common economic footing.
Source: detailed cost‑per‑successful‑job calculation and example【https://nirvanalabs.io/blog/agent-sandboxes-comparison-2026】.