Groundbox vs Modal for agent sandboxes.
Modal Sandboxes run on Modal's serverless platform, with GPUs and very small sizes. Pick Modal for GPU sandboxes, a Go SDK, or code that already runs on Modal. Pick Groundbox for a VM per sandbox by default, memory included in the CPU price, and CI runners on the same key.
sources: groundbox.dev/pricing · modal.com · checked 2026-11-20
Side by side
| Feature | Groundbox | Modal |
|---|---|---|
| Price, 2 vCPU · 4 GB | $0.08 / hour | $0.24 / hour |
| Pause keeps memory | Yes, memory and disk | No pause; memory snapshots are experimental |
| CI runners too | Yes, on the same key and bill | No: the pricing page lists no CI runners |
| Isolation | Firecracker VM | gVisor by default; a VM runtime as an option |
| Fork and snapshots | Fork a running sandbox; save points | Filesystem and memory snapshots (memory in alpha) |
| Longest session | 720 hours, renewable | 24 hours |
| Self-host | No | Not published |
| GPUs | Not offered | Yes, T4 to H100 and up |
| Largest size | 16 vCPU | Not published |
| SDK languages | TypeScript and Python | Python, JavaScript and Go |
| Security report | No SOC 2 report | SOC 2 Type II |
| Free to start | $5 of usage, no card | $30 of credit a month |
Modal is a serverless compute platform; Modal Sandboxes run untrusted code in containers started from its SDKs. 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.
Who each is for
Pick Modal for
- GPU sandboxes, billed by the second
- very small default sizes that can burst
- a Go SDK as well as Python and JavaScript
- a SOC 2 Type II report, and HIPAA on Enterprise
Pick Groundbox for
- a VM per sandbox by default; Modal uses gVisor by default
- memory included in the CPU price ($0.04 per vCPU-hour), on dedicated cores
- pause, fork and save points of a running sandbox, and an egress allowlist
- a spend cap and scopes on every API key
- GitHub Actions runners on the same key and bill
Every detail
| Feature | Groundbox | Modal |
|---|---|---|
| Plans | Free: everything, with $5 of usage. $20 / month: $20 of usage included, then pay as you go | Starter $0 plus compute with $30 / month of credit; Team $250 / month plus compute |
| CPU | $0.04 per vCPU-hour, a dedicated core | Sandboxes: $0.00003942 per physical core per second; a core is 2 vCPU |
| Memory | Included, up to 4 GB per vCPU | Sandboxes: $0.00000667 per GiB-second |
| Billing | Per second, no minimum | Per second, on the greater of requested and used CPU and memory |
| Default size | 2 vCPU, 4 GB RAM, 20 GB disk | 0.125 cores and 128 MiB, and it can burst |
| Longest session | 720 hours, renewable; 60 minutes by default | 5 minutes by default, up to 24 hours |
| Sandboxes at once | 20 once a card is on file | Plan container limits: 100 on Starter, 5,000 on Team |
| Isolation | A Firecracker VM, a new one per job or sandbox | gVisor by default; a VM runtime with its own kernel as an option |
| Idle | Auto-stop after 60 minutes by default | An optional idle timeout |
| Fork and snapshots | Fork a running sandbox with its files and processes; save points to rewind to | Filesystem, directory and memory snapshots (memory in alpha) |
| Egress controls | An allowlist of hosts per sandbox | Block all, a CIDR allowlist, or a domain allowlist (beta) |
| GPUs | Not offered | Yes, per second, from T4 to H100 and up |
| SDKs | TypeScript and Python, plus a REST API, CLI and MCP server | Python, JavaScript and Go |
| Security reports | No SOC 2 report | SOC 2 Type II; HIPAA on Enterprise |
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. |
|---|---|
| Modal | $23.80 |
Modal prices a physical core of 2 vCPU, and bills sandboxes at its non-preemptible rate. Its monthly credit is not counted. All our prices are on the pricing page.
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.
Switch in four steps
- Create an API key in the dashboard. An agent can also sign itself up with groundbox signup and send its person a claim link.
- Install an SDK: npm i @groundbox/sdk or pip install groundbox.
- 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.
- Or give the agent the MCP server instead of SDK code: it has the same tools.
Details in the docs: First sandbox, the SDKs and the MCP server.
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 Modal? | At list price, one 2 vCPU, 4 GiB sandbox for 100 hours costs $8.00 on Groundbox and $23.80 on Modal, before plan fees and credits. |
| How do I move an agent from Modal 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 Modal? | Each Groundbox sandbox is its own Firecracker VM on dedicated cores. Modal sandboxes run under gVisor by default, with a VM runtime as an option. |
| 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. A Modal sandbox has a 5-minute timeout by default and runs up to 24 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
Modal's facts come from its own pages, read on the day shown. Prices change; their pages are the final word.
- Modal pricing, checked 2026-11-20
- Modal docs: sandboxes, checked 2026-11-19
- Modal docs: sandbox resources, checked 2026-11-19
- Modal docs: sandbox snapshots, checked 2026-11-20
- Modal docs: sandbox networking, checked 2026-11-19
- Modal docs: security, checked 2026-11-19