# E2B vs Fly.io Machines: prices, limits and features.

**Fly.io Machines lists the lower price for 2 vCPU and 4 GB: $0.092 / hour against $0.17 / hour.** Here is where they differ, from each one's own pages, plus a third option if neither fits.

## The short answer

E2B runs sandboxes for AI agents: Linux VMs started on demand from its SDKs. Fly.io Machines are Firecracker microVMs you start through a REST API, in many regions. Fly also sells Sprites, a sandbox for agents.

### Pick E2B if you want

- pause keeps memory: Yes, memory and running processes (Fly.io Machines: Yes, for Machines with 2 GB or less)
- fork and snapshots: Fork with memory and files; snapshots (Fly.io Machines: Clone copies the config; volume snapshots)
- self-host: A single-node runtime (Apache-2.0); BYOC on Enterprise, which Fly.io Machines's pages do not state
- SDK languages: JavaScript / TypeScript and Python (Fly.io Machines: None: a REST API and the flyctl CLI)

### Pick Fly.io Machines if you want

- a lower list price for 2 vCPU and 4 GB: $0.092 / hour against $0.17 / hour
- largest size: 16 CPUs (E2B: 8 vCPU)

### Or Groundbox if you want

- a lower list price than both: $0.08 / hour
- CI runners too: yes, on the same key and bill

Where E2B or Fly.io Machines is ahead of Groundbox: self-host, security report.

## Side by side

| Feature | E2B | Fly.io Machines | Groundbox |
| --- | --- | --- | --- |
| Price, 2 vCPU · 4 GB | [$0.17 / hour](https://e2b.dev/pricing) | [$0.092 / hour](https://fly.io/pricing/) | $0.08 / hour |
| Pause keeps memory | [Yes, memory and running processes](https://docs.e2b.dev/sandbox/persistence.md) | [Yes, for Machines with 2 GB or less](https://docs.fly.io/reference/suspend-resume) | Yes, memory and disk |
| CI runners too | [No: the pricing page lists sandboxes only](https://e2b.dev/pricing) | [No: the pricing page lists no CI runners](https://fly.io/pricing/) | Yes, on the same key and bill |
| Isolation | [Firecracker microVM](https://e2b.dev/) | [Firecracker microVM](https://docs.fly.io/reference/suspend-resume) | Firecracker VM |
| Fork and snapshots | [Fork with memory and files; snapshots](https://docs.e2b.dev/sandbox/fork.md) | [Clone copies the config; volume snapshots](https://docs.fly.io/machines/overview.md) | Fork a running sandbox; save points |
| Longest session | [24 hours on Pro, 1 hour on Hobby](https://docs.e2b.dev/sandbox.md) | Not published | 720 hours, renewable |
| Self-host | [A single-node runtime (Apache-2.0); BYOC on Enterprise](https://docs.e2b.dev/byoc.md) | Not published | No |
| GPUs | [Not offered](https://e2b.dev/pricing) | Not published | Not offered |
| Largest size | [8 vCPU](https://e2b.dev/pricing) | [16 CPUs](https://docs.fly.io/machines/guides-examples/machine-sizing) | 16 vCPU |
| SDK languages | [JavaScript / TypeScript and Python](https://docs.e2b.dev/) | [None: a REST API and the flyctl CLI](https://docs.fly.io/machines/) | TypeScript and Python |
| Security report | [SOC 2 Type II](https://e2b.dev/) | [SOC 2 Type 2](https://fly.io/legal/security-questionnaire/) | No SOC 2 report |
| Free to start | [A one-time $100 credit](https://e2b.dev/pricing) | [No plan fee; pay as you go](https://docs.fly.io/about/pricing) | $5 of usage, no card |
| Plans | [Hobby $0 with a one-time $100 credit; Pro $150 / month plus usage](https://e2b.dev/pricing) | [No plan fee; pay as you go](https://docs.fly.io/about/pricing) | Free: everything, with $5 of usage. $20 / month: $20 of usage included, then pay as you go |
| CPU | [$0.000014 per vCPU-second ($0.0504 per vCPU-hour)](https://e2b.dev/pricing) | [performance-2x with 4 GB: $0.0917 an hour in iad; other regions cost more or less](https://fly.io/pricing/) | $0.04 per vCPU-hour, a dedicated core |
| Memory | [$0.0000045 per GiB-second, billed apart from CPU](https://e2b.dev/pricing) | [$6 per GB-month past what the size includes](https://fly.io/pricing/) | Included, up to 4 GB per vCPU |
| Billing | Not published | [Per second while running](https://docs.fly.io/about/pricing) | Per second, no minimum |
| Sizes | [1 to 8 vCPU, 1 to 8 GiB](https://e2b.dev/pricing) | [1 to 16 CPUs, shared or performance](https://docs.fly.io/machines/guides-examples/machine-sizing) | 1 to 16 vCPU, up to 4 GB per vCPU |
| Sandboxes at once | [10 on Hobby, 100 on Pro](https://e2b.dev/pricing) | Not published | 20 once a card is on file |
| Egress controls | [Block all, or allow and deny lists by IP, CIDR or domain](https://docs.e2b.dev/sandbox/internet-access.md) | Not published | An allowlist of hosts per sandbox |

a rust mark means that side is ahead · each value links to its source · checked 2026-11-20

Each against Groundbox: [Groundbox vs E2B](https://groundbox.dev/compare/e2b) and [Groundbox vs Fly.io Machines](https://groundbox.dev/compare/fly-io). Every other comparison is on [/compare](https://groundbox.dev/compare).

## Sources

### E2B

- [E2B pricing](https://e2b.dev/pricing), checked 2026-11-20
- [E2B home page](https://e2b.dev/), checked 2026-11-19
- [E2B docs](https://docs.e2b.dev/), checked 2026-11-19
- [E2B docs: sandbox](https://docs.e2b.dev/sandbox.md), checked 2026-11-20
- [E2B docs: persistence](https://docs.e2b.dev/sandbox/persistence.md), checked 2026-11-20
- [E2B docs: fork](https://docs.e2b.dev/sandbox/fork.md), checked 2026-11-19
- [E2B docs: internet access](https://docs.e2b.dev/sandbox/internet-access.md), checked 2026-11-19
- [E2B docs: BYOC](https://docs.e2b.dev/byoc.md), checked 2026-11-19

### Fly.io Machines

- [Fly.io pricing](https://fly.io/pricing/), checked 2026-11-20
- [Fly.io docs: pricing](https://docs.fly.io/about/pricing), checked 2026-11-19
- [Fly.io docs: Machine sizing](https://docs.fly.io/machines/guides-examples/machine-sizing), checked 2026-11-19
- [Fly.io docs: Machines API](https://docs.fly.io/machines/api/machines-resource), checked 2026-11-19
- [Fly.io docs: suspend and resume](https://docs.fly.io/reference/suspend-resume), checked 2026-11-19
- [Fly.io docs: Machines overview](https://docs.fly.io/machines/overview.md), checked 2026-11-19
- [Fly.io docs: Machines](https://docs.fly.io/machines/), checked 2026-11-19
- [Fly.io security questionnaire](https://fly.io/legal/security-questionnaire/), checked 2026-11-19
- [Fly.io Sprites](https://fly.io/sprites.md)
- [Fly.io Sprites pricing](https://fly.io/pricing.md), checked 2026-11-19

## Try the third option free.

[Start free, no card](https://groundbox.dev/signup)[Groundbox vs E2B](https://groundbox.dev/compare/e2b)
