# Heaven vs Modal Sandboxes

URL: https://heaven.dev/compare/heaven-vs-modal
Title: Heaven vs Modal Sandboxes - always-on Computers or fan-out jobs
Description: Modal Sandboxes or Heaven Computers: GPUs and per-second jobs against machines that stay up all month, serving what agents build, and monthly costs.
Checked: November 21, 2026

Modal Sandboxes and Heaven (heaven.dev) both run code on isolated Linux machines, but one is built to fan out jobs and the other to stay put. Pick Modal when your code starts many Sandboxes, each finishing within 24 hours, and especially when they need GPUs, a region near your users or a monthly credit: Modal bills by the second and reports a median start under 500 ms at scale. Pick Heaven when agents, workers or the apps they build should stay up all month at the same address: a Computer never times out, its website has sign-in in front, and a team's Computers share one pool from $20 a month.

## Heaven vs Modal Sandboxes features

| Running time and state | Heaven | Modal Sandboxes |
| --- | --- | --- |
| **Longest uninterrupted run** | ✓ No limit: runs until you stop it | 5 minutes by default, 24 hours at most |
| **When nothing is happening** | Keeps running. Heaven never stops an idle Computer | Keeps running until its timeout, or ends early with an idle timeout you set |
| **The same machine next time** | ✓ Same disk, address and settings after a stop | A restored Sandbox is a new one, with new tunnels |
| **Freeze it with memory and processes** | ✓ Pause | Memory snapshots in alpha: they end the original, restore within 7 days and skip GPU Sandboxes |
| **Copy a running machine** | ✓ Disk copy that boots fresh | ✓ Snapshot its filesystem and start copies |
| **Roll back the same machine** | ✓ Disk snapshots, plus hourly off-site backups | ✗ Snapshots start new Sandboxes. Kept 30 days by default, or forever |
| **Start time** | About 2 seconds to a running Computer, by Heaven's test | Median under 500 ms in Modal's million-Sandbox test |

| Cost and limits | Heaven | Modal Sandboxes |
| --- | --- | --- |
| **How you pay** | $20 a month holds 2 shared vCPUs, 8 GiB and 100 GB for all your Computers | Per second, at the higher of use and request: about $0.142 a core-hour and $0.024 a GiB-hour |
| **Idle time** | Billed like busy time | Billed at the request while running. A finished Sandbox costs nothing |
| **Free usage** | ✗ No free tier. First month half price | ✓ $30 of compute every month on Starter |
| **Machines at once** | As many as fit the pool's CPU, memory and storage | 100 containers on Starter, 5,000 on Team |
| **Disk per machine** | Shares the pool's storage: 100 GB on Tiny | Up to 512 GiB |
| **Team members** | Any number, on every plan | 3 seats on Starter. Any number on Team at $250 a month |
| **Where it runs** | Montreal only | 19 locations to choose from, at 1.15 to 1.75 times the rate |

| Building on it | Heaven | Modal Sandboxes |
| --- | --- | --- |
| **What each machine is** | A full Linux VM with root, from Heaven's Ubuntu image or yours | A gVisor container, or a Linux VM that runs Docker, systemd and FUSE |
| **GPUs** | ✗ | ✓ T4 to B300, by the second. GPU Sandboxes can be preempted |
| **Nested VMs and the Android emulator** | ✓ `/dev/kvm` in the default image | Experimental, on Enterprise VM Sandboxes |
| **More CPU and memory when free** | ✓ A Computer uses what its pool's other Computers leave | ✓ Bursts above its request, billed for what it uses |

| Serving and networking | Heaven | Modal Sandboxes |
| --- | --- | --- |
| **Who can open the app** | Private until shared: people you choose, your organization, a share link or everyone | Connect tokens your code issues, or a public tunnel |
| **The app knows who's visiting** | ✓ Heaven signs visitors in and passes their identity in headers | ✗ Your app handles sign-in |
| **The app stays up with nobody working** | ✓ Runs until you stop it, at the same address | ✗ Ends within 24 hours. A new Sandbox gets new URLs |
| **Public TCP ports** | ✓ Included, on a shared address or a dedicated IPv4 | ✓ Raw TCP tunnels |
| **Custom domains** | ✓ Every plan, 50 per organization | Team and Enterprise |
| **Limit where code can connect** | ✗ No allowlist, only a cap on egress spend | ✓ Block all, CIDR allowlist, domain allowlist in beta |
| **API keys kept out of the machine** | ✓ GitHub and HTTPS integrations | Beta: an outbound policy adds headers to HTTPS calls |

