E2B vs Sprites
On this page
The short version
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 | YesNo fixed limit. A task hold keeps it awake an hour at a time, renewable |
| Memory through a pause | YesA 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 | YesAny HTTP request to its URL |
| Copy a running machine with its processes | YesFork into up to 20 copies in one SDK call | NoCheckpoints save files only. A new Sprite gets copied files |
| Roll the disk back | Snapshots start a new sandbox from the saved state | YesRestore 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 | YesTemplates from a Docker image or a definition in code, including private registries | NoFly's Ubuntu 26.04. A boot command sets it up |
| Root and Docker | YesRoot, 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 | YesClaude, Codex, Gemini CLI and Cursor installed |
| Desktop for computer use | YesA 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 | Yes | Nosprites.app names only |
| Reach your other services privately | VPC peering when E2B runs in your cloud on Enterprise | YesJoin 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 | YesA spending limit in the console | NoNo spend limits or billing alerts |
| Region | Google Cloud US West by default. AWS US East and West, Europe and Southeast Asia through support | NoPlaced 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.
Related comparisons
See E2B alternatives, Sprites alternatives, E2B vs exe.dev, exe.dev vs Sprites and the best persistent VMs for coding agents.
- 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.
- AlternativesSprites alternatives for agent workspacesFly.io Sprites alternatives compared: what keeps running while idle, machine size and image, domains and ports, regions, and what one developer or a team pays.
- ComparisonE2B vs exe.devE2B 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.
- Comparisonexe.dev vs Spritesexe.dev and Fly.io Sprites for a persistent agent machine: always on in a $15 pool, or asleep until a request wakes it, and the hours where the price flips.
- RoundupBest persistent VMs for coding agentsLinux VMs a coding agent keeps for weeks, side by side: what keeps running, private previews, ports, regions and what one agent or a team of four pays.
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
- 1E2B pricing
- 2E2B billing and plans
- 3E2B sandbox sizes
- 4E2B sandbox price
- 5E2B persistence and pause
- 6E2B auto-pause
- 7E2B auto-resume
- 8E2B snapshots
- 9E2B forks
- 10E2B templates
- 11E2B private registries
- 12E2B Docker
- 13E2B SSH and root
- 14E2B code contexts
- 15E2B desktop
- 16E2B coding agents
- 17E2B webhooks
- 18E2B secrets
- 19E2B public URLs
- 20E2B private access
- 21E2B custom domains
- 22E2B internet access
- 23E2B workspaces and SSO
- 24E2B regions
- 25E2B BYOC
- 26E2B Embed
- 27E2B security and compliance
- 28Sprites pricing
- 29Sprites plans
- 30Sprites overview
- 31Fly free waiver
- 32Fly cost management
- 33Sprites lifecycle
- 34Sprites resources
- 35Sprites activity and task holds
- 36Sprites services
- 37Sprites checkpoints
- 38Sprites maintenance and images
- 39Sprites isolation
- 40Sprites working guide
- 41Sprites exec API
- 42Sprites Cursor cloud agents
- 43Sprites networking
- 44Sprites URL access
- 45Sprites Connectors
- 46Sprites private network
- 47Fly SSO
- 48Fly security questionnaire
- 49Where a Sprite runs
Spot an error? Email support@heaven.dev with the page, the claim and a source.