An agent’s sandbox spends much of its life doing nothing. The model is thinking, a person is reviewing, an API is slow. How a provider bills that waiting time matters more to your bill than the headline rate, and the providers have landed on genuinely different meters.
This post lays out five meters from published pricing pages, read in November 2026, and asks the same question of each: what does a box cost while it waits? We do not rank them. The right meter depends on how your runs are shaped, and every rate below can change; follow the links before you plan.
1. Provisioned resources, per second, while running: E2B, Northflank
E2B bills “per second for provisioned CPU and RAM” while a sandbox runs: $0.000014 per vCPU-second and $0.0000045 per GiB-second, disk included (E2B pricing). Plans add a monthly fee (Pro is $150 a month plus usage) and concurrency.
Northflank bills containers by the second at $0.01667 per vCPU-hour and $0.00833 per GB-hour on its cloud, with no seat fees (Northflank pricing).
While waiting: you pay the full provisioned rate. A waiting box costs the same as a busy one. The lever is to stop or pause it: E2B’s docs say billing stops when a sandbox is paused, killed or times out, and it offers auto-pause after inactivity.
2. Active CPU plus provisioned memory: Vercel Sandbox
Vercel bills Active CPU, “the amount of time your code actively uses the CPU”, at $0.128 per hour on Pro in iad1, and Provisioned Memory at $0.0212 per GB-hour, with each vCPU including 2 GB. Waiting on network or model calls does not count toward Active CPU; memory counts for the whole time the sandbox runs, “including idle time”. Sandbox creations are billed per million (Vercel Sandbox pricing).
While waiting: CPU cost drops to whatever the idle box actually uses; memory keeps billing. Vercel’s own example puts an idle 1 vCPU, 2 GB sandbox at $1.05 a day versus $4.09 busy all day. Stopping ends both.
3. Active CPU, provisioned memory and disk, in 10 ms slices: Cloudflare Containers
Cloudflare bills containers “for every 10ms that they are actively running”, on top of the $5 Workers Paid plan. Memory and disk are billed on the instance type you provision; CPU on active usage only. Beyond included amounts: $0.000020 per vCPU-second, $0.0000025 per GiB-second of memory, $0.00000007 per GB-second of disk (Containers pricing). Workers and Durable Objects are billed separately.
While waiting: the lifetime docs say “an idle instance is still billed” for memory and disk while it runs. Instances stop after an inactivity timeout you set (up to 6 hours), and a stopped instance is not billed, but its processes end; snapshots carry files, not memory.
4. Per-second VMs, with cheap stopped state: Fly Machines
Fly Machines are billed by the second while running, from $2.19 for 30 days of a shared-cpu-1x with 256 MB in the lowest-priced regions. A stopped Machine is billed only for its root filesystem, at $0.15 per GB a month (Fly.io pricing). Fly’s Sprites, a separate product for agents, are billed per second with no compute charges while idle (Sprites overview).
While waiting: a started Machine bills fully; a stopped one bills for storage. The lever is stopping, which Fly makes cheap to undo for an existing Machine.
5. Awake vCPU-hours: Sandscale
Sandscale bills awake vCPU-hours: one vCPU running for one hour while the box is awake. Memory is included at 4 GiB per vCPU; extra memory counts as vCPU-hours. Paused time and idle time between tool calls do not count. Plans include hours (100 on Free; 1,500 on Pro at $25 a month billed monthly; 2,000 per member pooled on Team at $48 per member a month billed monthly), and beyond them you choose $0.05 per awake vCPU-hour, a 500-hour pack for $10, or keep it off (pricing). Exceptions: always-on workspaces are a flat monthly price, dedicated cores are billed by wall clock, and storage above your allowance is billed.
While waiting: idle gaps between tool calls and paused time are not counted, with no action from you. When the box is awake, all of its vCPUs count, busy or not. The TypeScript SDK’s keepAwake() holds a box awake for a set time when it must stay awake, and that time counts.
The same question, side by side
| Meter | Waiting box, still running | Lever you pull |
|---|---|---|
| Provisioned per second (E2B, Northflank) | Full CPU and memory rate | Pause, stop, auto-pause |
| Active CPU + provisioned memory (Vercel) | Memory rate, plus the idle CPU actually used | Stop |
| Active CPU + provisioned memory and disk (Cloudflare) | Memory and disk rate | Inactivity timeout, then snapshot |
| Per-second VM (Fly Machines) | Full rate | Stop (rootfs billed) |
| Awake vCPU-hours (Sandscale) | Not counted between tool calls | Pause for longer waits |
How to compare for your own workload
Rates on their own mislead. Measure three numbers from your agent logs instead:
- Wall time per run: how long a box exists from create to stop.
- Busy time per run: how long commands are actually executing.
- Size: vCPUs and memory you really need.
Then price one month of runs on each meter, including plan fees, included usage and concurrency limits. If busy time is close to wall time, the meters converge and the rate per vCPU decides. If busy time is a small fraction of wall time, which is common for agents, the meter decides, and the treatment of waiting time is the line to read first.
For more on why this matters for agents in particular, see awake-time billing for agent sandboxes.