CodeSandbox SDK vs Google Agent Runtime
CodeSandbox SDK gives each sandbox a Firecracker VM with root and Docker. It hibernates with its memory and wakes on the next HTTP request. Google Agent Runtime hosts your agent code on Google Cloud. Its Agent Sandbox runs code as an unprivileged user in a gVisor-isolated container, and Google documents no Docker inside.
The companies and products
CodeSandbox SDK
CodeSandbox SDK is an API from CodeSandbox, now a Together AI company, that starts sandboxed development VMs on the same infrastructure as the CodeSandbox editor.
Each sandbox is a Firecracker microVM built from a template or any Dockerfile. When it goes idle, it hibernates with a memory snapshot, and it resumes or forks from that snapshot in seconds. You drive it from a TypeScript SDK through terminals, commands, files and HTTPS hosts. Together's docs call it the deprecated offering and point new users to its successor, the together-sandbox SDK.
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. “32nd cheapest of 365” means 31 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 | CodeSandbox SDK: 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 CodeSandbox SDK runs Docker with root. Google's sandboxes run without root, and Google documents no Docker inside, so you build images outside and run compose stacks elsewhere. boat adds SSH, systemd and /dev/kvm for emulators. | 32nd cheapest of 365 $3,731 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 Both fit an always-on assistant. A Google sandbox is deleted when its TTL ends (7 days at most for a custom container); a snapshot (Preview) carries files and memory into a new one. CodeSandbox SDK has no hard session cap. On boat, turn auto-stop off on a paid plan (default 1 hour). | 50th cheapest of 361 $4,811 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. CodeSandbox SDK wakes hibernated VMs with their memory. Google's Code Execution sandbox is a ready Python and JavaScript interpreter with no network, billed per second. boat starts at a $20 monthly plan. | 54th cheapest of 336 $642 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 CodeSandbox SDK gives each user an HTTPS host that wakes on request, but Scale caps at 250 VMs at once. Google documents access through its API or a private endpoint in your VPC, not a public URL. boat serves up to 50 HTTPS URLs per sandbox, token-gated by default. | 140th of 349, with limits $1,707 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 Both can branch many rollouts from one memory state: CodeSandbox SDK forks a running or hibernated VM, and Google starts sandboxes from one snapshot (Preview). A boat fork copies the disk only. | 341st of 349, with limits $3,861 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 | 77th cheapest of 359 $1,335 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 CI jobs that build containers need Docker, which CodeSandbox SDK has and Google does not document inside its sandboxes. boat also has /dev/kvm for Android builds. | 96th cheapest of 374 $860 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 | 316th of 371, with limits $240 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 Google's Computer Use sandbox gives a browser with a VNC live view, a click, type and screenshot API, and CDP. On CodeSandbox SDK you add a VNC desktop to your own Dockerfile. boat streams a full 60 fps desktop with Chrome, built in. | 54th cheapest of 367 $1,236 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 Google ships a real Chromium you drive over CDP; outbound internet is off unless the template turns it on. On CodeSandbox SDK you start from the headless Chromium template. boat has Chrome on a desktop in every sandbox. | 125th of 356, with limits $741 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 | 119th cheapest of 343 $871 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 | 194th of 327, with limits $7,390 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 | 29th cheapest of 351 $505 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 | CodeSandbox SDK | Google Agent Runtime | boat |
|---|---|---|---|
| Isolation | Firecracker microVM with its own kernel | gVisor-isolated container in a Google-managed tenant project | Full VM with its own kernel, on hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared |
| Root and Docker | Root and Docker; templates build from any Dockerfile | Runs as appuser with no sudo; images must not need root; Docker inside is not documented | Root, systemd and Docker on every sandbox; you cannot boot your own Docker image |
| Nested virtualization | Not documented | Not documented | Yes, /dev/kvm on every sandbox for Android emulators and VMs |
| Shell access | Terminals, commands and files through the SDK; SSH is not documented | execute_bash() API calls; each command runs in a new shell; SSH is not documented | SSH, plus exec and files over the API |
| Pause and resume | Hibernates with a memory snapshot and resumes with processes running in about 0.5 to 2 s | Pause keeps the file system at a lower, unpublished rate; snapshots (Preview) keep memory and files | Disk saved every minute and at each stop, kept at least 14 days; memory is not saved, so a resume is like a reboot |
| Fork | Fork a hibernated sandbox from its memory snapshot, or a running one that shares memory with its parent | Start many sandboxes from one memory snapshot (Preview; same image, architecture and runtime version) | Fork a running sandbox from its last 1-minute disk snapshot; memory is not copied |
| How long a sandbox lives | No hard cap; hibernates after an idle timeout (30 minutes by default on paid plans, up to 1 day) and bills until then | TTL of up to 7 days for a custom container and 14 days for Code Execution; a snapshot carries the state into a new sandbox | Auto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no session cap |
| Reaching the sandbox | HTTPS host per port that wakes the VM on request, public by default; raw TCP and a public IP are not documented | Through Google's API or a private endpoint in your VPC; a public URL is not documented | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports on the public IPv6 address (some sandboxes also have IPv4) |
| Outbound internet | Open; no egress allowlist documented | Off unless the template turns it on; can route through your VPC with Cloud NAT, a static IP, Cloud NGFW or Secure Web Proxy | Open internet on every plan; no provider-side allowlist |
| Desktop and browser | No built-in desktop; a headless Chromium template, and you can install a VNC desktop in your own Dockerfile | A browser in a container with a VNC live view, a click, type and screenshot API, and CDP (GA); a full desktop is not documented | Built-in desktop and Chrome streamed at 1920x1080, 60 fps, with computer-use tools; no GPU |
| Coding agents | You install your own agent in the template and run it through the commands API | Managed Agents API (Preview) runs Google's Antigravity harness; other harnesses go in a custom image | Seven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API |
| Keeping API keys out of the sandbox | Secrets passed in as environment variables; no credentials proxy documented | You provision and scope the credentials the agent uses | Optional credentials proxy ($1 a day while on, plus $1 per 1,000 requests): real keys of supported model providers stay outside; other secrets still enter the sandbox |
| Hosting your agent code | You run your own agent loop inside a sandbox | Agent Runtime deploys ADK, LangGraph, LangChain, AG2 and LlamaIndex agents; idle time between turns is not billed | You run your own agent loop inside a sandbox |
| Regions | A country hint steers scheduling, but placement is not guaranteed | 23 locations in the US, Europe, the Middle East, Asia, Canada, Australia and Brazil | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | CodeSandbox SDK | 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 | Not published | Not published | Yes |
| Desktop GUI | With your own setup | Not published | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | No documented way | 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 | No documented way | Yes | No documented way |
| Secret proxy | No documented way | No documented way | Yes |
| Secret proxy for any API | No documented way | No documented way | Yes |
| Preinstalled agents | No documented way | Yes | Yes |
| Agent harness API | No documented way | Yes | Yes |
| MCP server | No documented way | 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 | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Not published | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Not published | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | No documented way | Yes | No documented way |
| EU data residency | No documented way | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither CodeSandbox SDK nor Google Agent Runtime is in the public CPU benchmarks we use, so we cannot say which is faster. In StarSling's run of 3 October 2026 (run 37073680030), boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. 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. For start time, ComputeSDK measured CodeSandbox SDK at its default size: 11.76 s median with 100 starts at once (6 November 2026) and 2.33 s one at a time in its latest published run. Google and boat are not in ComputeSDK.
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. CodeSandbox SDK and Google Agent Runtime are 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 | CodeSandbox SDK, 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 | $193 · Scale | $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 | $341 · Scale | $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,500 · Scale | $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 | $815 · Scale · with limits | $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 | $1,632 · Scale · with limits | $2,060 · Pay as you go | $8,800 · $2000/mo · with limits |
CodeSandbox SDK: You buy VM credits at $0.01486 each, and each size burns a fixed number per hour: 20 for a 4 vCPU / 8 GB VM, about $0.30. Billing is per started minute while the VM runs, including idle time before it hibernates. A hibernated VM has no VM charge. Larger teams pay a $170 monthly Scale platform fee, which is not usage credit. Prices as checked on 28 September 2026; CodeSandbox's pricing pages blocked our automated check on 8 November 2026.
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. Sandboxes bill while they exist. A paused one costs less at an unpublished rate, and 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. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 200 starts a day; each extra start costs $0.03 to $0.07. A stopped sandbox has no compute charge and keeps its disk for at least 14 days. Saved snapshots above the included count and the credentials proxy, while it is on, still charge.
Limits in those scenarios
CodeSandbox SDK's Scale plan allows 250 VMs at once, so the user-sandboxes and 1,000-job scenarios need Enterprise. Each VM has a 20 GB disk, and more disk and egress are not priced. Google fits those two scenarios but not the 50-agent fleet, because it documents no Docker inside its sandboxes. Google deletes a sandbox when its TTL ends and does not publish disk and egress rates. boat does not fit the 1,000-job burst: the $2,000 plan includes 90 starts a minute and 2,400 a day, extra starts are paid, and starts above 270 a minute fail with 429. boat never queues a start, runs only in Germany, Finland and France, and has no GPU.
| Scenario | CodeSandbox SDK | 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 CodeSandbox SDK when
your sandboxes need root and Docker, sleep between visits and wake on the next HTTP request with their memory intact, and you accept that Together calls this SDK deprecated.
- Root and Docker in every sandbox. Good for agents that install packages and build containers: each VM has root and Docker, and templates build from any Dockerfile.
- Hibernation and wake on request. Useful for previews that sleep between visits: an HTTP request wakes a hibernated VM with its processes still running.
- Public HTTPS hosts per port. Good when people outside your team must open what the sandbox serves, with signed tokens if you want hosts private.
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 or large bursts in a gVisor sandbox.
- A managed home for your agent code. Useful if you build agents with ADK or LangGraph: Agent Runtime hosts them and skips billing for idle time between turns.
- Inside your Google Cloud network. Useful if agents must stay in a Google Cloud perimeter, with egress off by default and routed through your own firewall.
- Regions worldwide and large bursts. Useful if you need the US or Asia, or many short jobs at once: Google bills per second with no start fee, in 23 locations.
Where boat fits
If your agents do real work for hours, installing tools, running Docker and emulators, and serving apps other people open, look at boat. Each agent gets a full VM with SSH, root, a desktop and coding agents installed. The disk is saved every minute. Turn auto-stop off on a paid plan (default 1 hour) for no session cap.
A whole machine with /dev/kvm
Google's sandboxes run as appuser with no sudo, and Google documents no Docker inside. CodeSandbox SDK documents neither SSH nor nested virtualization. On boat, apt installs, docker compose and Android emulators run, and you can SSH in.
Agents and keys set up
On CodeSandbox SDK you install the agent harness yourself. Google's Managed Agents API (Preview) runs its own Antigravity harness. boat installs Claude Code, Codex and five more, driven from outside. Its optional paid credentials proxy keeps model keys out of the sandbox.
Sandboxes that can be reached
Google documents no public URL for a sandbox. CodeSandbox SDK serves HTTPS only. boat serves HTTPS on up to 50 ports, takes raw ports on its IPv6 address, and streams a 60 fps desktop. A boat resume is like a reboot; it does not keep memory.
Use boat when your agents need a full VM for hours: root, Docker, SSH, /dev/kvm, a desktop and public URLs, with the disk saved every minute and coding agents installed. boat runs only in Germany, Finland and France, with no US or Asia region, and caps starts per plan. Compare it one to one: boat vs CodeSandbox SDK 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 CodeSandbox SDK cheaper than Google Agent Runtime?
Usually not. One coding agent on workdays comes to $193 a month on CodeSandbox SDK and $73 on Google. One agent running all month comes to $341 and $301. Sandboxes for your users come to $1,030 on Google, while CodeSandbox SDK Scale caps at 250 VMs. For 50 agents in parallel, CodeSandbox SDK comes to $2,500 and Google to $3,626, though Google documents no Docker for that fleet. boat comes to $20, $26, $200 and $317 for those four. Google's figures assume a sandbox that exists all those hours, before any free resources.
Which is faster?
Neither is in the public CPU benchmarks we use, so we cannot say. In StarSling's run of 3 October 2026, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on slower hosts.
Can CodeSandbox SDK or Google Agent Runtime run Docker?
CodeSandbox SDK runs Docker with root inside each Firecracker VM. Google's managed sandboxes run as the unprivileged user appuser with no sudo, custom images must not need root, and Google documents no Docker inside. Teams on GKE can run the open-source GKE Agent Sandbox in their own cluster and manage it themselves. boat runs Docker, systemd and /dev/kvm on every VM.
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 that platform called Agent Sandbox.
Is CodeSandbox SDK still maintained?
CodeSandbox is now part of Together AI. Together's docs call this SDK deprecated and name together-sandbox as its successor. The last SDK release was 2.4.2 in December 2025. Self-serve sign-up still runs through CodeSandbox.
Can I SSH into either sandbox?
Neither documents SSH. CodeSandbox SDK connects through its SDK with terminals, commands and files, and Google runs each command through an API call in a new shell. Every boat sandbox has SSH as well as an exec and files API.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs CodeSandbox SDK
- boat vs Google Agent Runtime
- E2B vs CodeSandbox SDK
- Daytona vs CodeSandbox SDK
- Modal vs CodeSandbox SDK
- Vercel Sandbox vs CodeSandbox SDK
- Cloudflare Sandbox vs CodeSandbox SDK
- Blaxel vs CodeSandbox SDK
- Runloop vs CodeSandbox SDK
- Tensorlake vs CodeSandbox SDK
- Morph Cloud vs CodeSandbox SDK
- CodeSandbox SDK vs Northflank