E2B vs Google Agent Runtime
E2B is a sandbox API: each agent gets a Firecracker microVM with root and Docker that pauses with its memory and wakes on the next request. Google Agent Runtime, once called Vertex AI Agent Engine, hosts your agent code on Google Cloud. Its Agent Sandbox runs code as an unprivileged user with no sudo, in a gVisor-isolated container.
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
Google Agent Runtime
Google Agent Runtime is the agent hosting part of Gemini Enterprise Agent Platform on Google Cloud, renamed from Vertex AI Agent Engine in April 2026.
It is a hyperscaler service, not a sandbox company. Agent Runtime deploys agents you build with ADK, LangGraph, LangChain, AG2 or LlamaIndex and bills them only while they work on a turn. Next to it, Agent Sandbox gives those agents a place to run code: a Code Execution sandbox, a shell or custom container sandbox, and a Computer Use browser. Each sandbox runs in a gVisor-isolated container in a Google-managed tenant project. Teams on GKE can also run the open-source GKE Agent Sandbox in their own cluster, with gVisor or Kata Containers, and manage it themselves.
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 | Google Agent Runtime: 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 software factory with root and Docker. Google's sandboxes have no sudo and document no Docker; you bake tools into a custom image and run Docker elsewhere. boat adds /dev/kvm and no session cap once auto-stop is off. | 20th cheapest of 365 $4,143 a month | 310th of 365, with limits $5,801 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 Google custom container lives up to 7 days, and a snapshot (Preview) carries its files and memory into a new sandbox. On boat, turn auto-stop off on a paid plan. | 82nd of 361, with limits $5,348 a month | 34th cheapest of 361 $7,519 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 suit short code runs. E2B pauses with memory and wakes on the next request. Google's Code Execution sandbox is a ready Python and JavaScript interpreter with no network. On boat each start counts against the plan's start cap. | 43rd cheapest of 336 $421 a month | 251st of 336, with limits $275 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 gives each user's sandbox an HTTPS URL per port. Google reaches a sandbox through its API or a private endpoint in your VPC and documents no public URL. boat serves up to 50 HTTPS URLs per sandbox, token-gated by default. | 33rd cheapest of 349 $2,354 a month | 275th of 349, with limits $1,916 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 forks a running sandbox with its memory, up to 20 copies per call. Google starts many sandboxes from one memory snapshot (Preview). Both suit rollouts that branch from one state. A boat fork copies the disk only. | 5th cheapest of 349 $9,384 a month | 132nd of 349, with limits $8,240 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 E2B and Google both fit evals here at close prices. boat's full VMs fit too, and each eval run counts against the plan's start cap. | 87th cheapest of 359 $1,975 a month | 90th cheapest of 359 $2,060 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 | 338th of 374, with limits $1,429 a month | 104th cheapest of 374 $989 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Google documents no SSH, and each execute_bash() call runs in a new shell. E2B has SSH and pauses past 24 hours. boat gives you SSH, a desktop and no session cap once auto-stop is off. | 208th of 371, with limits $358 a month | 317th of 371, with limits $241 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. Google's Computer Use sandbox runs a browser with a VNC view, a click and type API, and CDP. boat streams a full 60 fps desktop you can embed. | 34th cheapest of 367 $1,342 a month | 85th of 367, with limits $1,648 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 | 132nd of 356, with limits $824 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 | 56th cheapest of 343 $515 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 | 212th of 327, with limits $8,240 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 | 281st of 351, with limits $412 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 | Google Agent Runtime | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel; shared vCPUs | gVisor-isolated container in a Google-managed tenant project | Full VM with its own kernel, on boat's own AMD Ryzen 7 9700X and Ryzen 9 9950X hosts; shared vCPUs |
| Root and Docker | Root, systemd and Docker inside the sandbox | Runs as appuser with no sudo; images must not need root; Docker inside not documented | Root, systemd and Docker on every machine |
| Nested virtualization | Docs list nested-virtualization runtimes as not supported | /dev/kvm not documented | Yes, /dev/kvm on every sandbox for Android emulators and VMs |
| 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 use | 28.06 runs/s, rank 2 of 15 (shared), on a Ryzen 9 9950X host |
| How long a sandbox lives | One run: 1 hour on Hobby, 24 hours on Pro; pausing and resuming resets the clock | TTL of up to 7 days for a custom container, 14 days for Code Execution; a snapshot carries state into a new sandbox | No cap once auto-stop is off on a paid plan; auto-stop defaults to 1 hour, up to 30 days |
| Pause and memory | Pause saves memory and disk, or the filesystem only; resume in about 1 second with processes running | Pause keeps the file system; snapshots (Preview) keep memory and files | Disk saved every minute and at each stop; resume is like a reboot; stopped disk kept at least 14 days |
| Fork and branching | Fork a running sandbox with its memory, up to 20 copies per call | Start many sandboxes from one memory snapshot (Preview; same image and architecture) | Fork a running sandbox from its last 1-minute disk snapshot |
| Wake on request | Yes, when you turn it on: a paused sandbox resumes on the next HTTP request or SDK call | Not documented for sandboxes; Runtime agents do not bill idle time between turns | No; you start a stopped sandbox by API, CLI or dashboard |
| Shell access | SSH and a command API | execute_bash() API calls; each command runs in a new shell; SSH not documented | SSH, plus an API for commands |
| Reaching the sandbox | HTTPS URL per port, public by default unless you turn on a token; no public IP per sandbox | Through Google's API or a private endpoint in your VPC; public URL not documented | Up to 50 HTTPS URLs per sandbox, token-protected by default; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound internet | Open by default, with allow and deny lists by IP, CIDR or domain | Off unless the template turns it on; can route through your VPC with Cloud NAT, a static IP or Cloud NGFW | Open internet; no provider-side allowlist |
| Desktop and computer use | E2B Desktop sandbox with VNC streaming | A browser in a container with a VNC view, a click and type API, and CDP; a full desktop you build into a custom image | Built-in desktop and Chrome at 1920x1080 and 60 fps, with computer tools for agents |
| Agents and keys | Guides for many coding agents; secrets injected into outbound HTTPS headers, in private beta | Runtime hosts ADK, LangGraph, LangChain, AG2 and LlamaIndex agents; Managed Agents API (Preview) runs Google's Antigravity harness; you scope the credentials | Seven harnesses installed with a prompt, steer and events API; optional key proxy ($1 a day while on, plus $1 per 1,000 requests) |
| Regions and hosting | US by default; EU and APAC enabled by support; open-source runtime and E2B Embed | 23 locations across the US, Europe, the Middle East, Asia, Canada, Australia and Brazil | Germany, Finland and France; you cannot pick one; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | E2B | Google Agent Runtime | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Yes | Not published | Yes |
| Desktop GUI | Yes | Not published | 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 | Yes | Yes |
| Automatic snapshots | Yes | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | Yes | Yes |
| Memory fork | Yes | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | No documented way | Yes |
| Raw TCP inbound | No documented way | Not published | 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 | Yes | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | Yes | No documented way | No documented way |
| GPU | No documented way | No documented way | 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 | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Not published | Not published | 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 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. Google Agent Runtime and its sandboxes are not in the public benchmarks we use, so we cannot say how they compare.
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. Google Agent Runtime 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 | Google Agent Runtime, 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 | $73 · Pay as you go | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $368 · Pro · with limits | $301 · Pay as you go | $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,626 · Pay as you go · 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) | $1,030 · Pay as you go | $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) | $2,060 · Pay as you go | $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.
Google Agent Runtime: Google bills $0.085 per vCPU-hour and $0.009 per GiB-hour allocated, rounded to the second. The pricing page lists 50 vCPU-hours and 100 GiB-hours free each month but does not say they cover sandboxes, so our totals do not subtract them. Runtime skips idle time between turns, but sandboxes bill while they exist. Paused, disk, snapshot and egress rates are not published.
Google Agent Runtime: 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
One E2B run stops at 24 hours on Pro, so E2B needs a daily pause for the always-on scenario and is marked as not fitting as-is. E2B Pro includes 20 GiB of disk. Google fits the always-on scenario, but a custom container sandbox ends after 7 days and a snapshot (Preview) carries it forward. Google does not fit the 50-agent fleet because it documents no Docker inside its sandboxes, and every Google row leaves disk and egress unpriced. E2B Pro++ fits 1,000 short jobs at once and queues bursts above 300 starts a minute. 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.
| Scenario | E2B | Google Agent Runtime | 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
your agents need root and Docker for short jobs that pause between requests, branch with their memory, or must show a public URL.
- Root and Docker in every sandbox. For agents that run sudo apt install or docker compose, E2B gives root and Docker. Google's sandboxes run without root.
- Pause with memory and wake on request. For short jobs that sleep between requests, a paused E2B sandbox comes back in about a second with its processes running.
- Self-hosting and public URLs. E2B Embed runs its Apache-2.0 runtime on your own machines, and each port can get an HTTPS URL, so users can open what an agent builds.
Use Google Agent Runtime when
you build agents with ADK or LangGraph on Google Cloud and want them hosted inside your own project, network rules and regions, with short code runs in a gVisor sandbox.
- A managed home for your agent code. For agents built with ADK or LangGraph, Agent Runtime hosts them and skips billing for idle time between turns.
- Inside your Google Cloud network. For agents that must stay in a Google Cloud perimeter, egress is off by default and can route through your own firewall.
- Longer lives and more regions. A custom container sandbox can live up to 7 days, and Google runs in 23 locations worldwide.
Where boat fits
If your agents do hours of installs, builds, Docker, emulators and a browser, boat gives each one a full VM. It has no session cap once auto-stop is off on a paid plan (default 1 hour). E2B needs a pause past 24 hours on Pro, and a Google sandbox ends with its TTL. Neither documents nested virtualization.
A full VM with Docker and /dev/kvm
Google's sandboxes run as appuser with no sudo, and Google documents no Docker inside, so you bake every tool into an image. E2B has Docker, but its docs list nested virtualization as not supported. boat has root, Docker, systemd and /dev/kvm.
Disk saved with no code
On E2B your code pauses and resumes a task past 24 hours. On Google a sandbox ends after 7 days at most, and a snapshot (Preview) carries it to a new one. boat saves the disk every minute and at each stop, and keeps a stopped disk at least 14 days. A boat resume is like a reboot.
Coding agents driven from outside
On E2B and Google you install Claude Code or Codex yourself and pass keys into the sandbox. boat installs seven agents with a prompt, steer and events API. Its optional paid proxy keeps supported providers' keys out of the sandbox.
Use boat when your agents do real work for hours: root, Docker, emulators, SSH, a desktop and HTTPS URLs on a full VM, with coding agents built in. 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 Google Agent Runtime.
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 Google Agent Runtime?
Mostly not in our scenarios. One coding agent on workdays costs $202 a month on E2B and $73 on Google, and sandboxes for your users $1,395 against $1,030. E2B is cheaper for 50 agents in parallel, $2,773 against $3,626, and Google does not fit that fleet because it documents no Docker. For 1,000 short jobs at once, Google costs $2,060 and E2B $2,797. boat costs $20, $200 and $317 for the first three, and does not fit the 1,000-job burst because of its start limits.
Which is faster, E2B or Google Agent Runtime?
Google's sandboxes are 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. boat does not promise a CPU model.
Can I run Docker in E2B or a Google Agent Sandbox?
E2B runs Docker inside the sandbox, with root. Google's shell sandbox runs commands as appuser with no sudo, custom images must not need root, and Google documents no Docker inside. You build images outside and push them to Artifact Registry. boat has root, Docker and /dev/kvm on every VM.
How long can a sandbox run on each?
One E2B run stops after 24 hours on Pro and 1 hour on Hobby; pausing and resuming resets the clock and keeps memory. A Google sandbox ends with its TTL, up to 7 days for a custom container and 14 days for Code Execution, and a snapshot (Preview) carries it into a new sandbox. boat has no session cap once auto-stop is off on a paid plan.
Is Google Agent Runtime the same as Vertex AI Agent Engine?
Yes. Google renamed Vertex AI Agent Engine to Agent Runtime in April 2026, as part of Gemini Enterprise Agent Platform. Its code, shell and browser sandboxes are a separate part of the same platform called Agent 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