E2B vs GitHub Codespaces

E2B is a sandbox API for agents: Firecracker microVMs that start fast, pause with their memory and fork while running. GitHub Codespaces is a dev environment for people: a dev container per GitHub repository, opened in VS Code or the browser, that stops after 12 hours at most.

The companies and products

E2B

E2B calls itself the AI agent cloud: an API that gives each agent session its own isolated Linux machine.

Every E2B sandbox is a Firecracker microVM that boots from a snapshot, so it starts fast and can be paused and resumed with its memory. You build custom sandboxes from templates based on a Docker image, and drive them from Python or JavaScript SDKs. It is built for teams that run many short code, data or agent jobs. Its runtime is open source, and E2B Embed runs it on your own infrastructure.

GitHub Codespaces

GitHub Codespaces is GitHub's cloud development environment: a ready-to-code Linux machine for a repository, opened in the browser, VS Code or the GitHub CLI.

Codespaces is a different kind of product from boat: a dev environment for people who work on a GitHub repository, not a sandbox API for agents. Each codespace is a Docker container built from the repo's dev container config. It runs on its own newly built VM on Azure, with 2 to 32 cores. It is built for developers and teams who want every contributor to start from the same setup, with prebuilds, port forwarding and GitHub billing.

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “20th cheapest of 365” means 19 of the other 364 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadE2B: price rankGitHub Codespaces: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
A coding agent fits E2B through its API, with a pause and resume past 24 hours on Pro. A codespace stops after 12 hours at most. boat has /dev/kvm for emulators and no session cap once auto-stop is off on a paid plan.
20th cheapest of 365
$4,143 a month
290th of 365, with limits
$4,618 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
One E2B run stops at 24 hours on Pro; your code pauses and resumes it, and memory survives. A codespace stops after 12 hours at most, and its processes end. On boat, turn auto-stop off on a paid plan (default 1 hour).
82nd of 361, with limits
$5,348 a month
320th of 361, with limits
$6,970 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
E2B is built for short code runs that start fast and pause with their memory. A codespace builds a dev container on a new VM, which prebuilds speed up. On boat each start counts against the plan's start cap.
43rd cheapest of 336
$421 a month
283rd of 336, with limits
$619 a month
189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
E2B is made to hand sandboxes to your users through an API. Codespaces is tied to GitHub users and repos, and GitHub does not publish how many can run at once. boat runs 100 to 2,000 at once by plan.
33rd cheapest of 349
$2,354 a month
276th of 349, with limits
$1,964 a month
3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
E2B suits many short rollouts: it forks a running sandbox with its memory, and Pro allows 5 creates a second. Codespaces has no fork or snapshot API. A boat fork copies the disk only and counts as a start.
5th cheapest of 349
$9,384 a month
276th of 349, with limits
$9,489 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
87th cheapest of 359
$1,975 a month
295th of 359, with limits
$1,519 a month
10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
Android or VM builds need /dev/kvm. boat has it on every sandbox. E2B's docs list nested virtualization as not supported, and Codespaces does not document /dev/kvm.
338th of 374, with limits
$1,429 a month
317th of 374, with limits
$909 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Codespaces is a polished VS Code box per repo, and it stops after 12 hours at most. On E2B you pause and resume once a day. boat runs all month on one machine once auto-stop is off.
208th of 371, with limits
$358 a month
144th of 371, with limits
$270 a month
19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
E2B has a Linux desktop for computer use. Codespaces can add a basic noVNC desktop through the desktop-lite add-on, which you configure. boat streams its desktop at 60 fps and can be embedded in your app.
34th cheapest of 367
$1,342 a month
297th of 367, with limits
$1,367 a month
7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
126th of 356, with limits
$746 a month
306th of 356, with limits
$678 a month
7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
62nd cheapest of 343
$554 a month
324th of 343, with limits
$922 a month
6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
226th of 327, with limits
$9,223 a month
279th of 327, with limits
$18,637 a month
73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
17th cheapest of 351
$1,043 a month
284th of 351, with limits
$445 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureE2BGitHub Codespacesboat
What it isA sandbox API for agents, driven from Python or JavaScript SDKsA cloud dev environment for a GitHub repository, opened in VS Code, the browser or the CLIA sandbox API for agents with full VMs, an SDK and built-in coding agents
IsolationFirecracker microVM with its own kernel; shared vCPUsA Docker container on its own newly built VM, with its own virtual networkFull VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)11.08 runs/s, rank 7 of 15 (shared)Not in the public benchmarks we use28.06 runs/s, rank 2 of 15 (shared), on a Ryzen 9 9950X host
Session lengthOne run: up to 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clock12 hours at most even while in use, and 30 idle minutes by defaultNo cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days
Pause and resumePause saves memory and disk, or the filesystem only; resumes in about a second with processes runningFiles are kept on stop and storage is billed; processes end; a stopped codespace is deleted after 30 days by defaultDisk saved every minute and at each stop; resume is like a reboot; stopped disk kept at least 14 days, longer with a saved snapshot
ForkFork a running sandbox with its memory, up to 20 copies per callNo fork or snapshot endpoint; each codespace starts from a repo, branch or prebuildFork a running sandbox from its last 1-minute disk snapshot; saved snapshots as templates
Docker and nested virtualizationDocker inside; docs list nested-virtualization runtimes as not supportedDocker inside through a dev container feature, with sudo; /dev/kvm not documentedDocker, root, systemd and /dev/kvm on every machine
Desktop and computer useE2B Desktop sandbox with VNC streamingVS Code, JupyterLab and a terminal; a noVNC desktop through the desktop-lite add-on, which you configureBuilt-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents and an embeddable stream
Starting pointTemplates built from a Docker imageDev container config in the repo, with prebuilds built by GitHub Actionsboat's image or a saved snapshot, shareable by code; you cannot boot your own Docker image
Coding agentsTemplates and guides for many agents; you run the agent CLI through the command APIGitHub Copilot as a VS Code extension; other agents you install yourselfSeven harnesses installed, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets injected into outbound HTTPS headers, in private betaSecrets copied into the codespace as environment variablesOptional proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and custom HTTPS APIs
Inbound accessHTTPS URL per port, public by default unless you turn on a token; no public IP per sandboxA URL per forwarded port, private, organization or public; no public IPUp to 50 HTTPS URLs per sandbox, token-protected by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own
Outbound rulesAllow and deny lists by IP, CIDR or domainOpen internet; GitHub says there is no way to restrict itOpen internet; no provider-side allowlist
RegionsUS by default; EU and APAC enabled by supportUS East, US West, Europe West and Southeast AsiaGermany, Finland and France; you cannot pick one; no US or Asia region
Every feature Battleships tracks (43)
FeatureE2BGitHub Codespacesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNot publishedYes
RootYesYesYes
SystemdYesNot publishedYes
Desktop GUIYesWith your own setupYes
BrowserYesNo documented wayYes
Computer-use APIYesNo documented wayYes
SSHYesYesYes
Persistent diskYesYesYes
Pause/resumeYesYesYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)YesNo documented wayYes
Memory forkYesNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopYesYesNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesNo documented wayNo documented way
Secret proxyYesNo documented wayYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesNo documented wayYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingYesNo documented wayNo documented way
BYOCYesNo documented wayNo documented way
Open sourceYesNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesYesYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsNot publishedYesNo documented way
SSONo documented wayYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNo documented wayNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

