OpenAI Containers vs Google Agent Runtime

OpenAI Containers are a tool inside OpenAI's model API: the model runs code in a short-lived container that, by default, expires after 20 minutes without use. Google Agent Runtime hosts your agent code on Google Cloud and gives it sandboxes that can live up to 7 days, pause, and save their memory in snapshots (Preview).

The companies and products

OpenAI Containers

OpenAI Containers are the sandboxes OpenAI runs for its own model tools: Code Interpreter, Hosted Shell and the Agents API's hosted sandbox.

This is a different kind of product from boat: a tool inside OpenAI's model API, not a machine you rent. You create a container through the API, or a Responses call makes one. The model runs Python or shell commands in it on a fixed Debian 12 image without sudo. By default the container expires after 20 minutes without use; the create call can set a different idle time. It is built for apps that already call OpenAI models and want them to run code, read files and make charts without running any servers.

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. “357th cheapest of 365” means 356 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 workloadOpenAI Containers: price rankGoogle Agent Runtime: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Neither documents root or Docker for its hosted sandboxes, so sudo installs and docker compose stacks need another route: on Google you bake tools into a custom image, on OpenAI you connect the Agents API to a sandbox you host. boat has root, Docker and systemd in every sandbox.
357th of 365, with limits
$17,371 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
An assistant that lives on its machine for days fits Google better: a sandbox can last 7 days, pause, and continue from a snapshot (Preview). An OpenAI container expires when idle and its files go with it. boat runs with no session cap once auto-stop (default 1 hour) is off on a paid plan.
344th of 361, with limits
$13,140 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
This is home ground for both: OpenAI runs the model's Python in the same API call, and Google's Code Execution sandbox is a ready Python interpreter. On boat each run counts against the plan's start limits.
198th of 336, with limits
$6,000 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
Neither documents a public URL for what your users build. boat gives each sandbox token-gated HTTPS URLs on up to 50 ports and SSH.
349th of 349, with limits
$3,780 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
195th of 349, with limits
$30,000 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
Google's snapshots (Preview) start many sandboxes from one saved state with memory. OpenAI documents no fork; you create a new container and upload the files. boat forks a running sandbox from its last 1-minute disk snapshot, without memory.
355th of 359, with limits
$5,760 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 neither OpenAI nor Google documents inside its sandboxes. boat runs Docker in every sandbox; each CI job counts as a start.
347th of 374, with limits
$1,728 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
Neither documents SSH or a machine you log into and keep all month. boat gives you SSH, a desktop and a disk kept for at least 14 days after a stop.
365th of 371, with limits
$1,051 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
Both offer a hosted browser for computer use: OpenAI inside the Agents API beta, Google with a VNC view, a click and type API and CDP. boat streams a full 1920x1080, 60 fps desktop.
353rd of 367, with limits
$5,280 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
335th of 356, with limits
$1,440 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
334th of 343, with limits
$1,755 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
307th of 327, with limits
$35,100 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
310th of 351, with limits
$870 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 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

FeatureOpenAI ContainersGoogle Agent Runtimeboat
What it isA sandbox tool the model uses inside OpenAI's APIManaged agent hosting plus code, shell and browser sandboxes on Google CloudA cloud VM you create, keep, stop and reach from outside
IsolationA fully sandboxed virtual machine; hypervisor not namedgVisor-isolated container in a Google-managed tenant projectFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Root, Docker and nested virtualizationCommands do not run with sudo; Docker and /dev/kvm are not documented. You set it up: connect the Agents API to a self-hosted sandboxRuns as appuser with no sudo; images must not need root; Docker and /dev/kvm inside are not documented. You build images outside and push them to Artifact RegistryRoot, systemd, Docker and /dev/kvm on every sandbox
How long a sandbox livesBy default expires after 20 minutes without use; expires_after can set a longer idle time. Agents API sandboxes can be deleted after an hour without activityTTL of up to 7 days for a custom container and 14 days for Code Execution; a snapshot carries the state into a new sandboxAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no session cap
Files after a stopData is discarded when the container expires. Agents API publishes files in /workspace/outputs as downloadable artifactsPause keeps the file system at a lower, unpublished rate. The sandbox is deleted when its TTL ends; a snapshot (Preview) restores files and memory into a new sandboxDisk saved every minute and at each stop. A stopped sandbox has no compute charge and keeps its disk for at least 14 days; a saved snapshot keeps it longer
Snapshots and branchingNo snapshot or fork call documented. You set it up: create a new container and upload the same filesSnapshots (Preview) keep memory and files; start many sandboxes from one snapshot (same image, architecture and runtime version)Fork a running sandbox from its last 1-minute disk snapshot; a resume is like a reboot (no memory snapshots)
Custom imageFixed Debian 12 image; you upload files or skills into each containerCustom container images (Preview), which must not need rootSaved snapshots of a set-up sandbox, reused as templates; you cannot boot your own Docker image
Machine size1, 4, 16 or 64 GB of memory; vCPU not published. Agents API sandboxes: up to 4 vCPU / 16 GBRuntime: 1, 2, 4, 6 or 8 vCPU and up to 32 GiB; sandbox maximum not published4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB (xlarge needs the $100 plan)
Reaching the sandboxNo inbound ports documented for hosted containers; you reach them through the APIThrough Google's API, or a private endpoint in your own VPC; a public URL and SSH are not documentedSSH, token-gated HTTPS URLs for up to 50 ports, raw TCP (IPv6 only on sandboxes without their own IPv4)
Outbound internetCode Interpreter and Hosted Shell: off until an admin sets an org domain allowlist. Agents API sandboxes: on by default, can be limited to 1 to 100 hostsOff unless the template turns it on; can route through your VPC with Cloud NAT, a static IP, Cloud NGFW or Secure Web ProxyOpen internet on every plan; no provider-side allowlist
Keeping API keys out of the sandboxdomain_secrets: a sidecar adds the real header for approved domains, the model sees a placeholderYou provision and scope the credentials the agent usesOptional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs
Coding agentsAgents API (beta) drives a managed Codex harness from outside, with steering, events and webhooksManaged Agents API (Preview) runs Google's Antigravity harness. For other harnesses you set it up: install them in a custom imageSeven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API
Desktop and computer useHosted browser for the Agents API computer_use toolA browser in a container with a VNC live view, a click, type and screenshot API, and CDP for Playwright. A full desktop is not documented; you can build one into a custom imageBuilt-in 1920x1080, 60 fps desktop and Chrome, computer tools for agents, embeddable stream
RegionsUS or EU processing for Code Interpreter; Agents API can also drive a sandbox you host23 locations in the US, Europe, the Middle East, Asia, Canada, Australia and BrazilGermany, Finland and France; you cannot pick a region, and there is no US or Asia region
Every feature Battleships tracks (43)
FeatureOpenAI ContainersGoogle Agent Runtimeboat
Full VM (own kernel)YesNo documented wayYes
Docker insideNo documented wayNo documented wayYes
Nested virtualizationNo documented wayNo documented wayYes
RootNo documented wayNo documented wayYes
SystemdNot publishedNot publishedYes
Desktop GUIYesNot publishedYes
BrowserYesYesYes
Computer-use APIYesYesYes
SSHNo documented wayNo documented wayYes
Persistent diskNo documented wayYesYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsNo documented wayYesYes
Fork/cloneNo documented wayYesYes
Live fork (no pause)No documented wayYesYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)No documented wayYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesNo documented wayNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsNo documented wayNo documented wayYes
Raw TCP inboundNo documented wayNot publishedYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesNo documented wayYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsNo documented wayYesYes
Agent harness APIYesYesYes
MCP serverNo documented wayNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingYesNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNot publishedNot publishedYes
Usage per sandbox (API)No documented wayYesYes
Audit logsNot publishedNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

OpenAI ContainersNot measured
Google Agent RuntimeNot measured
boat28.06 runs/s

Neither OpenAI Containers nor Google Agent Runtime is in the public benchmarks we use, so we cannot say which is faster. OpenAI does not publish the vCPU behind each container size. For reference, boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15 in StarSling's run of 3 October 2026 (run 37073680030). That boat sandbox ran on an AMD Ryzen 9 9950X host; boat also places sandboxes on Ryzen 7 9700X hosts and does not promise a CPU model.

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. OpenAI Containers 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.

ScenarioOpenAI Containers, a monthGoogle Agent Runtime, 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
$228 · API pay as you go · with limits$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
$1,051 · API pay as you go · 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
$11,405 · API pay as you go · with limits$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,620 · API pay as you go · 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
$6,000 · API pay as you go · with limits$2,060 · Pay as you go$8,800 · $2000/mo · with limits

OpenAI Containers: OpenAI bills each container session by the minute for the memory size you pick, with a 5-minute minimum, and model tokens are billed separately on top. There is no plan fee. The scenarios use the 16 GB size for 8 GB needs, because OpenAI does not publish the vCPU per size.

Google Agent Runtime: Google bills $0.085 per vCPU-hour and $0.009 per GiB-hour for what you allocate, 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 are billed while they exist; a paused one costs less at a rate Google does not publish, and disk, snapshot and egress rates are not published either.

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 default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07 each. A stopped sandbox has no compute charge. Saved snapshots above the included count and the AI credentials proxy still charge while sandboxes are stopped.

Limits in those scenarios

OpenAI Containers fit none of the five scenarios as written: hosted containers discard files when they expire, document no Docker or root, and Code Interpreter and Hosted Shell start with no internet until an admin allows domains. OpenAI publishes no vCPU per size and no limit on how many containers run at once. Google fits four scenarios. The 50-agent fleet does not fit, because Google documents no Docker inside its sandboxes, and every Google row leaves disk and egress unpriced. On boat the 1,000-job burst does not fit: the $2,000 plan includes 90 starts a minute and 2,400 a day, and starts above 270 a minute fail with 429. With paid starts that burst comes to $8,800 on boat and $2,060 on Google. boat's always-on agent needs auto-stop turned off (default 1 hour), and a resume does not keep memory.

ScenarioOpenAI ContainersGoogle Agent Runtimeboat
One coding agent, workdays
  • no open internet: sandboxes reach only an allowlist (domains your org admin adds to the allow list)
  • missing persistent disk
  • machine size not published
  • different kind of product: code interpreter
  • disk beyond 0 GiB: price unknown
  • egress price not published
None for this scenario
One agent that never stops
  • no open internet: sandboxes reach only an allowlist (domains your org admin adds to the allow list)
  • missing persistent disk
  • machine size not published
  • different kind of product: code interpreter
  • disk beyond 0 GiB: price unknown
  • egress price not published
None for this scenario
50 agents in parallel
  • no open internet: sandboxes reach only an allowlist (domains your org admin adds to the allow list)
  • missing persistent disk, Docker inside
  • machine size not published
  • different kind of product: code interpreter
  • missing Docker inside
  • disk beyond 0 GiB: price unknown
  • egress price not published
None for this scenario
Sandboxes for your users
  • no open internet: sandboxes reach only an allowlist (domains your org admin adds to the allow list)
  • machine size not published
  • different kind of product: code interpreter
  • not confirmed: how many machines can run at once (you need 300; the typical published limit is 50)
  • disk beyond 0 GiB: price unknown
  • egress price not published
None for this scenario
1,000 short jobs at once
  • no open internet: sandboxes reach only an allowlist (domains your org admin adds to the allow list)
  • machine size not published
  • different kind of product: code interpreter
  • not confirmed: how many machines can run at once (you need 1,000; the typical published limit is 50)
  • disk beyond 0 GiB: price unknown
  • egress price not published
  • 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 OpenAI Containers when

