Skip to content

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 stateHeavenE2B
Longest uninterrupted runYesNo limit: runs until you stop it1 hour on Hobby, 24 hours on Pro. Resuming starts the clock again
Default lifetimeUntil you stop or delete it10 minutes, then deleted unless you extend it or turn on auto-pause
Freeze it with memory and processesYesPause, until you resumeYesPause, kept with no expiry. Resumes in about 1 second
Copy a running machineYesDisk copy that boots freshYesFork with memory and processes, up to 20 copies a call
Roll back the same machineYesDisk snapshots, plus hourly off-site backupsNoA snapshot starts a new sandbox
Cost and limitsHeavenE2B
How you pay$20 a month holds 2 shared vCPUs, 8 GiB and 100 GB for all your ComputersPer second while running: about $0.11 an hour at the default 2 vCPUs and 512 MiB
Idle timeBilled like busy timeBilled while running. Paused sandboxes cost nothing for compute
Machines at onceAs many as fit the pool's CPU, memory and storage10 on Hobby, 100 on Pro, up to 1,100 with add-ons
Largest machineUp to the pool's size: 8 GiB on Tiny, 1,024 GiB on the largest plan2 vCPUs and 512 MiB on Hobby. Up to 8 vCPUs and 8 GiB on Pro
DiskShares the pool's storage: 100 GB on Tiny10 GiB a sandbox on Hobby, 20 GiB on Pro
To startNoNo free tier. First month half priceYes$100 of credit once, no card
Where it runsMontreal only5 regions. US West by default, the rest on request
Run it in your own cloudNoYesOpen-source single-node version. BYOC on Enterprise
Building on itHeavenE2B
What each machine isA full Linux VM with root and nested virtualization, from Heaven's Ubuntu image or yoursA Firecracker microVM with root, from a template you build from a Dockerfile or code
Code interpreter that keeps variablesNoRun your own Jupyter kernelYesReturns charts and tables as data
Hand a task to a coding agentClaude Code, Codex, OpenCode and Pi installed. You run themYesACP starts the agent and streams its session to your app
Computer-use agentsA browser desktop for people. No API for clicks or screenshotsYesDesktop template with screenshot and input APIs
Serving and networkingHeavenE2B
Who can open the appPrivate until shared: people you choose, your organization, a share link or everyonePrivate on new projects behind an access token or signed URL, or public
The app knows who's visitingYesHeaven signs visitors in and passes their identity in headersNoYour app handles sign-in
Public TCP portsYesIncluded, on a shared address or a dedicated IPv4NoHTTP and WebSocket only
Limit where code can connectNoNo allowlist, only a cap on egress spendYesIP, CIDR and hostname rules
API keys kept out of the machineYesGitHub and HTTPS integrationsYesSecrets 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

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
Heaven Small$40 a month4 shared vCPUs, 16 GiB, 250 GB and 1,000 GB of egress
E2B Hobby$0 plus usage, $100 of credit onceThe default 2 vCPU, 512 MiB sandbox, 10 at once, runs up to 1 hour, 10 GiB of disk
E2B Pro$150 a month plus usageSizes 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.

See E2B alternatives, E2B vs Daytona and E2B 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 poolsNovember 21, 2026
8Heaven snapshots and copiesNovember 21, 2026
9Heaven backupsNovember 21, 2026
10Heaven website accessNovember 21, 2026
11Heaven signed-in visitorsNovember 21, 2026
12Heaven public portsNovember 21, 2026
13Heaven static addressesNovember 21, 2026
14Heaven egress capNovember 21, 2026
15Heaven integrationsNovember 21, 2026
16Heaven HTTP APINovember 21, 2026
17Heaven desktopNovember 21, 2026
18E2B pricingNovember 20, 2026
19E2B plans and limitsNovember 19, 2026
20E2B auto-pause and persistenceNovember 19, 2026
21E2B auto-resumeNovember 19, 2026
22E2B forkNovember 20, 2026
23E2B snapshotsNovember 19, 2026
24E2B templatesNovember 19, 2026
25E2B SDKsNovember 19, 2026
26E2B interpreter contextsNovember 19, 2026
27E2B ACPNovember 19, 2026
28E2B computer useNovember 19, 2026
29E2B ingress accessNovember 19, 2026
30E2B internet access rulesNovember 19, 2026
31E2B secrets injectionNovember 19, 2026
32E2B regionsNovember 19, 2026
33E2B BYOCNovember 19, 2026
34E2B EmbedNovember 19, 2026
35E2B security and complianceNovember 19, 2026

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