E2B11.08 runs/s
GitHub CodespacesNot measured
boat28.06 runs/s

In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB did 28.06 runs/s on boat, second of 15, and 11.08 on E2B, rank 7 (shared). That is about 2.5x. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Providers ran on different hardware in different regions. GitHub Codespaces is not in the public benchmarks we use, so we cannot say how it compares.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. GitHub Codespaces is not in the public benchmarks we use, so we cannot say which is faster.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioE2B, a monthGitHub Codespaces, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$202 · Pro$51 · Personal account: GitHub Free$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$368 · Pro · with limits$270 · Personal account: GitHub Free · with limits$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$2,773 · Pro$3,019 · Personal account: GitHub Free$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$1,395 · Pro+ (600 concurrent)$850 · Personal account: GitHub Free · with limits$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$2,797 · Pro++ (1,100 concurrent)$1,889 · Personal account: GitHub Free · with limits$8,800 · $2000/mo · with limits

E2B: E2B bills $0.000014 per vCPU-second and $0.0000045 per GiB-second while a sandbox runs, idle included: $0.33 an hour for 4 vCPU / 8 GiB. A paused sandbox costs nothing. Hobby costs $0 with a one-time $100 credit. Pro costs $150 a month for higher limits, with no usage credit. Pro+ ($650) and Pro++ ($1,150) raise concurrency to 600 and 1,100 sandboxes.

GitHub Codespaces: Codespaces bills $0.09 per core-hour while a codespace is active, used or not, plus $0.07 per GB-month of storage while it exists, stopped too. There is no 4-core machine with 8 GB, so 4 vCPU jobs are priced on the 4-core 16 GB machine. Personal accounts get a free monthly quota, and organizations do not.

GitHub Codespaces: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. Unused time does not carry over. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge, and boat keeps its disk for at least 14 days. Saved snapshots above the included count and the optional AI credentials proxy still charge while sandboxes are stopped. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; create, fork and resume each count as one start, and an extra start costs $0.03 to $0.07. A card is required, also for the 7-day trial.

Limits in those scenarios

Neither E2B nor Codespaces fits the always-on scenario as-is: one E2B run stops at 24 hours on Pro and needs a daily pause, and a codespace stops at 12 hours and needs a restart. GitHub does not publish how many codespaces can run at once, so 300 user sandboxes and 1,000 short jobs are not confirmed there. E2B fits both on Pro+ and Pro++. E2B Pro includes 20 GiB of disk. boat's limits: auto-stop defaults to 1 hour, and each plan caps starts. For 1,000 short jobs at once, even the $2,000 plan needs paid extra starts and refuses starts above 270 a minute, so boat does not fit. boat has no US or Asia region.

