# E2B vs exe.dev

URL: https://heaven.dev/compare/e2b-vs-exe-dev
Title: E2B vs exe.dev - a sandbox per job or a VM for the agent
Description: E2B and exe.dev for agents: per-second sandboxes that pause and fork with memory, or persistent VMs with SSH, sign-in and no time limit in a $15 pool.
Checked: November 20, 2026

E2B runs each job in its own sandbox from an SDK and bills only the seconds it runs. Sandboxes pause with their memory for free, fork with their processes, and come with a code interpreter, so E2B suits an app that runs code for its users. exe.dev gives an agent a Linux VM it keeps for weeks, over SSH and at a fixed HTTPS address with sign-in, with no time limit, for a flat $15 a month that several VMs share. Pick E2B for short or occasional jobs. Pick exe.dev for an agent that works on the same code every day.

## E2B vs exe.dev features

Both run each machine as a VM with its own kernel and root, start from your own Docker image, including from a private registry, and give you Docker, a browser terminal, HTTPS URLs on your own domain, Python and TypeScript SDKs, an HTTP API and a CLI. Both keep API credentials outside the machine and offer SSO for teams. The rows below are where they differ.

### The machine

| | E2B | exe.dev |
| --- | --- | --- |
| **How CPU and memory are shared** | Each sandbox has its own size, billed by the second while it runs | VMs share a pool. A busy one uses what idle ones leave free |
| **Size** | 2 vCPUs and 512 MiB by default on Hobby. Pro lists custom sizes up to 8 vCPUs and 8 GiB | Personal pools from 2 vCPUs and 4 GiB to 16 and 32, and Work pools up to 512 vCPUs with approval |
| **Disk** | 10 GiB a sandbox on Hobby, 20 on Pro | 100 GB per 2 vCPUs of plan, shared by the VMs, then $0.08 a GiB-month |
| **Coding agents** | A package starts, prompts and streams supported coding agents in a sandbox | ✓ Claude Code, Codex, Pi and exe.dev's Shelley in the default image |

### Lifecycle

| | E2B | exe.dev |
| --- | --- | --- |
| **Longest continuous run** | 1 hour on Hobby, 24 on Pro. A pause and resume starts the clock again | ✓ No limit |
| **When you set nothing** | A sandbox made with the SDK is deleted after 10 minutes, unless you extend it or turn on auto-pause | ✓ The VM keeps running |
| **Pause with memory** | ✓ Kept with no expiry and no compute bill | ✓ And the paused VM's CPU and memory go back to the pool |
| **Wakes when a request arrives** | Opt-in auto-resume for traffic you configure | Not needed while it runs. A paused VM resumes by command |
| **Copy a running machine with its processes** | ✓ Fork into up to 20 copies in one SDK call | ✗ Copies take the disk. Only the same VM resumes its processes |
| **Start from a saved state** | ✓ A template, or a full snapshot with memory | A Docker image, or a copy of a prepared VM's disk |

### Code and agents

| | E2B | exe.dev |
| --- | --- | --- |
| **Run code and keep its state between calls** | ✓ The Code Interpreter SDK keeps variables and returns charts and tables | ✗ Each run is a new process |
| **Desktop for computer use** | ✓ A desktop template with streaming and computer-use support | A recipe sets up an Xfce desktop and Chrome you open in a browser |

### Serving and networking

| | E2B | exe.dev |
| --- | --- | --- |
| **SSH** | Build a template with an SSH server and connect through a WebSocket proxy | ✓ Built in, with a named address |
| **Who can open the app** | Callers with the sandbox's token or a signed URL, or everyone | People you share it with by email or link, after sign-in. Website access is separate from shell access |
| **Limit what the machine can reach** | ✓ Allow and deny lists of IP ranges, and allowed hostnames | ✓ An integrations-only mode allows only the services you attach |

### Where it runs

| | E2B | exe.dev |
| --- | --- | --- |
| **Region** | Google Cloud US West by default. AWS US East and West, Europe and Southeast Asia through support | ✓ 8 regions in the US, Europe and Asia-Pacific, chosen for the account or for each Work pool |
| **Run it yourself** | ✓ E2B Embed, open source under Apache 2.0, on one Linux server. Enterprise runs in your AWS, Google Cloud or Azure account | Enterprise runs exe.dev-operated hosts in your cloud or on dedicated hardware |

## Where E2B is better

E2B suits an app that grades, tests or runs code for each request. Every job gets its own sandbox, and you pay only for the seconds it runs.