## Who should pick Modal Sandboxes

Modal fits batch work and agent products driven from code: a controller starts as many Sandboxes as it needs, and each one ends with its job.

- **GPUs by the second.** A Sandbox can attach a T4, L4, A10, L40S, A100, H100, H200, RTX PRO 6000, B200 or B300 and pay per second. GPU Sandboxes run in the container runtime and can be preempted. Heaven has no GPUs.

- **Fan-out at scale.** Modal measured a median under 500 ms from create to running code while launching a million Sandboxes, Starter runs 100 containers at once and Team 5,000, and a Sandbox can burst past its CPU and memory request when capacity is free.

- **A full VM when you need one.** The VM runtime runs Docker, systemd, FUSE and nested cgroups, beside the lighter gVisor runtime, and both use the same Sandbox API and Images. Filesystem snapshots can be kept forever and start new Sandboxes.

- **Credit, regions and controls.** Starter includes $30 of compute every month, Sandboxes can be pinned to 19 locations, and outbound traffic can be blocked or limited to CIDRs and domains. Modal has SOC 2 and HIPAA on Enterprise.

It isn't the fit for a service that must stay up past 24 hours, such as a dashboard, a bot or an agent that works for days, because the Sandbox ends and a restored one comes back under new URLs.

## Who should pick Heaven

Heaven is cloud infrastructure for software factories. It fits CPU agents and workers that should stay up, and the apps they build.

- **Workers that stay up.** A queue consumer, an agent or a dashboard keeps running between jobs, all month, at the same address. Root, Docker and systemd work as on any server, and pause freezes a Computer with its memory.

- **Apps served to the team.** Every Computer's website starts private. Heaven signs visitors in and passes their identity to the app, gives outsiders share links, and serves custom domains with HTTPS on every plan.

- **One pool, one price.** Agents, workers and apps share a pool's CPU, memory and storage, and the bill stays the same however long they run. Every plan takes any number of members.

- **Work you can roll back.** A snapshot rolls the same Computer back, a copy starts a new one from any snapshot or a running disk, and Heaven backs up changed disks off-site every hour.

It isn't the fit for GPU work, for regions outside Montreal or for code that needs an outbound allowlist. Heaven has none of these, and it has no SDK library.

## Pricing

| Plan | Price | What you get |
| --- | --- | --- |
| **Heaven Tiny** | $20 a month, $10 the first month | 2 shared vCPUs, 8 GiB of RAM, 100 GB of storage and 500 GB of egress, for as many Computers as fit and any number of members |
| **Heaven Small** | $40 a month | 4 shared vCPUs, 16 GiB, 250 GB and 1,000 GB of egress |
| **Modal Starter** | $0 plus usage | $30 of compute a month, 3 seats, 100 containers and 10 GPUs at once, 1 TiB of egress |
| **Modal Team** | $250 a month plus usage | $100 of compute a month, any number of seats, 5,000 containers and 50 GPUs, 10 TiB of egress |

A Modal core is 2 vCPUs. The bills below give each job or agent 1 core and 4 GiB, about $0.24 an hour at Modal's base rate. Pinning a region raises it by 1.15 to 1.75 times.

**Jobs from an app.** 500 Sandboxes a month of 10 minutes each is about 83 hours: **$19.83**, inside Starter's $30 credit, so **$0**. Heaven would hold Tiny for **$20** whatever the count. Modal costs less until a month's usage passes about 210 hours at this size.

**Two agents and a dashboard.** Two agents that work 8 hours a weekday (176 hours a month) cost $83.76, or **$53.76** after Starter's credit. A dashboard that stays up all month doesn't fit, because a Sandbox runs at most 24 hours and a restored one gets new tunnels, so a team would host it elsewhere. On Heaven the two agents and a 2 GiB dashboard fit in Small for **$40** and stay up all month, sharing 4 vCPUs. If the agents' builds overlap with heavy dashboard use, Medium gives them 8 vCPUs for **$80**.

## Frequently asked questions

### Can a Modal Sandbox run longer than 24 hours?

No. A Sandbox stops after 5 minutes by default and 24 hours at most. Longer work continues in a new Sandbox, from a snapshot or a Volume.

### Does an idle Modal Sandbox still cost money?