ScenarioE2BGitHub Codespacesboat
One coding agent, workdays
  • disk beyond 20 GiB: price unknown
  • egress price not published
None for this scenarioNone for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • disk beyond 20 GiB: price unknown
  • egress price not published
  • Personal account: GitHub Free: sessions capped at 12 h
None for this scenario
50 agents in parallel
  • egress price not published
  • how many machines can run at once: limit not published, probably fine at 50 (the typical published limit is 50)
None for this scenario
Sandboxes for your users
  • egress price not published
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
None for this scenario
1,000 short jobs at once
  • egress price not published
  • bursts above 300 starts/min are queued (a burst of 333 takes ~2 min to start)
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use E2B when

your code creates many short sandboxes for agents or users, needs memory pause and forks, or must run in the US or APAC.

  • Built for agents you drive from code. Useful when your app creates sandboxes for agents or users: SDKs, templates and a high start rate, not an editor.
  • Memory pause, wake on request and memory forks. Useful for short jobs that sleep between requests: a paused sandbox comes back in about a second with processes running.
  • Outbound rules and self-hosting. E2B can limit which hosts a sandbox reaches, and E2B Embed runs its Apache-2.0 runtime on your own machines.

Use GitHub Codespaces when

your developers want a ready VS Code environment for a GitHub repository, opened from a branch or pull request.

  • Built into GitHub. Useful if your team lives on GitHub: open a codespace from any repo, branch or pull request with the dev container ready.
  • A full editor for people. Useful when humans do the work: VS Code in the browser or on your machine, JupyterLab and port forwarding.
  • Free hours for personal accounts. Useful for occasional personal work: a GitHub Free account includes 120 core-hours and 15 GB-month of storage each month.

Where boat fits

If you run coding agents that work for hours, E2B needs a pause past 24 hours and Codespaces stops at 12. E2B has no nested virtualization, and Codespaces does not document /dev/kvm. boat gives each agent a full VM with /dev/kvm and coding agents built in. It has no session cap once auto-stop is off on a paid plan (default 1 hour).

No session cap once auto-stop is off

One E2B run stops at 24 hours on Pro, and your code pauses and resumes it. A codespace stops at 12 hours even while in use, and its processes end. boat runs until you stop it once auto-stop is off. A boat resume is also like a reboot: memory and running programs are not kept.

A full VM with /dev/kvm and a desktop

E2B does not support nested virtualization and Codespaces does not document /dev/kvm, so Android emulators and microVMs are not a supported setup on either. Codespaces has no built-in desktop; a noVNC desktop is a dev container add-on you configure. boat has /dev/kvm, systemd, Docker and a 60 fps desktop.

Agents driven from outside

On Codespaces you start and watch each agent over SSH, and API keys sit in environment variables. E2B's secret injection is in private beta. boat installs seven agents with a prompt, steer and events API. Its optional paid proxy keeps supported providers' keys outside.

Use boat when your agents do real work for hours or days: full VMs with /dev/kvm, a desktop and HTTPS URLs, and built-in coding agents. Turn auto-stop off on a paid plan for long work (default 1 hour). Compare it one to one: boat vs E2B and boat vs GitHub Codespaces.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is E2B cheaper than GitHub Codespaces?

Not usually in our scenarios. One coding agent on workdays is $202 a month on E2B against $51 on Codespaces. 300 user sandboxes are $1,395 against $850, though Codespaces is not confirmed to run 300 at once. 50 agents in parallel are $2,773 on E2B against $3,019 on Codespaces. boat is $20, $200 and $317 for those three.

Which is faster, E2B or GitHub Codespaces?

Codespaces is not in the public benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, E2B did 11.08 V8 Web Tooling runs/s at 4 vCPU / 8 GB, and boat did 28.06 on a Ryzen 9 9950X host. For start time, E2B's median was 576 ms one at a time (ComputeSDK, 2026-08-07); a codespace builds a dev container on a new VM.

Can I run an AI agent 24/7 on E2B or Codespaces?

On E2B, yes, across pauses: one run stops after 24 hours on Pro, and pausing and resuming resets the clock and keeps memory. A codespace stops after 12 hours even while in use, plus 30 idle minutes by default, so it needs restarts. boat has no session cap once auto-stop is off on a paid plan.

Can E2B and Codespaces run Docker and Android emulators?

Both run Docker inside: E2B sandboxes have root, and Codespaces has Docker and sudo in the dev container. E2B does not support nested virtualization, and Codespaces does not document /dev/kvm. Every boat machine has Docker, systemd and /dev/kvm.

Can I run Claude Code in E2B or GitHub Codespaces?

Yes. E2B has templates and guides for Claude Code run through its command API. In Codespaces you install it yourself, with your key as an environment variable. boat installs Claude Code, Codex and others. With boat's paid credentials proxy on, the real keys of supported providers stay outside the sandbox.

Is boat SOC 2 compliant?

SOC 2 is in progress; there is no SOC 2 report today. We're open about where we stand: live status at status.ascii.dev and our data retention policy at docs.boat.dev/data-retention.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons