# E2B vs Sprites

URL: https://heaven.dev/compare/e2b-vs-sprites
Title: E2B vs Sprites - a sandbox your code controls or a workspace that sleeps
Description: E2B and Fly.io Sprites for agent work: sandboxes your code pauses and forks with memory, or workspaces that sleep, wake on a request and bill what they use.
Checked: November 20, 2026

Pick E2B when your product starts an agent's tasks from code and needs control: you decide when a sandbox pauses with its memory, fork it with its processes, build its image, size it and cap the spend. Pick Sprites for a workspace an agent comes back to all week: files and tools stay, it sleeps by itself after 30 seconds, an HTTP request wakes it, and you pay only for the CPU and memory it uses.

## E2B vs Sprites features

Both run each machine as a Linux microVM with its own kernel that keeps its disk while it waits, behind an HTTPS URL that is private by default. Both have SDKs, a CLI, an HTTP API, a browser terminal, credentials kept outside the machine, outbound allow lists, and SOC 2 with a BAA. The rows below are where they differ.

### Lifecycle

| | E2B | Sprites |
| --- | --- | --- |
| **Who decides when it sleeps** | Your code pauses, resumes or deletes it. With nothing set, the SDK deletes it after 10 minutes | Fly. After about 30 seconds without activity it sleeps warm, and later goes cold |
| **Longest continuous run** | 1 hour on Hobby, 24 on Pro. A pause and resume starts the clock again | ✓ No fixed limit. A task hold keeps it awake an hour at a time, renewable |
| **Memory through a pause** | ✓ A full pause keeps memory and processes, with no expiry | In warm sleep. A cold wake restarts services from the saved files, and Fly decides when it goes cold |
| **Wakes when a request arrives** | Opt-in auto-resume for traffic you configure | ✓ Any HTTP request to its URL |
| **Copy a running machine with its processes** | ✓ Fork into up to 20 copies in one SDK call | ✗ Checkpoints save files only. A new Sprite gets copied files |
| **Roll the disk back** | Snapshots start a new sandbox from the saved state | ✓ Restore a checkpoint in place, from your own or Fly's automatic history |

### The machine

| | E2B | Sprites |
| --- | --- | --- |
| **Size** | 2 vCPUs and 512 MiB by default on Hobby. Pro lists custom sizes up to 8 vCPUs and 8 GiB | 8 vCPUs on every Sprite. Fly sizes the memory and grows it under pressure |
| **Disk** | 10 GiB on Hobby, 20 GiB on Pro | Up to 100 GB |
| **Start from your own image** | ✓ Templates from a Docker image or a definition in code, including private registries | ✗ Fly's Ubuntu 26.04. A boot command sets it up |
| **Root and Docker** | ✓ Root, and a Docker template | sudo in a managed inner environment, and Docker that you set up |
| **Coding agents** | A package starts, prompts and streams supported coding agents | ✓ Claude, Codex, Gemini CLI and Cursor installed |
| **Desktop for computer use** | ✓ A desktop template with streaming and computer-use support | Through Cursor's cloud agents, which install a desktop |

### Serving and networking

| | E2B | Sprites |
| --- | --- | --- |
| **Ports on the web** | A URL for each port | One HTTP service. Other ports go through a local tunnel |
| **Who can open the app** | Callers with the sandbox's token or a signed URL, or everyone | Members of your Fly organization or its admins, or everyone |
| **Your own domain** | ✓ | ✗ sprites.app names only |
| **Reach your other services privately** | VPC peering when E2B runs in your cloud on Enterprise | ✓ Join your Fly organization's private network |

### Billing, teams and where it runs

| | E2B | Sprites |
| --- | --- | --- |
| **What you pay for** | CPU and memory allocated while it runs, by the second | CPU and memory used while awake, plus storage |
| **Cap the month's spend** | ✓ A spending limit in the console | ✗ No spend limits or billing alerts |
| **Region** | Google Cloud US West by default. AWS US East and West, Europe and Southeast Asia through support | ✗ Placed automatically near whoever creates it |

## Where E2B is better

E2B suits a product that runs agent tasks for its users and decides itself when each one stops, pauses or resumes.

- **You control the lifecycle.** Pause with memory, reconnect by ID and resume the same processes in about a second, as long as you like later.
- **Fork from memory.** Start up to 20 sandboxes from one running state, processes included, or keep a full snapshot to start more.
- **Your own image and size.** Build templates from a Docker image, and on Pro set up to 8 vCPUs and 8 GiB.
- **Controls a platform needs.** A spending limit, lifecycle webhooks, a code interpreter that keeps variables, regions in Google Cloud and AWS, and an open-source runtime, E2B Embed, that you can run on your own server.

## Where Sprites is better

Sprites suits a coding agent that returns to the same checkout every day and mostly waits in between.

- **A workspace that looks after itself.** Files and tools stay, sleep and wake need no lifecycle code, and a request to its URL wakes it in 100 to 500 ms from warm sleep.
- **No run limit.** Task holds keep a Sprite awake through a long job, renewable an hour at a time.
- **Pay for what's used.** CPU and memory bill only while the Sprite works, bandwidth isn't metered, and Fly waives a personal bill under $5 a month.
- **Ready for agents and Fly.** Claude, Codex, Gemini CLI and Cursor come installed, with 8 vCPUs and 100 GB of disk on every Sprite, checkpoints you restore in place, and a link to your Fly private network.

## Pricing

| Plan | Price | What you get |
| --- | --- | --- |
| **E2B Hobby** | $0 plus usage | 2 vCPUs and 512 MiB per sandbox, 10 at once, 1-hour runs, 10 GiB disk, $100 of credit once |
| **E2B Pro** | $150 a month plus usage | Custom sizes, 100 at once, 24-hour runs, 20 GiB disk |
| **Sprites pay as you go** | Usage only | $0.0385 a CPU-hour and $0.021875 a GB-hour of memory used, plus storage |
| **Sprites Adventurer** | $20 a month | 450 CPU-hours, 1,800 GB-hours of memory, 50 GB-months of storage, 20 active Sprites |
| **Sprites Veteran** | $50 a month | 800 CPU-hours, 3,200 GB-hours of memory, 100 GB-months of storage, 50 active Sprites |

E2B bills each allocated vCPU at $0.0504 an hour and memory at $0.0162 a GiB-hour. The work below: one agent workspace with 10 GB of files kept all month, at rates published on November 19 and 20, 2026. Each side runs it the way its customers do: the E2B sandbox pauses between sessions and the Sprite sleeps.

- **Awake 30 hours a month, averaging 1 vCPU and 512 MiB.** **$3.27** on E2B Hobby: 30 hours at the default size, $0.1089 an hour. **$1.91** on Sprites pay as you go: $1.16 of CPU, $0.35 of memory, $0.20 of storage while awake and $0.20 of cold storage, which Fly waives on a personal account with a card on file.
- **Awake 8 hours a weekday, averaging 1 vCPU and 2 GB.** **$164.57** on E2B, since sizes above the default are listed on Pro: $150 plus $14.57 for a 1 vCPU, 2 GiB sandbox. **$15.87** on Sprites pay as you go.

Sprites bills CPU used at $0.0385 an hour, and E2B bills each allocated vCPU at $0.0504 whether it's busy or not, so CPU-heavy work costs less on Sprites. E2B's memory rate is lower, $0.0162 a GiB-hour against $0.021875 a GB-hour, so a sandbox that fits the default size and holds its memory busy costs less on E2B.

## Frequently asked questions

### Can an E2B sandbox survive its timeout?

Yes, if you set the timeout to pause. With nothing set, the SDK deletes the sandbox after 10 minutes, and its files go with it.

### Does a sleeping Sprite keep its running processes?

Only in warm sleep. Fly decides when a Sprite goes cold, and a cold wake restarts its services from the saved files. Checkpoints save files, not memory.

### Can I choose where a Sprite runs?

No. Fly places it automatically near whoever creates it. E2B runs in Google Cloud US West by default, and support can enable AWS US East and West, Europe and Southeast Asia.

### Which costs less for an agent that works a few hours a week?

Sprites, if the work fits Fly's image. A light 30-hour month costs about $1.91 on Sprites and $3.27 on E2B Hobby. On E2B, a workspace that needs more than the default 512 MiB needs Pro at $150 a month.

## 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), [Sprites alternatives](https://heaven.dev/alternatives/sprites), [E2B vs exe.dev](https://heaven.dev/compare/e2b-vs-exe-dev), [exe.dev vs Sprites](https://heaven.dev/compare/exe-dev-vs-sprites) and [the best persistent VMs for coding agents](https://heaven.dev/compare/best-persistent-vms-for-coding-agents).

## 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 SSH and root](https://docs.e2b.dev/sandbox/ssh-access.md)
- [E2B code contexts](https://docs.e2b.dev/code-interpreting/contexts.md)
- [E2B desktop](https://docs.e2b.dev/template/examples/desktop.md)
- [E2B coding agents](https://docs.e2b.dev/agents/acp.md)
- [E2B webhooks](https://docs.e2b.dev/sandbox/lifecycle-events-webhooks.md)
- [E2B secrets](https://docs.e2b.dev/secrets/inject.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 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)
- [Sprites pricing](https://fly.io/pricing/)
- [Sprites plans](https://fly.io/changelog/new-sprites-plans/)
- [Sprites overview](https://fly.io/sprites/)
- [Fly free waiver](https://docs.fly.io/about/free-waiver)
- [Fly cost management](https://docs.fly.io/about/cost-management)
- [Sprites lifecycle](https://docs.fly.io/sprites/concepts/lifecycle#active-warm-cold)
- [Sprites resources](https://docs.fly.io/sprites/concepts/lifecycle#resources)
- [Sprites activity and task holds](https://fly.io/sprites/#faq)
- [Sprites services](https://docs.fly.io/sprites/concepts/services)
- [Sprites checkpoints](https://docs.fly.io/sprites/concepts/checkpoints)
- [Sprites maintenance and images](https://docs.fly.io/sprites/sprite-maintenance)
- [Sprites isolation](https://fly.io/blog/design-and-implementation/)
- [Sprites working guide](https://docs.fly.io/sprites/working-with-sprites)
- [Sprites exec API](https://docs.fly.io/sprites/api/exec/execute-command)
- [Sprites Cursor cloud agents](https://docs.fly.io/sprites/integrations/cursor-cloud-agents#computer-use)
- [Sprites networking](https://docs.fly.io/sprites/concepts/networking)
- [Sprites URL access](https://docs.fly.io/sprites/concepts/networking#url-authentication)
- [Sprites Connectors](https://docs.fly.io/sprites/concepts/connectors)
- [Sprites private network](https://fly.io/changelog/introducing-sprites-fly6pn-connect-your-sprite-to-your-fly/)
- [Fly SSO](https://docs.fly.io/security/sso)
- [Fly security questionnaire](https://fly.io/legal/security-questionnaire/)
- [Where a Sprite runs](https://community.fly.io/t/wheres-my-sprite-in-the-world/28621)

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