Runtime vs Prime Sandboxes
Runtime and Prime Sandboxes both give every sandbox a microVM with its own kernel. For an agent that mostly waits on a model, Runtime costs 58% less. Runtime can also pause and fork today.
The saving: 1,000 one-minute runs of a 2 vCPU, 4 GiB sandbox cost $0.64 on Runtime and $1.52 on Prime Sandboxes. At 100,000 runs a month, that is $63.89 against $151.67, $88 a month saved.
Comparing more than two providers? Prime Sandboxes alternatives ranks the other providers by the cost of the same job.
Updated
On this page
58% less than Prime Sandboxes
Compute only, at list rates checked 25 October 2026 (Prime Sandboxes overview). Plan fees, network, taxes and free credits are left out. The worked example below shows the arithmetic.
Where Runtime is better#
- You pay for the CPU you use. Prime bills the vCPUs, memory and disk a sandbox is given for as long as it runs. Runtime measures the CPU your code actually uses. Time spent waiting on a model costs only a small floor, a twentieth of a vCPU. Even with both CPUs busy the whole minute, the example job costs $1.33 on Runtime and $1.52 on Prime.
- Waiting costs storage, not compute. Left idle for 300 seconds, a Runtime sandbox pauses by itself with its memory kept. While paused, it pays $0.08 per GB (10⁹ bytes) a month until a request wakes it.
- A written uptime promise. Paid accounts get 99% API uptime a month, measured from outside. If a month falls short, 10% of that month's charges is returned as credit automatically (Uptime Promise).
- Cheaper memory. $0.0075 per GiB-hour, against Prime's $0.0125. Memory is most of what an agent sandbox costs while it waits.
- Pause and fork with memory. A paused Runtime sandbox keeps its memory and running processes while you have credit. A fork copies a running sandbox into up to 100 copies. Prime's checkpoints and forks save the filesystem only: processes start fresh and nothing in memory carries over.
- Prices that do not lapse. Prime's published rates hold through 22 December 2026. Runtime's rates are fixed in each resource's quote. There is no plan fee: prepaid credit from $10.
- Secrets stay outside the sandbox. Code inside sees a placeholder. The real key is added at the egress proxy, only on HTTPS to the hosts you allow (security).
- Your agent sets itself up. It runs
npx withruntime sandboxes run -- ..., shows you a link, and starts once you approve in the browser. No API key goes into a prompt or a config file. The MCP server reuses the same connection. - Guardrails for agents. Read-only keys, a daily spending limit per key and
maxTotalCostMicroson each sandbox keep an agent inside its budget. Every write takes an idempotency key.
Also included: a code interpreter, network allow and deny lists, custom images, volumes backed up daily, private previews, a Linux desktop, metrics, webhooks, OpenTelemetry export, S3, R2 and GCS bucket mounts, MCP servers from a catalog, identity tokens for AWS and Google Cloud, and free single sign-on. Paid accounts add custom domains, TCP ports, dedicated outbound addresses and WireGuard private networks. See products.
At a glance#
Prime's figures come from its sandbox documentation and launch post. Last checked 25 October 2026.
| Runtime | Prime Sandboxes | |
|---|---|---|
| Isolation | Firecracker microVM, own kernel | Hardware-virtualized microVM, own guest kernel |
| CPU billing | $0.025 per vCPU-hour of measured CPU, with a small floor | $0.02 per vCPU-hour while running |
| Memory billing | $0.0075 per reserved GiB-hour | $0.0125 per GiB-hour while running |
| Disk while it runs | Included | $0.0002 per GiB-hour; 5 GiB by default |
| Sizes | Up to 16 vCPUs and 64 GiB paid, chosen apart | Up to 16 vCPUs, 64 GiB and 128 GiB of disk |
| Pause and fork | Files, memory and processes; forks of a running sandbox | Filesystem checkpoints and forks; no memory |
| Concurrent sandboxes | 100 on a paid account | 1,024 per account to start |
| Plan fee | None; prepaid credit from $10 | None; rates published through 22 December 2026 |
| Free start | 100 free hours of a 1 GB machine in the first 30 days, no card | None published |
Cost for the same job#
Take 1,000 runs of a 2 vCPU, 4 GiB sandbox. Each run lasts 60 seconds and keeps the CPU busy for 20 CPU-seconds. This is an agent that spends most of its time waiting for a model. Prime's sandbox keeps its default 5 GiB disk.
- CPU
- 1,000 × 20 s / 3,600 × $0.025
- $0.14
- Memory
- 1,000 × 60 s / 3,600 × 4 × $0.0075
- $0.50
- CPU
- 1,000 × 60 s / 3,600 × 2 × $0.02
- $0.67
- Memory
- 1,000 × 60 s / 3,600 × 4 × $0.0125
- $0.83
- Disk
- 1,000 × 60 s / 3,600 × 5 × $0.0002
- $0.02
- Saving: 58%, or $0.88 per 1,000 runs.
- Per month: at 100,000 runs, $63.89 on Runtime against $151.67 on Prime.
- Busier work: with both CPUs busy for the whole minute, $1.33 on Runtime against $1.52 on Prime. At this size, Runtime is cheaper however busy the sandbox is.
Network, taxes and free allowances are excluded from both. On Runtime, inbound traffic is free. Each account's first 100 GiB out a month is free, then $0.02 per GB (10⁹ bytes). See pricing for Runtime's terms.
How to switch#
Give your coding agent the one instruction in migration. It replaces the Prime calls on a branch, tests them on the free usage, and tells you what you save each month. Your old code stays on the main branch until you merge.
An RL rollout that sets up an environment once and runs many episodes from it is a good fit for a fork. Install once, then start every episode from the same running machine.
TypeScriptimport { Sandbox } from "withruntime";await using base = await Sandbox.create();await base.exec("pip install --quiet numpy");const episodes = await base.fork({ count: 4 }); // four running copies, memory includedawait Promise.all(episodes.map((episode) => episode.stop()));When Prime Sandboxes may fit better#
- Thousands running at the same time from day one. An account starts at 1,024 active sandboxes and 4,096 vCPUs. A paid Runtime account runs 100, and raises it on request.
- Training on Prime Intellect. Prime Sandboxes are built for agentic RL training on Prime's own platform. Prime Tunnels reach inference running on its cluster nodes.
Sources#
Checked 26 October 2026.
Try it on your own work. Sign up, then paste the setup prompt into your coding agent.