your app already calls OpenAI models and the model only needs to run short pieces of code or shell commands on files you give it.

  • Built into the model call. Useful if your app already calls OpenAI models: one tool line in a request gives the model a place to run code.
  • Nothing to clean up. Useful for short code runs: by default a container goes away by itself after 20 idle minutes, billed by the minute with a 5-minute minimum.
  • Secrets the model never sees. Useful if code calls outside APIs: domain_secrets adds the real header in a sidecar, so the model only sees a placeholder.

Use Google Agent Runtime when

you build agents with ADK or LangGraph on Google Cloud and want them hosted in Google Cloud regions you pick, with sandboxes that last days, pause and snapshot their memory.

  • A managed home for your agent code. Useful if you build agents with ADK or LangGraph: Agent Runtime hosts them and does not bill idle time between turns.
  • Sandboxes that last and branch. Useful if work spans days: a sandbox can live up to 7 days, pause, and save its memory in a snapshot (Preview) you can start many times.
  • Inside your Google Cloud network. Useful if agents must stay in Google Cloud regions you pick, with egress off by default and routed through your own VPC and firewall.

Where boat fits

Neither OpenAI nor Google documents root, Docker or inbound ports for its hosted sandboxes. If your agents need a real computer they keep, with a disk that stays, ports you can open and coding agents built in, boat fits. boat's own limits: EU hosts only, start limits per plan, and no memory snapshots.

Root and Docker on a full VM

Coding agents reach for sudo apt install and docker compose. On Google you bake every tool into an image ahead of time. On OpenAI you connect the Agents API to a sandbox you host. boat has root, systemd and Docker in every sandbox.

A disk that stays, without a fixed end

An OpenAI container loses its files when it expires. A Google sandbox is deleted when its 7-day TTL ends, and a snapshot (Preview) carries it into a new one. boat saves the disk every minute and keeps a stopped sandbox's disk for at least 14 days. With auto-stop off on a paid plan there is no session cap.

Ports and SSH you can reach

When an agent builds a web app, someone has to open it. OpenAI documents no inbound ports for hosted containers, and Google uses its API or a private endpoint in your VPC. boat gives token-gated HTTPS on up to 50 ports, raw TCP and SSH.

Use boat when your agents need a real machine they keep: root, Docker, a disk kept across stops, SSH and public ports, with Claude Code, Codex and other coding agents installed. Compare it one to one: boat vs OpenAI Containers 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 OpenAI Containers cheaper than Google Agent Runtime?

In the scenarios on this page, Google costs less: one coding agent on workdays comes to $73 a month on Google and $228 on OpenAI, and one agent running all month comes to $301 against $1,051. OpenAI also bills model tokens on top. boat comes to $20 and $26 a month for the same two scenarios.

Which is faster, OpenAI Containers or Google Agent Runtime?

Neither is in the public benchmarks we use, and OpenAI does not publish how many vCPU each container size gets, so we cannot say. boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on a Ryzen 9 9950X host.

Can OpenAI Containers or Google Agent Runtime run Docker?

Neither documents it for its hosted sandboxes. OpenAI's hosted shell runs commands without sudo; for full control, the Agents API can drive a sandbox you host. Google's sandboxes run as the unprivileged user appuser, with images you build outside. boat gives every sandbox root, systemd, Docker and /dev/kvm.

How long does a sandbox last on each?

By default an OpenAI container expires after 20 minutes without use, and its data is discarded. A Google sandbox can live up to 7 days as a custom container or 14 days for Code Execution, and can pause in between. A boat sandbox auto-stops after 1 hour by default, and 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 called Agent Sandbox.

Is boat SOC 2 compliant?

No SOC 2 report today; SOC 2 is in progress. No HIPAA BAA is documented. 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

More comparisons