- **Memory you can keep and copy.** Pause a sandbox with its memory for free, for as long as you like, resume it in about a second, or fork a running one into 20 copies with its processes.
- **A code interpreter** that keeps variables between calls and returns charts and tables as structured results, plus a desktop for computer use.
- **Cheap occasional jobs.** 120 half-hour jobs cost about $6.53 a month on Hobby, and $100 of credit covers the first 900 hours.
- **Built to sit behind a product.** Lifecycle webhooks, a spending limit, SOC 2 with a BAA on request, outbound allow lists, and an open-source runtime you can run yourself.

## Where exe.dev is better

exe.dev suits an agent that spends a week on one branch. The checkout and test server stay on the VM, the agent returns over SSH, and a teammate signs in to the preview every morning.

- **No session limit.** The VM keeps running after you disconnect, and no timer stops or deletes it.
- **4 GiB for $15**, shared by up to 50 VMs, with 100 GB of disk.
- **SSH and a named HTTPS address** that stay the same day after day, with sign-in in front, sharing by email and an address for mail.
- **A region you choose** across the US, Europe and Asia-Pacific, and a hosted MCP server for agents that manage their own VMs.

## Pricing

| Plan | Price | What you get |
| --- | --- | --- |
| **E2B Hobby** | $0 plus usage | Default sandbox of 2 vCPUs and 512 MiB, 10 at once, 1-hour runs, $100 of credit once |
| **E2B Pro** | $150 a month plus usage | Custom sizes, 100 sandboxes at once, 24-hour runs |
| **exe.dev Personal** | $15 a month | 2 vCPUs and 4 GiB shared by up to 50 VMs, 100 GB of disk |
| **exe.dev Work** | $75 a month per team, $37.50 for a new team's first three months | 2 vCPUs and 4 GiB to start, any number of members and pools |
| **exe.dev standalone VMs** | $0.105 an hour for each 2 vCPUs and 4 GiB, by the second | VMs outside the pool, on top of a plan, that stop billing compute while stopped |

E2B charges $0.0504 a vCPU-hour and $0.0162 a GiB-hour, so its default sandbox costs about $0.11 an hour and one with 2 vCPUs and 4 GiB about $0.17. The work below: an agent's jobs, at rates published on November 19 and 20, 2026.

- **120 half-hour jobs a month at E2B's default size.** **$6.53** on E2B Hobby and **$15** on exe.dev Personal. E2B costs less up to about 138 job-hours a month. Above that, exe.dev does.
- **The same jobs needing 4 GiB.** **$159.94** on E2B, since sizes above the default are listed on Pro: $150 plus $9.94. **$15** on exe.dev.
- **An agent at work 8 hours a weekday with 2 vCPUs and 4 GiB, paused overnight.** **$179.15** on E2B Pro: $150 plus $29.15. **$15** on exe.dev, which doesn't need the pause.

On exe.dev, jobs that run at the same time share the pool's 2 vCPUs and 4 GiB, while each E2B sandbox has its own. Two jobs at full speed at once need exe.dev's $35 size, or standalone VMs.

## Frequently asked questions

### Can E2B keep a sandbox overnight?

Yes, paused. A full pause keeps files, memory and processes with no expiry and no compute bill. Running time is capped at 1 hour on Hobby and 24 hours on Pro, and resuming starts the clock again.

### Does an exe.dev VM stop when I close SSH?

No. A pooled VM keeps running in the background until you stop or pause it.

### Can I SSH into an E2B sandbox?

Yes, with setup: build a template that runs an SSH server, then connect through E2B's WebSocket proxy. exe.dev has SSH built in.

### Which costs less for my jobs?

E2B, below about 138 hours a month at its default size. exe.dev above that, or as soon as jobs need more memory than E2B's default, which E2B lists on Pro at $150 a month plus usage.

## Also consider Heaven

Heaven, which we make, is cloud infrastructure for software factories. Each agent or app gets a Computer: a full Linux VM with root that keeps running with nobody connected, and a team's Computers share one pool of CPU, memory and storage. Every Computer comes with an HTTPS website with sign-in in front, share links, custom domains, public TCP ports, email, snapshots and hourly off-site backups, and integrations keep GitHub and API credentials outside the machine. Plans start at $20 a month for 2 vCPUs and 8 GiB, with any number of members. See [pricing](https://heaven.dev/pricing).

## Related comparisons

