E2B vs AWS AgentCore
E2B is a sandbox API: each agent gets a Firecracker microVM that can pause with its memory and serve a URL per port. AWS AgentCore is an agent platform on AWS, with 2 vCPU microVM sessions, an Instances type on EC2 in your account, managed Code Interpreter and Browser tools, and IAM and VPC controls.
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.
- Isolation
- Firecracker microVM per sandbox
- Open source and self-hosting
- Runtime under Apache-2.0; E2B Embed runs it with Docker Compose, Terraform or Kubernetes
- Bring your own cloud
- Enterprise data plane in your AWS, GCP or Azure account
- Compliance
- SOC 2 Type II; HIPAA BAA on request
AWS AgentCore
Amazon Bedrock AgentCore is a set of AWS services to deploy and run AI agents: a Runtime that hosts your agent code, plus built-in Code Interpreter and Browser tools.
AgentCore is not a sandbox product first. It is a hyperscaler's agent platform: you push a container image or code, and each Runtime session gets its own Firecracker microVM. You reach a session through AgentCore APIs, an interactive shell API and authenticated HTTPS session endpoints. Around it sit managed tools (Code Interpreter, Browser) and services for memory, identity, gateways and evaluations. An Instances compute type runs longer sessions on EC2 in your own account. It is built for teams who already build on AWS and want agents to stay inside their account, IAM and VPC.
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 workload | E2B: price rank | AWS AgentCore: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month E2B fits a coding agent with 4 vCPU and a disk it keeps. An AgentCore microVM session stops at 2 vCPU and 8 hours and keeps only files under /mnt mounts, so it is a compromise. boat ranks 5th here. | 20th cheapest of 365 $4,143 a month | 132nd of 365, with limits $888 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Both are a compromise for an assistant that runs all month: E2B Pro stops one run at 24 hours, and AgentCore needs the Instances type, up to 14 days per session. boat fits with auto-stop off on a paid plan. | 82nd of 361, with limits $5,348 a month | 109th of 361, with limits $1,300 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 Both fit short code runs. AgentCore Code Interpreter ranks 11th at $114 a month, because it bills CPU actually used; E2B ranks 43rd at $421 and pauses with memory. | 43rd cheapest of 336 $421 a month | 11th cheapest of 336 $114 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 fits sandboxes for your users with a URL per port and wake on request. AgentCore session endpoints reach app ports, but each request needs an AWS signature or an OAuth token, so it is a compromise here. | 33rd cheapest of 349 $2,354 a month | 205th of 349, with limits $506 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 ranks 5th: its memory forks and high start rate suit many short rollouts from one state. AgentCore has no session snapshot or fork, so it is a compromise. | 5th cheapest of 349 $9,384 a month | 129th of 349, with limits $8,075 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 | 46th cheapest of 359 $650 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 AgentCore fits CI and ranks 51st on its meter for CPU actually used. E2B is a compromise: it bills idle time and its docs list nested virtualization as not supported. boat ranks 2nd with /dev/kvm. | 338th of 374, with limits $1,429 a month | 51st cheapest of 374 $399 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB | 208th of 371, with limits $358 a month | 242nd of 371, with limits $52 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 fits with a Linux desktop for computer use. AgentCore Browser drives a browser window, not a whole desktop, so it is a compromise. boat streams a full desktop at 60 fps. | 34th cheapest of 367 $1,342 a month | 146th of 367, with limits $202 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 AgentCore ranks 4th: its Browser is a managed Chromium with live view and session replay. E2B is a compromise here, and boat ranks 7th with Chrome on a full VM you control. | 126th of 356, with limits $746 a month | 4th cheapest of 356 $144 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 | 32nd cheapest of 343 $287 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 | 164th of 327, with limits $5,458 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 | 108th of 351, with limits $294 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 requirement | Not ranked: misses a requirement | Not 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | E2B | AWS AgentCore | boat |
|---|---|---|---|
| What it is | A sandbox API: each agent session gets its own Linux machine | An AWS agent platform: hosted agent sessions plus managed Code Interpreter and Browser tools | A sandbox platform: each agent gets its own full Linux machine |
| Isolation | Firecracker microVM with its own kernel | Firecracker microVM per Runtime session; Code Interpreter and Browser in a containerized environment | Full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); 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 this run | 28.06 runs/s, second of 15 (shared rank 2), on a Ryzen 9 9950X host |
| Biggest machine | Up to 8 vCPU / 8 GiB self-serve, more on request | 2 vCPU / 8 GB per microVM session, not adjustable; on Instances, the EC2 type you pick sets the size | Up to 16 vCPU / 32 GB on the $100 plan and above |
| Session length | One run: up to 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clock | Up to 8 hours per lifecycle on microVMs, 15 idle minutes by default; up to 14 days on Instances | No cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days |
| What survives a stop | Memory and disk when paused; resume takes about 1 second with processes running | Mounts under /mnt: a 1 GB per-session storage mount (preview), your own EFS or S3 Files mounts in a VPC, or EBS volumes on Instances; the rest resets | The disk, saved every minute and at each stop, kept at least 14 days; resume is like a reboot |
| Fork | Fork a running sandbox with its memory, up to 20 copies per call | No session snapshot or fork; on Instances you can seed new EBS volumes from your own EBS snapshots | Fork a running sandbox from its last 1-minute disk snapshot |
| Docker, systemd and /dev/kvm | Docker and root; docs list nested-virtualization runtimes as not supported | Root inside the microVM; your own container image; Docker and /dev/kvm not documented | Root, Docker, systemd and /dev/kvm for Android emulators and VMs |
| Inbound access | HTTPS URL per port, public by default unless you turn on a token; no public IP per sandbox | Authenticated HTTPS session endpoint for ports 8000-12000 (IAM or OAuth on each request); interactive shell API; no SSH or public links | Up to 50 HTTPS URLs, token-gated by default or public; SSH; public IPv6; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Network controls | Allow and deny lists by IP, CIDR or domain | VPC mode with security groups, PrivateLink and a NAT gateway for a fixed outbound IP | Open internet; no provider-side allowlist, so you set firewall rules inside the VM |
| Browser and desktop | E2B Desktop sandbox with VNC streaming | Managed Chromium with live view, session recording and replay; no desktop beyond the browser window | Full Linux desktop and Chrome at 1920x1080 and 60 fps, with computer-use tools |
| Coding agents | Templates and guides for many agents; you run them through the command API | AWS's own managed harness built on Strands Agents, or your own agent code | Seven harnesses installed, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets injected into outbound HTTPS headers (private beta) | AgentCore Identity stores OAuth tokens and API keys and hands them to your agent code | Optional AI credentials proxy ($1 a day while on, plus $1 per 1,000 requests) for supported model providers and HTTPS APIs you register |
| Regions, GPUs and self-hosting | US by default, EU and APAC enabled by support; no GPUs; open-source runtime, and your own cloud on Enterprise | 21 commercial AWS regions plus GovCloud (Instances in 9); GPUs on Instances; runs on AWS | Germany, Finland and France; no US or Asia region; no GPUs; no self-hosting |
Every feature Battleships tracks (43)
| Feature | E2B | AWS AgentCore | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Yes | No documented way | Yes |
| Desktop GUI | Yes | No documented way | Yes |
| Browser | Yes | Yes | Yes |
| Computer-use API | Yes | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | Yes | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | Yes | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | No documented way | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | No documented way | Yes |
| Secret proxy for any API | Yes | No documented way | Yes |
| Preinstalled agents | Yes | No documented way | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | Yes | Yes | No documented way |
| GPU | No documented way | Yes | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | Yes | No documented way | No documented way |
| BYOC | Yes | Yes | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | With your own setup | Yes |
| Usage per sandbox (API) | No documented way | No documented way | Yes |
| Audit logs | Not published | Yes | No documented way |
| SSO | No documented way | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, boat did 28.06 runs/s (second of 15) and E2B did 11.08 (rank 7, shared), about 2.5x. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host; boat also places sandboxes on Ryzen 7 9700X hosts, which this run did not measure. Providers ran on different hardware in different regions. AWS AgentCore is not in the public benchmarks we use, so we cannot say how it compares. A microVM session stops at 2 vCPU, so a like-for-like test would use the Instances type on EC2.
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. AWS AgentCore 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.
| Scenario | E2B, a month | AWS AgentCore, a month | boat, 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 | $26 · Pay-as-you-go (Instances) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $368 · Pro · with limits | $107 · Pay-as-you-go (Instances) · 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 | $1,286 · Pay-as-you-go (Instances) · with limits | $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) | $423 · Pay-as-you-go · 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,615 · Pay-as-you-go (Instances) | $8,800 · $2000/mo · with limits |
E2B: E2B bills per second for the vCPU and RAM you set, idle time included, until you pause or kill the sandbox: $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.
AWS AgentCore: No monthly fee. Runtime microVMs, Code Interpreter and Browser bill per second for CPU actually used and for peak memory. The 4 vCPU shape in these scenarios is the Instances type: the EC2 on-demand price plus a 12% management fee, with EBS storage (billed also while a session is stopped) and data transfer billed by AWS on top. The scenario prices leave out EBS storage.
AWS AgentCore: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. Included 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 200 starts a day; extra starts cost $0.03 to $0.07. A card is required, also for the 7-day trial.
Limits in those scenarios
E2B caps one run at 24 hours on Pro, so the always-on agent needs a daily pause and is marked as not fitting as-is; its Pro disk is 20 GiB. AgentCore shows a lower bill than E2B in all five scenarios, but fits only the 1,000 short jobs at once. In the others, files outside /mnt reset after a stop, and its code interpreter is a different kind of product from per-user sandboxes. E2B fits four of the five. boat does not fit the burst as-is: the $2,000 plan includes 2,400 starts a day, charges for starts above 90 a minute and refuses them above 270 with 429. boat never queues a start. A boat resume is like a reboot, and a machine failure loses what was written after the last good snapshot.
| Scenario | E2B | AWS AgentCore | boat |
|---|---|---|---|
| One coding agent, workdays |
|
| None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
|
| None for this scenario |
| Sandboxes for your users |
|
| None for this scenario |
| 1,000 short jobs at once |
|
|
|
Which one should you use?
Use E2B when
you run many short agent or code jobs that pause between requests, fork from the same state, or need a URL anyone can open, in any cloud.
- Pause with memory and wake on request. For jobs that sleep between requests, a paused E2B sandbox comes back in about a second with its processes still running.
- Fork and shareable URLs. E2B forks a running sandbox with its memory and gives each port an HTTPS URL that anyone can open, or a token-gated one. AgentCore session endpoints need IAM or OAuth on each request.
- Open source, outside any one cloud. Its runtime is Apache-2.0 and runs on your own infrastructure, or in your AWS, GCP or Azure account on Enterprise.
Use AWS AgentCore when
your agents must stay inside your AWS account and VPC, need a GPU, or are short code and browser tasks that fit the managed tools.
- It lives on AWS, next to your account. Teams built on AWS keep agents behind their own IAM, VPC, security groups and PrivateLink, in 21 commercial regions.
- Managed tools that bill only for what they use. Code Interpreter and Browser charge for CPU actually used and peak memory, and Browser adds live view and session replay.
- GPUs and two-week sessions on Instances. Agents that need a GPU or a session of up to 14 days can run on EC2 in your account.
Where boat fits
If your agents do long, heavy work on one machine, look at boat. E2B Pro stops one run at 24 hours, and an AgentCore microVM session stops at 8 hours and 2 vCPU unless you move to Instances on EC2. boat gives each agent a full VM with Docker and /dev/kvm that keeps its disk, with no session cap once auto-stop is off, and URLs you can share.
Long runs on one machine
With auto-stop off on a paid plan (default 1 hour), a boat sandbox has no session cap. On E2B your code pauses and resumes a run past 24 hours. On AgentCore you set up the Instances type for runs past 8 hours, up to 14 days per session.
A full machine that keeps its disk
On AgentCore only paths under /mnt survive a stop, so packages installed elsewhere at run time come back only if your image has them. Neither E2B nor AgentCore documents /dev/kvm. boat saves the disk every minute and runs Docker, systemd and nested VMs. A boat resume is like a reboot.
Agents, keys and hosting built in
boat installs seven coding agents and drives them with a prompt, steer and events API. Its optional credentials proxy ($1 a day plus $1 per 1,000 requests) keeps supported providers' keys out of the sandbox. Each sandbox gets up to 50 HTTPS URLs, token-gated or public.
Use boat when your agents do hours of installs, builds, tests, Docker, emulators and a browser on a full VM that saves its disk every minute, with no session cap once auto-stop is off. Compare it one to one: boat vs E2B and boat vs AWS AgentCore.
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 AWS AgentCore?
AgentCore shows a lower bill in all five scenarios on this page, but it fits only one of them: 1,000 short jobs at once, at $1,615 against $2,797 on E2B Pro++. In the others, its 2 vCPU microVMs, 8-hour sessions or files outside /mnt get in the way. E2B fits four of the five. AgentCore's Instances prices leave out EBS storage.
Which is faster, E2B or AgentCore?
E2B did 11.08 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026. AgentCore is not in that run, so we cannot say which is faster. boat did 28.06 in the same run, on a Ryzen 9 9950X host.
Can E2B or AgentCore run Docker?
E2B runs Docker inside the sandbox; its docs list nested virtualization as not supported. AgentCore runs your container image as root in a microVM, but its docs do not say Docker or /dev/kvm work inside a session. boat runs Docker and exposes /dev/kvm.
How long can a session run on E2B and AgentCore?
E2B stops one run after 1 hour on Hobby and 24 hours on Pro; pausing and resuming resets the clock. AgentCore microVM sessions last up to 8 hours, or 14 days on the Instances type. boat has no session cap once auto-stop is off on a paid plan (the default is 1 hour).
Can users open an app running in the sandbox?
On E2B, yes: each port gets an HTTPS URL, public unless you turn on a token. AgentCore session endpoints reach ports 8000-12000 on microVM sessions, but each request needs an AWS signature or an OAuth token, so there are no public links. boat gives HTTPS URLs on up to 50 ports, token-gated by default or public.
Is boat SOC 2 compliant?
SOC 2 is in progress; boat has no SOC 2 report today. E2B has a SOC 2 Type II report, and AgentCore is listed as a HIPAA eligible AWS service. Live status is at status.ascii.dev and our data retention policy is at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial