
Heaven vs E2B
On this page
The short version
Heaven (heaven.dev) and E2B both give code its own Linux machine with root, and they split on how long that machine should live. Pick Heaven when an agent or a user needs the same machine for days and what it builds has to be served: a Computer never times out, its website has sign-in in front, and a team's Computers share one pool from $20 a month. Pick E2B when your product creates sandboxes from its own code and pays by the second: E2B pauses and forks them with their memory, ships a code interpreter, and suits code your app runs for a single request.
Heaven vs E2B features
| Running time and state | Heaven | E2B |
|---|---|---|
| Longest uninterrupted run | YesNo limit: runs until you stop it | 1 hour on Hobby, 24 hours on Pro. Resuming starts the clock again |
| Default lifetime | Until you stop or delete it | 10 minutes, then deleted unless you extend it or turn on auto-pause |
| Freeze it with memory and processes | YesPause, until you resume | YesPause, kept with no expiry. Resumes in about 1 second |
| Copy a running machine | YesDisk copy that boots fresh | YesFork with memory and processes, up to 20 copies a call |
| Roll back the same machine | YesDisk snapshots, plus hourly off-site backups | NoA snapshot starts a new sandbox |
| Cost and limits | Heaven | E2B |
|---|---|---|
| How you pay | $20 a month holds 2 shared vCPUs, 8 GiB and 100 GB for all your Computers | Per second while running: about $0.11 an hour at the default 2 vCPUs and 512 MiB |
| Idle time | Billed like busy time | Billed while running. Paused sandboxes cost nothing for compute |
| Machines at once | As many as fit the pool's CPU, memory and storage | 10 on Hobby, 100 on Pro, up to 1,100 with add-ons |
| Largest machine | Up to the pool's size: 8 GiB on Tiny, 1,024 GiB on the largest plan | 2 vCPUs and 512 MiB on Hobby. Up to 8 vCPUs and 8 GiB on Pro |
| Disk | Shares the pool's storage: 100 GB on Tiny | 10 GiB a sandbox on Hobby, 20 GiB on Pro |
| To start | NoNo free tier. First month half price | Yes$100 of credit once, no card |
| Where it runs | Montreal only | 5 regions. US West by default, the rest on request |
| Run it in your own cloud | No | YesOpen-source single-node version. BYOC on Enterprise |
| Building on it | Heaven | E2B |
|---|---|---|
| What each machine is | A full Linux VM with root and nested virtualization, from Heaven's Ubuntu image or yours | A Firecracker microVM with root, from a template you build from a Dockerfile or code |
| Code interpreter that keeps variables | NoRun your own Jupyter kernel | YesReturns charts and tables as data |
| Hand a task to a coding agent | Claude Code, Codex, OpenCode and Pi installed. You run them | YesACP starts the agent and streams its session to your app |
| Computer-use agents | A browser desktop for people. No API for clicks or screenshots | YesDesktop template with screenshot and input APIs |
| Serving and networking | Heaven | E2B |
|---|---|---|
| Who can open the app | Private until shared: people you choose, your organization, a share link or everyone | Private on new projects behind an access token or signed URL, or public |
| The app knows who's visiting | YesHeaven signs visitors in and passes their identity in headers | NoYour app handles sign-in |
| Public TCP ports | YesIncluded, on a shared address or a dedicated IPv4 | NoHTTP and WebSocket only |
| Limit where code can connect | NoNo allowlist, only a cap on egress spend | YesIP, CIDR and hostname rules |
| API keys kept out of the machine | YesGitHub and HTTPS integrations | YesSecrets added to outbound requests |
Who should pick E2B
E2B fits when your product is the one creating machines: many short-lived sandboxes, each sized and paid for by the second.
- Sandboxes from your own code. The Python and TypeScript SDKs create a sandbox from a template, run commands, move files and stream output. Pro runs 100 at once, or 1,100 with concurrency add-ons, and a default sandbox costs about $0.11 an hour.
- State you can freeze and branch. Pause keeps a sandbox's memory and processes with no expiry and resumes it in about a second. Auto-resume wakes it when a request arrives, and a fork copies a running sandbox, memory included, into up to 20 new ones in one call, which suits agent runs that try several paths from one point.
- Parts built for AI products. The Code Interpreter SDK keeps variables between calls and returns charts as data, the Desktop template gives computer-use agents screenshot and input APIs, and ACP starts a coding agent in a sandbox and streams its session to your app.
- What a security review asks for. Outbound rules by IP, CIDR or hostname, SOC 2 Type II, a HIPAA BAA on request, five regions, an open-source single-node version and BYOC on AWS, Google Cloud or Azure for Enterprise. Heaven has no outbound rules or compliance report, and runs in one region.
It isn't the fit for work that must run more than 24 hours without a pause, or for an app your teammates sign in to, which you'd build the sign-in for yourself.
Who should pick Heaven
Heaven is cloud infrastructure for software factories. It fits when the machine outlives the task: an agent that works for days, a user who comes back to the same workspace, and the app either of them builds.
- No clock on the work. A Computer runs until you stop it, with nobody connected, so an agent keeps its checkout, its services and its cron jobs between tasks. Heaven never stops a Computer for being idle, and pause freezes one with its memory when you choose.
- What it builds is ready to show. Every Computer's website starts private. Heaven signs visitors in and passes their identity to the app in headers, share links open it to people without an account, and public TCP ports, static IPv4 at $7.50 a month and email come with it.
- One pool for many machines. Computers share the pool's CPU, memory and storage, so an idle one leaves its share to a busy one, and the bill stays the same however many hours they run.
- 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 if your product needs an SDK library, an allowlist for untrusted code, a region outside Montreal or a compliance report. Heaven has none of these today.
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 |
| Heaven Small | $40 a month | 4 shared vCPUs, 16 GiB, 250 GB and 1,000 GB of egress |
| E2B Hobby | $0 plus usage, $100 of credit once | The default 2 vCPU, 512 MiB sandbox, 10 at once, runs up to 1 hour, 10 GiB of disk |
| E2B Pro | $150 a month plus usage | Sizes up to 8 vCPUs and 8 GiB, 100 at once, runs up to 24 hours, 20 GiB of disk |
E2B bills a running sandbox $0.000014 per vCPU-second and $0.0000045 per GiB-second, and nothing for compute while it's paused. Heaven bills the capacity you hold: by the month, by the year at 20% off, or by the hour at $0.04 for Tiny with a one-hour minimum.
Code your product runs on request. Your app starts a sandbox per request: 3,000 runs a month of 2 minutes each at the default size. That's 100 sandbox-hours, $10.89 on E2B Hobby, and the $100 credit covers the first nine months. Heaven would hold Tiny for $20 whatever the count, and the runs would share its 2 vCPUs, where each E2B run gets 2 of its own. E2B costs less below about 184 sandbox-hours a month at this size, and it's the better tool for this job.
A team's coding agents and the app they build. The work: three agents with 2 vCPUs and 2 GiB each, working 8 hours a weekday (176 hours a month) and paused the rest, plus an internal app at 1 vCPU and 1 GiB that teammates open during the day. On E2B the agents' size and their 8-hour runs need Pro: $150, plus $70.33 for the agents. The app can pause between visits and wake on a request; awake 4 hours a weekday (88 hours), it adds $5.86, for $226.19 in all. On Heaven the four fit Tiny's 8 GiB for $20 and stay up all month, but they share 2 vCPUs, so builds that overlap run slower than on E2B's 7. Medium gives them 8 vCPUs for $80.
If the agents and the app fit E2B's default 512 MiB sandbox and every run ends within an hour, Hobby runs all four for about $67.08 a month, and the credit covers the first month.
Frequently asked questions
Does stopping a Heaven Computer end its bill?
No. You pay for the capacity you hold, whether its Computers run, pause or stop. Hourly capacity stops billing when you release it, after a one-hour minimum.
Can I use the E2B Code Interpreter SDK on Heaven?
No. Heaven has no SDK library: your code drives Computers through the HTTP API, the CLI, SSH or MCP. To keep variables between calls, run a Jupyter kernel on a Computer and send it code.
Can an E2B sandbox run for more than 24 hours?
Only across pauses. A run stops at 24 hours on Pro and 1 hour on Hobby, and resuming a paused sandbox starts the clock again. An app that only answers requests can sleep and wake on traffic that way, but a worker that must run without a break can't. Enterprise sets custom limits.
Related comparisons
See E2B alternatives, E2B vs Daytona and E2B vs Modal Sandboxes.
- AlternativesE2B alternatives for agent codeE2B alternatives for agent code: how long a run can last, what survives it, idle billing, GPUs, what a month of runs costs and where built apps get served.
- ComparisonE2B vs DaytonaE2B and Daytona side by side: run limits, pausing with memory, sizes on the free plan, Windows, macOS and GPUs, and what short and long runs cost.
- ComparisonE2B vs Modal SandboxesE2B and Modal Sandboxes for an agent product: pause and resume, GPUs, raw TCP, interpreters, how many run at once and what a month of runs costs.
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
| Source | Checked | |
|---|---|---|
| 1 | Heaven pricing | November 21, 2026 |
| 2 | Heaven plans and hourly prices | November 21, 2026 |
| 3 | Heaven monthly, annual and first-month terms | November 21, 2026 |
| 4 | Heaven Computer states | November 21, 2026 |
| 5 | Heaven default image | November 21, 2026 |
| 6 | Heaven regions | November 21, 2026 |
| 7 | Heaven pools | November 21, 2026 |
| 8 | Heaven snapshots and copies | November 21, 2026 |
| 9 | Heaven backups | November 21, 2026 |
| 10 | Heaven website access | November 21, 2026 |
| 11 | Heaven signed-in visitors | November 21, 2026 |
| 12 | Heaven public ports | November 21, 2026 |
| 13 | Heaven static addresses | November 21, 2026 |
| 14 | Heaven egress cap | November 21, 2026 |
| 15 | Heaven integrations | November 21, 2026 |
| 16 | Heaven HTTP API | November 21, 2026 |
| 17 | Heaven desktop | November 21, 2026 |
| 18 | E2B pricing | November 20, 2026 |
| 19 | E2B plans and limits | November 19, 2026 |
| 20 | E2B auto-pause and persistence | November 19, 2026 |
| 21 | E2B auto-resume | November 19, 2026 |
| 22 | E2B fork | November 20, 2026 |
| 23 | E2B snapshots | November 19, 2026 |
| 24 | E2B templates | November 19, 2026 |
| 25 | E2B SDKs | November 19, 2026 |
| 26 | E2B interpreter contexts | November 19, 2026 |
| 27 | E2B ACP | November 19, 2026 |
| 28 | E2B computer use | November 19, 2026 |
| 29 | E2B ingress access | November 19, 2026 |
| 30 | E2B internet access rules | November 19, 2026 |
| 31 | E2B secrets injection | November 19, 2026 |
| 32 | E2B regions | November 19, 2026 |
| 33 | E2B BYOC | November 19, 2026 |
| 34 | E2B Embed | November 19, 2026 |
| 35 | E2B security and compliance | November 19, 2026 |
Spot an error? Email support@heaven.dev with the page, the claim and a source.