See [E2B alternatives](https://heaven.dev/alternatives/e2b), [exe.dev alternatives](https://heaven.dev/alternatives/exe-dev), [E2B vs Daytona](https://heaven.dev/compare/e2b-vs-daytona), [Daytona vs exe.dev](https://heaven.dev/compare/daytona-vs-exe-dev), [E2B vs Sprites](https://heaven.dev/compare/e2b-vs-sprites) and [boat vs exe.dev](https://heaven.dev/compare/boat-vs-exe-dev).

## Sources and corrections

- [E2B pricing](https://e2b.dev/pricing)
- [E2B billing and plans](https://docs.e2b.dev/billing.md)
- [E2B sandbox sizes](https://docs.e2b.dev/billing.md#customizing-compute-resources)
- [E2B sandbox price](https://docs.e2b.dev/faq/calculate-sandbox-price.md)
- [E2B persistence and pause](https://docs.e2b.dev/sandbox/persistence.md)
- [E2B auto-pause](https://docs.e2b.dev/sandbox/persistence#auto-pause)
- [E2B auto-resume](https://docs.e2b.dev/sandbox/auto-resume.md)
- [E2B snapshots](https://docs.e2b.dev/sandbox/snapshots.md)
- [E2B forks](https://docs.e2b.dev/sandbox/fork#create-multiple-forks)
- [E2B templates](https://docs.e2b.dev/template/quickstart.md)
- [E2B private registries](https://docs.e2b.dev/template/private-registries.md)
- [E2B Docker](https://docs.e2b.dev/template/examples/docker.md)
- [E2B code contexts](https://docs.e2b.dev/code-interpreting/contexts.md)
- [E2B desktop](https://docs.e2b.dev/template/examples/desktop.md)
- [E2B computer use](https://docs.e2b.dev/use-cases/computer-use.md)
- [E2B coding agents](https://docs.e2b.dev/agents/acp.md)
- [E2B MCP gateway](https://docs.e2b.dev/mcp-gateway/quickstart.md)
- [E2B webhooks](https://docs.e2b.dev/sandbox/lifecycle-events-webhooks.md)
- [E2B secrets](https://docs.e2b.dev/secrets/inject.md)
- [E2B SSH](https://docs.e2b.dev/sandbox/ssh-access.md)
- [E2B public URLs](https://docs.e2b.dev/network/public-url.md)
- [E2B private access](https://docs.e2b.dev/network/restrict-public-access.md)
- [E2B custom domains](https://docs.e2b.dev/network/custom-domain.md)
- [E2B internet access](https://docs.e2b.dev/network/internet-access.md#allow-and-deny-lists)
- [E2B workspaces and SSO](https://docs.e2b.dev/workspaces.md)
- [E2B regions](https://docs.e2b.dev/faq/egress-ip-ranges.md)
- [E2B EU region](https://docs.e2b.dev/faq/eu-region.md)
- [E2B BYOC](https://docs.e2b.dev/byoc.md)
- [E2B Embed](https://github.com/e2b-dev/runtime/tree/main/embed)
- [E2B security and compliance](https://docs.e2b.dev/faq/security-and-compliance.md)
- [exe.dev Personal](https://exe.dev/docs/billing/personal)
- [exe.dev Work](https://exe.dev/docs/billing/work)
- [exe.dev plan comparison](https://exe.dev/pricing/compare)
- [exe.dev pools](https://exe.dev/docs/pools)
- [exe.dev standalone VMs](https://exe.dev/docs/standalone-vms#pricing)
- [exe.dev background work](https://exe.dev/docs/serverful)
- [exe.dev pause and copy](https://exe.dev/deploy/typescript-sandboxes#copy-pause-and-resize)
- [exe.dev Python SDK](https://exe.dev/deploy/python-sandboxes#faq)
- [exe.dev architecture](https://exe.dev/docs/faq/how-exedev-works)
- [exe.dev images](https://exe.dev/docs/customization)
- [exe.dev private images](https://exe.dev/docs/private-image)
- [exe.dev preinstalled agents](https://exe.dev/deploy/agents)
- [exe.dev Linux desktop](https://exe.dev/deploy/linux-desktop)
- [exe.dev MCP](https://exe.dev/docs/mcp)
- [exe.dev GitHub integration](https://exe.dev/docs/integrations-github)
- [exe.dev integrations catalog](https://exe.dev/docs/integrations-catalog)
- [exe.dev internet access](https://exe.dev/docs/internet-access)
- [exe.dev custom domains](https://exe.dev/docs/cnames)
- [exe.dev sharing](https://exe.dev/docs/sharing)
- [exe.dev email](https://exe.dev/docs/receive-email)
- [exe.dev SSO](https://exe.dev/docs/teams/sso#oidc-okta-azure-ad-etc)
- [exe.dev regions](https://exe.dev/docs/regions)
- [exe.dev Enterprise](https://exe.dev/docs/enterprise)

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