Skip to content

Heaven vs Modal Sandboxes

On this page

The short version

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 stateHeavenModal Sandboxes
Longest uninterrupted runYesNo limit: runs until you stop it5 minutes by default, 24 hours at most
When nothing is happeningKeeps running. Heaven never stops an idle ComputerKeeps running until its timeout, or ends early with an idle timeout you set
The same machine next timeYesSame disk, address and settings after a stopA restored Sandbox is a new one, with new tunnels
Freeze it with memory and processesYesPauseMemory snapshots in alpha: they end the original, restore within 7 days and skip GPU Sandboxes
Copy a running machineYesDisk copy that boots freshYesSnapshot its filesystem and start copies
Roll back the same machineYesDisk snapshots, plus hourly off-site backupsNoSnapshots start new Sandboxes. Kept 30 days by default, or forever
Start timeAbout 2 seconds to a running Computer, by Heaven's testMedian under 500 ms in Modal's million-Sandbox test
Cost and limitsHeavenModal Sandboxes
How you pay$20 a month holds 2 shared vCPUs, 8 GiB and 100 GB for all your ComputersPer second, at the higher of use and request: about $0.142 a core-hour and $0.024 a GiB-hour
Idle timeBilled like busy timeBilled at the request while running. A finished Sandbox costs nothing
Free usageNoNo free tier. First month half priceYes$30 of compute every month on Starter
Machines at onceAs many as fit the pool's CPU, memory and storage100 containers on Starter, 5,000 on Team
Disk per machineShares the pool's storage: 100 GB on TinyUp to 512 GiB
Team membersAny number, on every plan3 seats on Starter. Any number on Team at $250 a month
Where it runsMontreal only19 locations to choose from, at 1.15 to 1.75 times the rate
Building on itHeavenModal Sandboxes
What each machine isA full Linux VM with root, from Heaven's Ubuntu image or yoursA gVisor container, or a Linux VM that runs Docker, systemd and FUSE
GPUsNoYesT4 to B300, by the second. GPU Sandboxes can be preempted
Nested VMs and the Android emulatorYes/dev/kvm in the default imageExperimental, on Enterprise VM Sandboxes
More CPU and memory when freeYesA Computer uses what its pool's other Computers leaveYesBursts above its request, billed for what it uses
Serving and networkingHeavenModal Sandboxes
Who can open the appPrivate until shared: people you choose, your organization, a share link or everyoneConnect tokens your code issues, or a public tunnel
The app knows who's visitingYesHeaven signs visitors in and passes their identity in headersNoYour app handles sign-in
The app stays up with nobody workingYesRuns until you stop it, at the same addressNoEnds within 24 hours. A new Sandbox gets new URLs
Public TCP portsYesIncluded, on a shared address or a dedicated IPv4YesRaw TCP tunnels
Custom domainsYesEvery plan, 50 per organizationTeam and Enterprise
Limit where code can connectNoNo allowlist, only a cap on egress spendYesBlock all, CIDR allowlist, domain allowlist in beta
API keys kept out of the machineYesGitHub and HTTPS integrationsBeta: 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

PlanPriceWhat you get
Heaven Tiny$20 a month, $10 the first month2 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 month4 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.

See Modal Sandboxes alternatives, E2B vs Modal Sandboxes and Daytona vs Modal Sandboxes.

Run your agents on Heaven

Persistent Linux Computers that share CPU, memory and storage in one pool. Tiny is $20 a month.

Sources and corrections

SourceChecked
1Heaven pricingNovember 21, 2026
2Heaven plans and hourly pricesNovember 21, 2026
3Heaven monthly, annual and first-month termsNovember 21, 2026
4Heaven Computer statesNovember 21, 2026
5Heaven default imageNovember 21, 2026
6Heaven regionsNovember 21, 2026
7Heaven create timeNovember 21, 2026
8Heaven poolsNovember 21, 2026
9Heaven snapshots and copiesNovember 21, 2026
10Heaven backupsNovember 21, 2026
11Heaven website accessNovember 21, 2026
12Heaven signed-in visitorsNovember 21, 2026
13Heaven custom domainsNovember 21, 2026
14Heaven public portsNovember 21, 2026
15Heaven static addressesNovember 21, 2026
16Heaven egress capNovember 21, 2026
17Heaven integrationsNovember 21, 2026
18Heaven HTTP APINovember 21, 2026
19Modal pricingNovember 19, 2026
20Modal Sandbox timeoutsNovember 19, 2026
21Modal idle timeoutsNovember 19, 2026
22Modal runtimesNovember 19, 2026
23Modal Sandbox resources and billingNovember 19, 2026
24Modal GPU SandboxesNovember 19, 2026
25Modal diskNovember 19, 2026
26Modal snapshotsNovember 19, 2026
27Modal memory snapshot limitsNovember 19, 2026
28Modal Sandbox networkingNovember 19, 2026
29Modal static egressNovember 19, 2026
30Modal secret injectionNovember 19, 2026
31Modal JavaScript and Go SDKsNovember 19, 2026
32Modal regionsNovember 19, 2026
33Modal scale testNovember 19, 2026
34Modal securityNovember 19, 2026

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