# Groundbox vs Cloudflare Sandboxes for agent sandboxes.

**Cloudflare's Sandbox SDK runs containers on Cloudflare's network, driven from a Worker.** Pick Cloudflare for sandboxes next to Workers and Durable Objects, very small instances, or CPU billed only while busy. Pick Groundbox for pause and fork that keep running processes, Python and TypeScript SDKs outside Workers, and CI runners on the same key.

[Start free, no card](https://groundbox.dev/signup)How to switch

2 vCPU · 4 GB, one hourlist prices

Groundbox$0.08 / hour

Cloudflare Sandboxes$0.036 to $0.18 / hour

Cloudflare Sandboxes bills CPU only while busy; the bar is the busy end.

sources: [groundbox.dev/pricing](https://groundbox.dev/pricing) · [developers.cloudflare.com](https://developers.cloudflare.com/containers/pricing/) · checked 2026-11-20

## Side by side

| Feature | Groundbox | Cloudflare Sandboxes |
| --- | --- | --- |
| Price, 2 vCPU · 4 GB | $0.08 / hour | [$0.036 to $0.18 / hour](https://developers.cloudflare.com/containers/pricing/) |
| Pause keeps memory | Yes, memory and disk | [No: a new instance starts from a file snapshot](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| CI runners too | Yes, on the same key and bill | [No: the pricing page lists Containers only](https://developers.cloudflare.com/containers/pricing/) |
| Isolation | Firecracker VM | [microVM with its own kernel](https://developers.cloudflare.com/sandbox/) |
| Fork and snapshots | Fork a running sandbox; save points | [Filesystem snapshots, not memory (beta)](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| Longest session | 720 hours, renewable | [No fixed limit, and no run time guaranteed](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| Self-host | No | Not published |
| GPUs | Not offered | Not published |
| Largest size | 16 vCPU | [4 vCPU and 12 GiB](https://developers.cloudflare.com/containers/platform-details/limits/) |
| SDK languages | TypeScript and Python | [TypeScript, inside Workers](https://developers.cloudflare.com/sandbox/get-started/) |
| Security report | No SOC 2 report | Not published |
| Free to start | $5 of usage, no card | [Needs Workers Paid, $5 a month](https://developers.cloudflare.com/containers/pricing/) |

Cloudflare's Sandbox SDK runs code in Cloudflare Containers, started from a Worker. A rust mark means that side is ahead. Where they are ahead, we say so. Every value of theirs links to the page it is from; “Not published” means their pages do not say. More comparisons: [all comparisons](https://groundbox.dev/compare).

## Who each is for

### Pick Cloudflare Sandboxes for

- sandboxes on Cloudflare's network, next to Workers and Durable Objects
- instances as small as 1/16 vCPU, billed every 10 ms
- CPU billed only while busy
- R2 buckets mounted into the sandbox

### Pick Groundbox for

- pause and fork that keep memory and running processes
- SDKs for TypeScript and Python that run anywhere, not only in a Worker
- a spend cap and scopes on every API key
- GitHub Actions runners on the same key and bill

## Every detail

| Feature | Groundbox | Cloudflare Sandboxes |
| --- | --- | --- |
| Plans | Free: everything, with $5 of usage. $20 / month: $20 of usage included, then pay as you go | [Needs the Workers Paid plan, $5 / month, which includes some usage](https://developers.cloudflare.com/containers/pricing/) |
| CPU | $0.04 per vCPU-hour, a dedicated core | [$0.000020 per vCPU-second of active use ($0.072 per vCPU-hour)](https://developers.cloudflare.com/containers/pricing/) |
| Memory | Included, up to 4 GB per vCPU | [$0.0000025 per GiB-second of provisioned memory ($0.009 per GiB-hour)](https://developers.cloudflare.com/containers/pricing/) |
| Storage | 20 GB disk by default, up to 100 GB | [Disk $0.00000007 per GB-second; snapshots free during the beta](https://developers.cloudflare.com/containers/pricing/) |
| Billing | Per second, no minimum | [Every 10 ms while running](https://developers.cloudflare.com/containers/pricing/) |
| Sizes | 1 to 16 vCPU, up to 4 GB per vCPU | [From 1/16 vCPU and 256 MiB to 4 vCPU and 12 GiB; custom types](https://developers.cloudflare.com/containers/platform-details/limits/) |
| Longest session | 720 hours, renewable; 60 minutes by default | [No fixed limit and no guaranteed run time; idle timeout up to 6 hours](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| Isolation | A Firecracker VM, a new one per job or sandbox | [microVM with its own kernel and network](https://developers.cloudflare.com/sandbox/) |
| Pause and resume | Yes, memory and disk; $0.05 per GB-month while paused | [No pause; a new instance starts from a filesystem snapshot, without processes](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| Fork and snapshots | Fork a running sandbox with its files and processes; save points to rewind to | [Root filesystem snapshots, not memory (beta)](https://developers.cloudflare.com/sandbox/concepts/lifetime/) |
| Egress controls | An allowlist of hosts per sandbox | [Internet off, with chosen hostnames passed through a Worker](https://developers.cloudflare.com/sandbox/network/) |
| SDKs | TypeScript and Python, plus a REST API, CLI and MCP server | [TypeScript / JavaScript inside Workers](https://developers.cloudflare.com/sandbox/get-started/) |

## A month at list price

One sandbox with 2 vCPU and 4 GiB of memory, running 100 hours in a month:

| Groundbox | $8.00 ($0.04 per vCPU-hour, memory included). On the $20 plan it fits in the $20 of usage included. |
| --- | --- |
| Cloudflare Sandboxes | $3.60 to $18.00, from CPU idle the whole time to CPU busy the whole time |

Cloudflare bills provisioned memory and disk all the time and CPU only while busy. The $5 Workers Paid plan, its included usage, disk and Worker charges are not counted. All our prices are on the [pricing page](https://groundbox.dev/pricing).

### Speed

We have not measured this service's sandboxes, and we publish no start or fork times for ours, so this page makes no speed claim. The speed figures we do publish are for CI runners, on the benchmark page. Method, scripts and every project's times: [the benchmark page](https://groundbox.dev/benchmark).

## Switch in four steps

1. Create an API key in the dashboard. An agent can also sign itself up with groundbox signup and send its person a claim link.
2. Install an SDK: npm i @groundbox/sdk or pip install groundbox.
3. Where your code creates a sandbox and runs a command in it, call create_sandbox and run_command. Files, fork, pause and stop have one method each, with the same names as the MCP tools.
4. Or give the agent the MCP server instead of SDK code: it has the same tools.

Details in the docs: [First sandbox](https://groundbox.dev/docs/sandboxes), the [SDKs](https://groundbox.dev/docs/sdks) and the [MCP server](https://groundbox.dev/docs/mcp).

```
import { Groundbox } from "@groundbox/sdk";

const groundbox = new Groundbox(); // reads GROUNDBOX_API_KEY
const sandbox = await groundbox.create_sandbox({ cpus: 2 });
const result = await groundbox.run_command(sandbox.id, "uname -a");
```

## Questions

| Is Groundbox cheaper than Cloudflare Sandboxes? | At list price, one 2 vCPU, 4 GiB sandbox for 100 hours costs $8.00 on Groundbox and $3.60 to $18.00 on Cloudflare, before plan fees and credits. Cloudflare bills CPU only while busy, so a mostly idle sandbox can cost less there. |
| --- | --- |
| How do I move an agent from Cloudflare Sandboxes to Groundbox? | Create an API key, install the TypeScript or Python SDK, and call create_sandbox and run_command where your code makes a sandbox and runs a command. The MCP server has the same tools. |
| How are sandboxes isolated on Groundbox and on Cloudflare Sandboxes? | Each Groundbox sandbox is its own Firecracker VM on dedicated cores. Cloudflare sandboxes run in microVMs with their own kernel. |
| Can a Groundbox sandbox pause and fork? | Yes. Pause keeps memory and disk and costs $0.05 per GB-month. Fork copies a running sandbox's files and processes. |
| How long can a Groundbox sandbox run? | It stops after 60 minutes by default. The longest timeout is 720 hours, and it can be renewed. Cloudflare does not guarantee how long an instance runs; its idle timeout can be set up to 6 hours. |
| Does Groundbox also run CI? | Yes. GitHub Actions runners from $0.003 a minute are on the same API key and bill as sandboxes. |

## Sources

Cloudflare Sandboxes's facts come from its own pages, read on the day shown. Prices change; their pages are the final word.

- [Cloudflare Containers pricing](https://developers.cloudflare.com/containers/pricing/), checked 2026-11-20
- [Cloudflare Containers limits](https://developers.cloudflare.com/containers/platform-details/limits/), checked 2026-11-19
- [Cloudflare Sandbox SDK](https://developers.cloudflare.com/sandbox/), checked 2026-11-19
- [Cloudflare Sandbox: lifetime](https://developers.cloudflare.com/sandbox/concepts/lifetime/), checked 2026-11-19
- [Cloudflare Sandbox: network](https://developers.cloudflare.com/sandbox/network/), checked 2026-11-19
- [Cloudflare Sandbox: get started](https://developers.cloudflare.com/sandbox/get-started/), checked 2026-11-19

## Also compared

## Try it on your own repo.

[Start free, no card](https://groundbox.dev/signup)[Book a call](https://cal.com/groundbox/30min)
