# Heaven vs E2B

URL: https://heaven.dev/compare/heaven-vs-e2b
Title: Heaven vs E2B - sandboxes per task or Computers that stay on
Description: E2B sandboxes or Heaven Computers for agents and user code: run limits, pause and fork, serving what gets built, and what a month costs on each.
Checked: November 21, 2026

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** | ✓ No 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** | ✓ Pause, until you resume | ✓ Pause, kept with no expiry. Resumes in about 1 second |
| **Copy a running machine** | ✓ Disk copy that boots fresh | ✓ Fork with memory and processes, up to 20 copies a call |
| **Roll back the same machine** | ✓ Disk snapshots, plus hourly off-site backups | ✗ A 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** | ✗ No free tier. First month half price | ✓ $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** | ✗ | ✓ Open-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** | ✗ Run your own Jupyter kernel | ✓ Returns charts and tables as data |
| **Hand a task to a coding agent** | Claude Code, Codex, OpenCode and Pi installed. You run them | ✓ ACP starts the agent and streams its session to your app |
| **Computer-use agents** | A browser desktop for people. No API for clicks or screenshots | ✓ Desktop 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** | ✓ Heaven signs visitors in and passes their identity in headers | ✗ Your app handles sign-in |
| **Public TCP ports** | ✓ Included, on a shared address or a dedicated IPv4 | ✗ HTTP and WebSocket only |
| **Limit where code can connect** | ✗ No allowlist, only a cap on egress spend | ✓ IP, CIDR and hostname rules |
| **API keys kept out of the machine** | ✓ GitHub and HTTPS integrations | ✓ Secrets 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](https://heaven.dev/alternatives/e2b), [E2B vs Daytona](https://heaven.dev/compare/e2b-vs-daytona) and [E2B vs Modal Sandboxes](https://heaven.dev/compare/e2b-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 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 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 |
| [Heaven desktop](https://heaven.dev/docs/reference/computers/desktop) | November 21, 2026 |
| [E2B pricing](https://e2b.dev/pricing) | November 20, 2026 |
| [E2B plans and limits](https://docs.e2b.dev/billing#plans) | November 19, 2026 |
| [E2B auto-pause and persistence](https://docs.e2b.dev/sandbox/persistence.md) | November 19, 2026 |
| [E2B auto-resume](https://docs.e2b.dev/sandbox/auto-resume.md) | November 19, 2026 |
| [E2B fork](https://docs.e2b.dev/sandbox/fork#create-multiple-forks) | November 20, 2026 |
| [E2B snapshots](https://docs.e2b.dev/sandbox/snapshots.md) | November 19, 2026 |
| [E2B templates](https://docs.e2b.dev/template/quickstart.md) | November 19, 2026 |
| [E2B SDKs](https://docs.e2b.dev/quickstart.md) | November 19, 2026 |
| [E2B interpreter contexts](https://docs.e2b.dev/code-interpreting/contexts.md) | November 19, 2026 |
| [E2B ACP](https://docs.e2b.dev/agents/acp.md) | November 19, 2026 |
| [E2B computer use](https://docs.e2b.dev/use-cases/computer-use.md) | November 19, 2026 |
| [E2B ingress access](https://docs.e2b.dev/network/restrict-public-access.md) | November 19, 2026 |
| [E2B internet access rules](https://docs.e2b.dev/network/internet-access) | November 19, 2026 |
| [E2B secrets injection](https://docs.e2b.dev/secrets/inject.md) | November 19, 2026 |
| [E2B regions](https://docs.e2b.dev/faq/egress-ip-ranges.md) | November 19, 2026 |
| [E2B BYOC](https://docs.e2b.dev/byoc) | November 19, 2026 |
| [E2B Embed](https://github.com/e2b-dev/runtime/tree/main/embed) | November 19, 2026 |
| [E2B security and compliance](https://docs.e2b.dev/faq/security-and-compliance.md) | November 19, 2026 |

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