Railway vs Google Agent Runtime
Railway is an app platform whose sandboxes are Linux VMs with a root shell. Railway destroys a sandbox after an idle timeout, unless you take a checkpoint. 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 in a gVisor-isolated container.
The companies and products
Railway
Railway is a cloud platform for deploying web apps, servers and databases. It also sells Sandboxes and Cloud Agents.
Railway's main product is app hosting: you deploy services and databases as containers on its own hardware. In 2026 it added Sandboxes: isolated Linux VMs that you create from the CLI or a TypeScript SDK, run commands in and destroy. It also added Cloud Agents: a personal VM for a coding agent that keeps its disk and sleeps or wakes. Cloud Agents are in Priority Boarding, and breaking changes may occur. Railway suits teams that already host on Railway and want sandboxes next to their apps.
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. “28th cheapest of 365” means 27 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 | Railway: 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 Railway ranks 13th with your own setup: it gives a root shell, and you keep work in checkpoints and install Docker yourself. Google's sandboxes run without root and document no Docker (309th). boat ranks 8th. | 28th cheapest of 365 $1,481 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. Railway (30th) needs the idle timeout set to 0 or a Cloud Agent. A Google sandbox (47th) is deleted when its 7-day TTL ends; a snapshot (Preview) carries its state into a new one. boat ranks 6th. | 21st cheapest of 361 $3,977 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 Railway (43rd) bills CPU used for short code runs. Google's Code Execution sandbox is a ready Python and JavaScript interpreter with no network. | 42nd cheapest of 336 $413 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 Railway caps sandboxes per environment (100 on Pro). Google reaches sandboxes through its API or a private endpoint in your VPC, with no documented public URL. boat serves up to 50 HTTPS URLs per sandbox and ranks 3rd. | 46th of 349, with limits $290 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 | 84th of 349, with limits $4,450 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 (92nd) can start many sandboxes from one snapshot with memory (Preview). Railway forks a running sandbox's files but caps how many run per environment (115th). boat ranks 12th. | 113th of 359, with limits $364 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. Railway does not document it, so you install and verify it yourself. Google ranks 103rd: you build images outside and push them to Artifact Registry. boat ranks 2nd. | 116th cheapest of 374 $1,210 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 Railway (71st) has SSH, and its Cloud Agents keep a disk (Priority Boarding). Google documents no SSH, and each execute_bash() call runs in a new shell. boat ranks 19th. | 69th cheapest of 371 $89 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 Railway ranks 15th with your own setup: add Xvfb and noVNC. Google's Computer Use sandbox (86th) is a browser with a VNC live view and a click and type API. boat includes a 60 fps desktop and ranks 10th. | 47th cheapest of 367 $407 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 | 53rd of 356, with limits $93 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 | 65th cheapest of 343 $570 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 | 111th of 327, with limits $2,988 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 | 71st of 351, with limits $574 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 | Railway | Google Agent Runtime | boat |
|---|---|---|---|
| Isolation | Sandboxes are isolated Linux VMs; app services are containers | gVisor-isolated container in a Google-managed tenant project | Every sandbox is a full VM with its own kernel, on a host dedicated to boat; vCPUs are shared |
| Root, Docker and nested virtualization | Root shell on Ubuntu; Docker and /dev/kvm are not documented: you install and verify them yourself | Runs as appuser with no sudo; images must not need root; Docker and /dev/kvm not documented; you build images outside | Root, systemd, Docker and /dev/kvm on every machine |
| Shell access | SSH and port forwarding, plus exec from the CLI or SDK | execute_bash() API calls; each command runs in a new shell; SSH not documented | SSH, plus an API for commands |
| When the sandbox goes idle | Destroyed after the idle timeout (30 minutes by default, or 0 for never); files survive in checkpoints you take | Lives until its TTL ends (7 days at most for a custom container); pause keeps files at a lower, unpublished rate | Stops when auto-stop runs out (1 hour by default); disk saved every minute and at stop, kept at least 14 days |
| Snapshots and branching | Fork a running sandbox's filesystem; named disk checkpoints boot new ones (no memory) | Snapshots (Preview) keep memory and files; start many sandboxes from one snapshot | Fork from the last 1-minute snapshot; saved snapshots start new ones (disk only, no memory) |
| Reaching the sandbox | Up to 10 public HTTPS domains, set only at creation, with no built-in auth; SSH | Through Google's API, or a private endpoint in your own VPC; a public URL is not documented | Up to 50 HTTPS URLs, token-gated by default; SSH; public IPv6 for raw ports. No dedicated IPv4. |
| Outbound internet | Open internet from the sandbox | Off unless the template turns it on; can route through your VPC with Cloud NAT, a static IP or Cloud NGFW | Open internet on every plan; no provider-side allowlist |
| Desktop and computer use | No desktop included; you can add Xvfb and noVNC with the template builder and publish the port | A browser in a container with a VNC live view, a click, type and screenshot API, and CDP; a full desktop you build into a custom image | Built-in desktop and Chrome stream at 1920x1080, 60 fps, with computer-use tools |
| Coding agents | Claude Code, Codex, OpenCode and Pi preinstalled, run through exec | Managed Agents API (Preview) runs Google's Antigravity harness; other harnesses you install in a custom image | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Keeping keys out of the sandbox | Secrets go into the sandbox as environment variables, or are saved in a checkpoint | You provision and scope the credentials the agent uses | Optional paid credentials proxy ($1 per day on, plus $1 per 1,000 requests) for supported model providers; other secrets still enter |
| What else it hosts | Web services, Postgres and Redis in the same project; a sandbox can join their private network | Agent Runtime deploys ADK, LangGraph, LangChain, AG2 and LlamaIndex agents; idle time between turns is not billed | Sandboxes only; you host your own services or agent loop inside a sandbox |
| Biggest sandbox | 8 vCPU / 8 GB on Hobby; on Pro up to 32 vCPU / 32 GB per the docs (24 vCPU / 24 GB per the pricing page) | Runtime up to 8 vCPU / 32 GiB; sandbox maximum not published; changing a sandbox's size means deleting it | 8 vCPU / 16 GB on the $20 plan, 16 vCPU / 32 GB from the $100 plan |
| How long a sandbox lives | No documented cap while it is active; the idle timeout can be set to 0 | 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 cap |
| Regions | US West, US East, Amsterdam and Singapore | 23 locations in the US, Europe, the Middle East, Asia, Canada, Australia and Brazil | Germany, Finland and France; no US or Asia region, and you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Railway | Google Agent Runtime | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Not published | No documented way | Yes |
| Nested virtualization | Not published | 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 | Yes | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | Yes | Yes |
| Pause/resume | Yes | Yes | Yes |
| Automatic snapshots | No documented way | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Yes | Yes | Yes |
| Memory fork | No documented way | 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 | No documented way | 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 | Yes | Yes | Yes |
| Agent harness API | Yes | 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 | No documented way | No documented way | No documented way |
| BYOC | Yes | 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 | Yes | Not published | Yes |
| Usage per sandbox (API) | No documented way | Yes | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | 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
Neither Railway nor Google Agent Runtime is in the public 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 that 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.
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. Railway 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 | Railway, 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 | $16 · Hobby · 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 | $70 · Hobby · 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 | $739 · Hobby · 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 | $223 · Pro · 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 | $781 · Pro · with limits | $2,060 · Pay as you go | $8,800 · $2000/mo · with limits |
Railway: Railway bills sandboxes per second at about $50 per vCPU-month on CPU actually used and $50 per GB-month on memory in use, plus $0.05 per GB out. Memory keeps billing while a sandbox waits, until it is destroyed. The Hobby ($5) and Pro ($20) fees count toward usage. Railway publishes no price for sandbox disk.
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. Runtime skips idle time between turns, but sandboxes bill while they exist. 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 running sandbox bills per second at full rate, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. Extra starts cost $0.03 to $0.07 each.
Limits in those scenarios
Railway marks every scenario as not a clean fit because it is an app platform first and does not price sandbox disk. It caps sandboxes at 50 per environment on Hobby and 100 on Pro, so 300 user sandboxes or 1,000 jobs at once need several environments. Google fits four of the five scenarios but not the 50-agent fleet, because it documents no Docker inside its sandboxes. Every Google row leaves disk and egress unpriced. A Google sandbox is deleted when its TTL ends, 7 days at most for a custom container. boat's $2,000 plan charges for starts above 90 a minute and refuses them above 270, so boat does not fit the 1,000-job burst; Google does, at $2,060.
| Scenario | Railway | 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 Railway when
your app and databases already live on Railway and you want VM sandboxes with a root shell and SSH on the same private network.
- A VM with a root shell and SSH. Useful if your agent needs root and SSH: Railway sandboxes are Linux VMs, while Google sandboxes run as an unprivileged user.
- Next to your apps and databases. Useful if your app already runs on Railway: a sandbox can join the private network of your Postgres and services.
- Public URLs for what agents build. Useful when people need to open a preview: Railway gives up to 10 public HTTPS domains per sandbox. Google documents no public URL.
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 code runs 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.
- Memory snapshots and 23 regions. Useful if you branch sandboxes with their memory, or need regions in Asia, Australia, Canada or Brazil.
Where boat fits
Railway is an app platform with sandboxes added, and Google Agent Runtime is agent hosting inside Google Cloud. If you run coding or computer-use agents that work for hours or days, boat gives each one a full VM that saves its disk every minute, with Docker, a desktop and coding agents you drive by API. boat runs only in the EU and limits starts by plan.
Root, Docker and a real kernel
Google sandboxes run as appuser with no sudo, and Google documents no Docker inside, so the 50-agent fleet does not fit there. Railway gives root but does not document Docker. boat documents root, systemd, Docker and /dev/kvm on every VM.
Work that survives a stop
Railway destroys an idle sandbox after 30 minutes by default unless you took a checkpoint; turning that off keeps memory billing. Google deletes a sandbox when its TTL ends, unless you restore a snapshot. A boat sandbox stops and keeps a disk saved every minute. Memory is not saved.
Agents you drive and watch
Railway runs coding agents through exec, and Google's managed harness is Antigravity. boat adds a prompt, steer and events API, a 60 fps desktop, HTTPS on 50 ports and an optional paid credentials proxy.
Use boat when your agents work for hours or days and need a full VM: root, Docker, a desktop, public URLs and coding agents you drive by API, with the disk saved every minute. boat runs only in the EU. Compare it one to one: boat vs Railway 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 Railway cheaper than Google Agent Runtime?
In all five scenarios we priced, Railway comes out lower: one agent running all month is $70 on Railway against $301 on Google, and 50 agents in parallel are $739 against $3,626. Railway's bills leave out disk, and Google's leave out disk and egress. A Google Runtime agent that sits idle between turns bills less than a sandbox that exists all month. boat comes to $26 and $317 for those two.
Which is faster, Railway or Google Agent Runtime?
We cannot say: neither is in the public benchmarks we use. In StarSling's run of 3 October 2026, boat did 28.06 runs/s at 4 vCPU / 8 GB on a Ryzen 9 9950X host.
Can I run Docker in Railway or Google sandboxes?
Google's managed sandboxes run commands as the unprivileged user appuser with no sudo, and Google documents no Docker inside; you build images outside and push them to Artifact Registry. Railway sandboxes give a root shell on Ubuntu, but its docs do not mention Docker, so you install and verify it yourself. On boat every sandbox is a VM with root, Docker and /dev/kvm.
What happens to my files when the sandbox stops?
Railway destroys an idle sandbox after its idle timeout, 30 minutes by default, and the checkpoints you took survive. Google keeps files while a sandbox is paused and deletes it when its TTL ends; a snapshot (Preview) can carry files and memory into a new sandbox. A boat sandbox stops, keeps its disk at least 14 days and has no compute charge while stopped.
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.
Can an agent use a desktop on Railway or Google?
Railway includes no desktop; you can add Xvfb and noVNC and publish the port. Google's Computer Use sandbox is a browser with a VNC live view and a click and type API; a full desktop you build into a custom image. boat streams a 60 fps desktop with Chrome and computer-use tools.
Try boat
Install the CLI, then run boat new.
7-day free trial