Railway vs OpenAI Containers
Railway sandboxes are Linux VMs with root, SSH and open internet that you create from a CLI or SDK, next to apps you host on Railway. OpenAI Containers are the boxes the model runs code in during an API call. They run without sudo, have no documented inbound ports, and Code Interpreter and Hosted Shell containers have no internet until an admin allows domains.
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.
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.
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 | OpenAI Containers: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory needs root, Docker and a disk that stays. Railway gives root, but destroys idle sandboxes unless you checkpoint them. Hosted OpenAI containers run without sudo and discard files when they expire; you can connect the Agents API to a sandbox you host yourself. | 28th cheapest of 365 $1,481 a month | 357th of 365, with limits $17,371 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB An always-on assistant fits on Railway with the idle timeout set to 0, and memory then bills the whole time. An OpenAI container expires after 20 idle minutes by default (expires_after can set longer), and its files go when it expires. | 21st cheapest of 361 $3,977 a month | 344th of 361, with limits $13,140 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 what OpenAI Containers are built for: the model runs its code in the same API call, with no machine to manage. Railway also fits short code runs and bills for CPU used. | 42nd cheapest of 336 $413 a month | 198th of 336, with limits $6,000 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 gives each sandbox public HTTPS domains and SSH, but caps sandboxes per environment. OpenAI documents no inbound ports for hosted containers; you reach them through the API. boat gives each sandbox up to 50 HTTPS URLs. | 46th of 349, with limits $290 a month | 349th of 349, with limits $3,780 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 | 195th of 349, with limits $30,000 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 Railway can fork a running sandbox and boot many from one checkpoint. OpenAI documents no fork, so you create a new container and upload the same files. boat forks a running sandbox from its last 1-minute snapshot. | 113th of 359, with limits $364 a month | 355th of 359, with limits $5,760 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 need open internet and usually Docker. Railway has open internet and root, but does not document Docker. Code Interpreter and Hosted Shell containers start with no internet and document no Docker. boat documents Docker on every sandbox. | 116th cheapest of 374 $1,210 a month | 347th of 374, with limits $1,728 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Railway's Cloud Agents (Priority Boarding) and SSH make it a workable dev box. Hosted OpenAI containers document no SSH, and their files go when they expire. A boat sandbox keeps its disk for at least 14 days after a stop. | 69th cheapest of 371 $89 a month | 365th of 371, with limits $1,051 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 includes no desktop; you can add Xvfb and noVNC with the template builder. OpenAI has a hosted browser for computer use in the Agents API beta. boat streams a 60 fps desktop with Chrome that you can embed. | 47th cheapest of 367 $407 a month | 353rd of 367, with limits $5,280 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 | 335th of 356, with limits $1,440 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 | 334th of 343, with limits $1,755 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 | 307th of 327, with limits $35,100 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 | 310th of 351, with limits $870 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 | OpenAI Containers | boat |
|---|---|---|---|
| What it is | An app platform that added sandbox VMs you create from a CLI or TypeScript SDK | A sandbox tool the model uses inside OpenAI's API | A cloud VM you create, keep, stop and reach from outside |
| Isolation | Sandboxes and Cloud Agents are isolated Linux VMs; app services are containers | A fully sandboxed virtual machine; hypervisor not named | Full VM with its own kernel, on physical hosts dedicated to boat; vCPUs are shared |
| Root, Docker and nested virtualization | Root shell on an Ubuntu VM; Docker and /dev/kvm are not documented, so you install and verify them yourself | Commands do not run with sudo; Docker and /dev/kvm are not documented; the Agents API can drive a sandbox you host | Root, systemd, Docker and /dev/kvm documented on every sandbox |
| When the sandbox goes idle | Destroyed after the idle timeout (30 minutes by default, or never if set to 0); files survive in checkpoints you take | Expires after 20 minutes without use by default (expires_after can be set on create); data is discarded | Auto-stop after 1 hour by default; disk saved every minute and at stop, kept at least 14 days; no compute charge while stopped |
| Fork and checkpoints | Fork a running sandbox's filesystem; named disk checkpoints boot new ones | No fork or snapshot call documented; you create a new container and upload the same files | Fork a running sandbox from its last 1-minute snapshot; saved snapshots start new ones |
| Custom image | Templates built from ordered steps (apt packages, env, commands) and cached | Fixed Debian 12 image; you upload files or skills into each container | Saved snapshots of a set-up sandbox, reused as templates; you cannot boot your own Docker image |
| Machine size | 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) | 1, 4, 16 or 64 GB of memory; vCPU not published. Agents API sandboxes: up to 4 vCPU / 16 GB | 4 vCPU / 8 GB by default, up to 16 vCPU / 32 GB (xlarge needs the $100 plan) |
| Reaching the sandbox | Up to 10 public HTTPS domains, set at creation, with no built-in auth; SSH and port forwarding | No inbound ports documented for hosted containers; you reach them through the API | SSH, up to 50 HTTPS URLs, token-gated by default; raw ports over IPv6 on sandboxes with no IPv4 of their own |
| Outbound internet | Open internet | Code 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 hosts | Open internet on every plan; no provider-side allowlist |
| Keeping API keys out of the sandbox | Secrets go in as environment variables, or are signed in and saved in a checkpoint | domain_secrets: a sidecar adds the real header for approved domains, and the model sees a placeholder | Optional paid proxy ($1 a day when on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs; other secrets still enter |
| Coding agents | Claude Code, Codex, OpenCode and Pi in the image, run through exec | Agents API (beta) drives a managed Codex harness from outside, with steering, events and webhooks | Seven harnesses installed, including Claude Code, Codex and OpenCode, with a prompt, steer and events API |
| Desktop and computer use | No desktop included; you can add Xvfb and noVNC with the template builder and publish the port on a sandbox domain | Hosted browser for the Agents API computer_use tool | Built-in desktop and Chrome at 1920x1080, 60 fps, with computer-use tools and an embeddable stream |
| Apps and databases next to the sandbox | Deploy Postgres, Redis and services in the same project; a sandbox can join their private network | None; files go in and out through the API | No hosted databases; host your own inside a sandbox |
| Regions | US West, US East, Amsterdam and Singapore | US or EU processing for Code Interpreter; Agents API data residency in the US only | Germany, Finland and France; you cannot pick a region; no US or Asia region |
Every feature Battleships tracks (43)
| Feature | Railway | OpenAI Containers | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | 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 | Yes | Yes |
| Browser | Yes | Yes | Yes |
| Computer-use API | No documented way | Yes | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | Yes | No documented way | Yes |
| Pause/resume | Yes | No documented way | Yes |
| Automatic snapshots | No documented way | No documented way | Yes |
| Fork/clone | Yes | No documented way | Yes |
| Live fork (no pause) | Yes | No documented way | Yes |
| Memory fork | No documented way | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | No documented way | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | 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 | No documented way | 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 | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | Yes | No documented way | 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 | No documented way | No documented way |
| Self-hosting | No documented way | Yes | 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 | No documented way | 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
Railway and OpenAI Containers are not in the public benchmarks we use, so we cannot say which is faster, and OpenAI does not publish the vCPU behind each container size. 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 sandboxes on other 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. Railway and OpenAI Containers 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 | OpenAI Containers, 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 | $228 · API pay as you go · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $70 · Hobby · with limits | $1,051 · API pay as you go · with limits | $26 · $20/mo |
| 50 agents in parallel 50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside | $739 · Hobby · with limits | $11,405 · API 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,620 · API pay as you go · with limits | $200 · $100/mo × 2 seats |
| 1,000 short jobs at once 2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month | $781 · Pro · with limits | $6,000 · API pay as you go · with limits | $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, and memory keeps billing while a sandbox waits until it is destroyed. Plans: Free ($0 with $1 of usage a month), Hobby ($5) and Pro ($20 per workspace); the Hobby and Pro fees count toward usage. Sandbox disk has no published price, so our numbers leave disk out.
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. Our scenarios use the 16 GB size ($1.44 an hour) for 8 GB needs, because OpenAI does not publish the vCPU per size.
OpenAI Containers: 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 sandbox costs $0.036 an hour, billed per second while it runs. A stopped sandbox has no compute charge, but saved snapshots above the included count and the AI credentials proxy still charge. The $20 plan allows 100 sandboxes at once and 12 starts per minute, 60 per hour, 200 per day. Extra starts cost $0.03 to $0.07 each.
Limits in those scenarios
Neither cleanly fits the five scenarios. We mark every Railway scenario as not a clean fit because Railway publishes no sandbox disk price, so its bills count CPU and memory only. Railway 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 or an Enterprise limit. Hosted OpenAI containers discard their files when they expire and document no Docker or root, and OpenAI does not publish how many can run at once. On boat, the 1,000-job burst needs more starts than the $2,000 plan includes, and starts above 270 a minute fail with 429.
| Scenario | Railway | OpenAI Containers | 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
you want VMs with root and open internet next to apps and databases you already host on Railway, or you need US or Asia regions.
- A real machine with root and internet. Useful if your agent installs packages or calls outside APIs: a Railway sandbox is a VM with root, SSH and open internet.
- Your apps and databases in one place. Useful if your app already runs on Railway: sandboxes can join the same private network as your Postgres and services.
- Fork and checkpoints. Useful for evals and retries: fork a running sandbox's files or boot many new ones from one checkpoint.
Use OpenAI Containers when
your app already calls OpenAI models and the model only needs to run short pieces of code on files you give it, with a locked-down network.
- 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.
- Locked-down network by default. Useful if code must only reach chosen hosts: Code Interpreter and Hosted Shell have no internet until an admin allows domains.
- Keys the model never sees. Useful when code calls approved APIs: a sidecar adds the real secret, and the model only sees a placeholder.
Where boat fits
For agents that work for hours or days, both have a lifecycle to plan around: Railway destroys idle sandboxes unless you checkpoint them, and an OpenAI container discards its files when it expires. boat gives each agent a full VM that stops instead of disappearing, with Docker, a desktop, ports you can reach and coding agents you drive by API. boat runs only in the EU and limits starts by plan.
A disk that stays
An agent waiting on a review loses its clone and installs when Railway's idle timeout runs out, unless it took a checkpoint. An OpenAI container discards its data when it expires, 20 idle minutes by default. A boat sandbox saves its disk every minute and at each stop, and keeps it for at least 14 days. A boat resume is like a reboot.
Docker, systemd and /dev/kvm
Real repos often need a database in Docker or an emulator. OpenAI's hosted containers run without sudo and document no Docker; you can connect the Agents API to a sandbox you host. Railway's sandbox docs do not mention Docker or /dev/kvm, so you install and verify them yourself. boat documents all three.
A desktop and agents you drive from outside
Railway includes no desktop, though you can install one, and you parse each agent's exec output yourself. OpenAI drives its own Codex harness and has a hosted browser. boat has a 60 fps desktop and a prompt, steer and events API for seven harnesses, including Claude Code and Codex.
Use boat when your agents need a machine they keep: a full VM with Docker, a disk saved every minute, a desktop, ports you can reach and coding agents you drive by API. boat runs only in the EU and limits starts by plan. Compare it one to one: boat vs Railway and boat vs OpenAI Containers.
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 OpenAI Containers?
In every scenario here, yes. One agent running all month comes to $70 on Railway and $1,051 on OpenAI, and 50 agents in parallel come to $739 against $11,405. OpenAI also bills model tokens on top, and Railway's numbers leave out disk, which it does not price. boat comes to $26 and $317 for the same two jobs.
Which is faster, Railway or OpenAI Containers?
We cannot say: neither is in the public benchmarks we use, and OpenAI does not publish the vCPU behind each container size. boat did 28.06 V8 Web Tooling runs/s at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, on an AMD Ryzen 9 9950X host.
Can Railway or OpenAI Containers run Docker?
Railway gives a root shell, but its sandbox docs do not mention Docker, so you install and verify it yourself. OpenAI's hosted shell runs commands without sudo and documents no Docker; the Agents API can drive a sandbox you host. boat documents root, systemd, Docker and /dev/kvm on every sandbox.
How long do Railway sandboxes and OpenAI containers last?
A Railway sandbox is destroyed after its idle timeout, 30 minutes by default, or never if you set it to 0. An OpenAI container expires after 20 minutes without use by default, and expires_after can set a longer idle time; its data is discarded when it expires. A boat sandbox has no session cap once auto-stop is off on a paid plan (default 1 hour), and keeps its disk for at least 14 days after a stop.
Can I open a web app running inside the sandbox?
On Railway, yes: a sandbox can have up to 10 public HTTPS domains, plus SSH. OpenAI documents no ports, URLs or SSH for hosted containers. boat gives each sandbox up to 50 HTTPS URLs, token-gated by default, plus SSH.
Is boat SOC 2 compliant?
SOC 2 is in progress, so boat has no SOC 2 report today. Live status is at status.ascii.dev and the data retention policy is at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial