Skip to content

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

E2BSprites
Who decides when it sleepsYour code pauses, resumes or deletes it. With nothing set, the SDK deletes it after 10 minutesFly. After about 30 seconds without activity it sleeps warm, and later goes cold
Longest continuous run1 hour on Hobby, 24 on Pro. A pause and resume starts the clock againYesNo fixed limit. A task hold keeps it awake an hour at a time, renewable
Memory through a pauseYesA full pause keeps memory and processes, with no expiryIn warm sleep. A cold wake restarts services from the saved files, and Fly decides when it goes cold
Wakes when a request arrivesOpt-in auto-resume for traffic you configureYesAny HTTP request to its URL
Copy a running machine with its processesYesFork into up to 20 copies in one SDK callNoCheckpoints save files only. A new Sprite gets copied files
Roll the disk backSnapshots start a new sandbox from the saved stateYesRestore a checkpoint in place, from your own or Fly's automatic history

The machine

E2BSprites
Size2 vCPUs and 512 MiB by default on Hobby. Pro lists custom sizes up to 8 vCPUs and 8 GiB8 vCPUs on every Sprite. Fly sizes the memory and grows it under pressure
Disk10 GiB on Hobby, 20 GiB on ProUp to 100 GB
Start from your own imageYesTemplates from a Docker image or a definition in code, including private registriesNoFly's Ubuntu 26.04. A boot command sets it up
Root and DockerYesRoot, and a Docker templatesudo in a managed inner environment, and Docker that you set up
Coding agentsA package starts, prompts and streams supported coding agentsYesClaude, Codex, Gemini CLI and Cursor installed
Desktop for computer useYesA desktop template with streaming and computer-use supportThrough Cursor's cloud agents, which install a desktop

Serving and networking

E2BSprites
Ports on the webA URL for each portOne HTTP service. Other ports go through a local tunnel
Who can open the appCallers with the sandbox's token or a signed URL, or everyoneMembers of your Fly organization or its admins, or everyone
Your own domainYesNosprites.app names only
Reach your other services privatelyVPC peering when E2B runs in your cloud on EnterpriseYesJoin your Fly organization's private network

Billing, teams and where it runs

E2BSprites
What you pay forCPU and memory allocated while it runs, by the secondCPU and memory used while awake, plus storage
Cap the month's spendYesA spending limit in the consoleNoNo spend limits or billing alerts
RegionGoogle Cloud US West by default. AWS US East and West, Europe and Southeast Asia through supportNoPlaced 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

PlanPriceWhat you get
E2B Hobby$0 plus usage2 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 usageCustom sizes, 100 at once, 24-hour runs, 20 GiB disk
Sprites pay as you goUsage only$0.0385 a CPU-hour and $0.021875 a GB-hour of memory used, plus storage
Sprites Adventurer$20 a month450 CPU-hours, 1,800 GB-hours of memory, 50 GB-months of storage, 20 active Sprites
Sprites Veteran$50 a month800 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.

See E2B alternatives, Sprites alternatives, E2B vs exe.dev, exe.dev vs Sprites and the best persistent VMs for coding agents.

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

  1. 1E2B pricing
  2. 2E2B billing and plans
  3. 3E2B sandbox sizes
  4. 4E2B sandbox price
  5. 5E2B persistence and pause
  6. 6E2B auto-pause
  7. 7E2B auto-resume
  8. 8E2B snapshots
  9. 9E2B forks
  10. 10E2B templates
  11. 11E2B private registries
  12. 12E2B Docker
  13. 13E2B SSH and root
  14. 14E2B code contexts
  15. 15E2B desktop
  16. 16E2B coding agents
  17. 17E2B webhooks
  18. 18E2B secrets
  19. 19E2B public URLs
  20. 20E2B private access
  21. 21E2B custom domains
  22. 22E2B internet access
  23. 23E2B workspaces and SSO
  24. 24E2B regions
  25. 25E2B BYOC
  26. 26E2B Embed
  27. 27E2B security and compliance
  28. 28Sprites pricing
  29. 29Sprites plans
  30. 30Sprites overview
  31. 31Fly free waiver
  32. 32Fly cost management
  33. 33Sprites lifecycle
  34. 34Sprites resources
  35. 35Sprites activity and task holds
  36. 36Sprites services
  37. 37Sprites checkpoints
  38. 38Sprites maintenance and images
  39. 39Sprites isolation
  40. 40Sprites working guide
  41. 41Sprites exec API
  42. 42Sprites Cursor cloud agents
  43. 43Sprites networking
  44. 44Sprites URL access
  45. 45Sprites Connectors
  46. 46Sprites private network
  47. 47Fly SSO
  48. 48Fly security questionnaire
  49. 49Where a Sprite runs

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