Yes. A running Sandbox is billed at least its requested CPU and memory until it ends. Set an idle timeout to end it when no command, input or tunnel connection is active.

### Does Heaven have GPUs?

No. Heaven's plans have shared CPUs, memory and storage only. For GPU work, Modal is the better choice.

## Related comparisons

See [Modal Sandboxes alternatives](https://heaven.dev/alternatives/modal), [E2B vs Modal Sandboxes](https://heaven.dev/compare/e2b-vs-modal) and [Daytona vs Modal Sandboxes](https://heaven.dev/compare/daytona-vs-modal).

## Sources and corrections

| Source | Checked |
| --- | --- |
| [Heaven pricing](https://heaven.dev/pricing) | November 21, 2026 |
| [Heaven plans and hourly prices](https://heaven.dev/docs/pricing#plans) | November 21, 2026 |
| [Heaven monthly, annual and first-month terms](https://heaven.dev/docs/pricing#monthly-or-hourly) | November 21, 2026 |
| [Heaven Computer states](https://heaven.dev/docs/managing-computers#states) | November 21, 2026 |
| [Heaven default image](https://heaven.dev/docs/images#default-image) | November 21, 2026 |
| [Heaven regions](https://heaven.dev/docs/capacity#regions) | November 21, 2026 |
| [Heaven create time](https://heaven.dev/docs/getting-started#create-a-computer) | November 21, 2026 |
| [Heaven pools](https://heaven.dev/docs/pools) | November 21, 2026 |
| [Heaven snapshots and copies](https://heaven.dev/docs/snapshots) | November 21, 2026 |
| [Heaven backups](https://heaven.dev/docs/snapshots#backups) | November 21, 2026 |
| [Heaven website access](https://heaven.dev/docs/websites#website-access) | November 21, 2026 |
| [Heaven signed-in visitors](https://heaven.dev/docs/websites#signed-in-visitors) | November 21, 2026 |
| [Heaven custom domains](https://heaven.dev/docs/domains) | November 21, 2026 |
| [Heaven public ports](https://heaven.dev/docs/ports#public-ports) | November 21, 2026 |
| [Heaven static addresses](https://heaven.dev/docs/pricing#static-addresses) | November 21, 2026 |
| [Heaven egress cap](https://heaven.dev/docs/pricing#internet-traffic) | November 21, 2026 |
| [Heaven integrations](https://heaven.dev/docs/integrations) | November 21, 2026 |
| [Heaven HTTP API](https://heaven.dev/docs/http-api) | November 21, 2026 |
| [Modal pricing](https://modal.com/pricing) | November 19, 2026 |
| [Modal Sandbox timeouts](https://modal.com/docs/guide/sandboxes#timeouts) | November 19, 2026 |
| [Modal idle timeouts](https://modal.com/docs/guide/sandboxes#idle-timeouts) | November 19, 2026 |
| [Modal runtimes](https://modal.com/docs/guide/sandboxes#runtimes) | November 19, 2026 |
| [Modal Sandbox resources and billing](https://modal.com/docs/guide/sandbox-resources.md) | November 19, 2026 |
| [Modal GPU Sandboxes](https://modal.com/docs/guide/sandbox-resources#gpu-sandboxes) | November 19, 2026 |
| [Modal disk](https://modal.com/docs/guide/sandbox-resources#disk) | November 19, 2026 |
| [Modal snapshots](https://modal.com/docs/guide/sandbox-snapshots.md) | November 19, 2026 |
| [Modal memory snapshot limits](https://modal.com/docs/guide/sandbox-snapshots#limitations) | November 19, 2026 |
| [Modal Sandbox networking](https://modal.com/docs/guide/sandbox-networking.md) | November 19, 2026 |
| [Modal static egress](https://modal.com/docs/guide/proxy-ips.md) | November 19, 2026 |
| [Modal secret injection](https://modal.com/docs/guide/sandbox-secret-injection) | November 19, 2026 |
| [Modal JavaScript and Go SDKs](https://modal.com/docs/guide/sdk-javascript-go) | November 19, 2026 |
| [Modal regions](https://modal.com/docs/guide/region-selection.md) | November 19, 2026 |
| [Modal scale test](https://modal.com/blog/scaling-to-1-million-concurrent-sandboxes-in-seconds) | November 19, 2026 |
| [Modal security](https://modal.com/docs/guide/security.md) | November 19, 2026 |

Spot an error? Email support@heaven.dev with the page, the claim and a source.
