Railway vs AWS AgentCore

Railway is an app platform that added Linux sandbox VMs. A busy sandbox has no time cap, but Railway destroys it after an idle timeout unless you take a checkpoint. AWS AgentCore hosts agents inside your AWS account. Its microVM sessions have 2 vCPU and stop after 8 hours, and it adds managed Code Interpreter and Browser tools.

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.

AWS AgentCore

Amazon Bedrock AgentCore is a set of AWS services to deploy and run AI agents: a Runtime that hosts your agent code, plus built-in Code Interpreter and Browser tools.

AgentCore is not a sandbox product first. It is a hyperscaler's agent platform: you push a container image or code, and each Runtime session gets its own Firecracker microVM. You reach a session through AgentCore APIs, an interactive shell API and authenticated HTTPS session endpoints. Around it sit managed tools (Code Interpreter, Browser) and services for memory, identity, gateways and evaluations. An Instances compute type runs longer sessions on EC2 in your own account. It is built for teams who already build on AWS and want agents to stay inside their account, IAM and VPC.

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 workloadRailway: price rankAWS AgentCore: price rankboat: 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: keep work in checkpoints, or set the idle timeout to 0. AgentCore keeps only files under /mnt mounts. boat saves the whole disk every minute and ranks 8th.
28th cheapest of 365
$1,481 a month
132nd of 365, with limits
$888 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Railway ranks 30th: a sandbox with the idle timeout set to 0 keeps running, and memory bills the whole time. AgentCore needs the Instances type to outlast its 8-hour microVM lifecycle.
21st cheapest of 361
$3,977 a month
109th of 361, with limits
$1,300 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
AgentCore ranks 11th here: Code Interpreter is built for short code runs billed on CPU used and peak memory. Railway ranks 43rd and also bills CPU used, but caps sandboxes per environment.
42nd cheapest of 336
$413 a month
11th cheapest of 336
$114 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 fits cleanly. Railway caps sandboxes at 100 per environment on Pro. AgentCore session endpoints need an AWS signature or an OAuth token on every request. boat ranks 3rd.
46th of 349, with limits
$290 a month
205th of 349, with limits
$506 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
129th of 349, with limits
$8,075 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
113th of 359, with limits
$364 a month
46th cheapest of 359
$650 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
AgentCore ranks 50th and Railway 115th. Neither documents Docker or /dev/kvm inside a session, so you install and verify them yourself. boat documents both and ranks 2nd.
116th cheapest of 374
$1,210 a month
51st cheapest of 374
$399 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Railway fits a 24/7 dev box with SSH, or a Cloud Agent that keeps its disk (Priority Boarding). AgentCore has an interactive shell API but no SSH, and keeps only files under /mnt after a stop.
69th cheapest of 371
$89 a month
242nd of 371, with limits
$52 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: no desktop is included, but you can add Xvfb and noVNC and publish the port. AgentCore Browser drives a browser window, not a whole desktop.
47th cheapest of 367
$407 a month
146th of 367, with limits
$202 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
AgentCore ranks 4th with a managed Chromium that has live view and replay. Railway ranks 54th and has no managed browser service: Chromium is in the Cloud Agent image, or you install it in a sandbox.
53rd of 356, with limits
$93 a month
4th cheapest of 356
$144 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
32nd cheapest of 343
$287 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
164th of 327, with limits
$5,458 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
108th of 351, with limits
$294 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

FeatureRailwayAWS AgentCoreboat
What it isAn app platform for services and databases, with sandbox VMs and Cloud Agents added in 2026An AWS agent platform: hosted agent sessions plus managed Code Interpreter and Browser toolsA sandbox platform: each agent gets its own full Linux machine
IsolationSandboxes and Cloud Agents are isolated Linux VMs; app services are containersFirecracker microVM per Runtime session; Code Interpreter and Browser in a containerized environmentFull VM with its own kernel on a physical host dedicated to boat (Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Biggest machine8 vCPU / 8 GB on Hobby; on Pro up to 32 vCPU / 32 GB per the docs (24 vCPU / 24 GB per the pricing page)2 vCPU / 8 GB per microVM session, not adjustable; on Instances, the EC2 type you pick sets the size8 vCPU / 16 GB on the $20 plan, 16 vCPU / 32 GB from the $100 plan
Session lengthNo maximum while active; destroyed after the idle timeout (30 minutes by default, or never if set to 0)Up to 8 hours per microVM lifecycle, stopped after 15 idle minutes by default; up to 14 days on InstancesAuto-stop defaults to 1 hour; set up to 30 days, or turn it off on a paid plan for no cap. A stopped sandbox keeps its disk.
Disk, snapshots and forkDisk checkpoints you take boot new sandboxes; fork a running sandbox's filesystem; Cloud Agents keep their diskFiles under /mnt survive: a 1 GB session mount (preview), your own EFS or S3 Files in a VPC, or EBS on Instances; no session snapshot or forkDisk saved every minute and at each stop, kept at least 14 days; fork from the last 1-minute snapshot. Memory is not saved.
Docker and /dev/kvmRoot shell on Ubuntu; Docker and /dev/kvm are not documented: you install and verify them yourselfRoot inside the microVM, your own container image; Docker and /dev/kvm not documentedRoot, Docker, systemd and /dev/kvm documented on every machine
Reaching the sandboxUp to 10 public HTTPS domains, set only at creation, with no built-in auth; SSH and port forwardingAuthenticated HTTPS session endpoints for 1 to 5 ports (IAM or OAuth on every request, not on Instances); interactive shell API; no SSHUp to 50 HTTPS URLs, token-gated by default or public; SSH; raw ports over IPv6 on sandboxes with no IPv4 of their own
Private networkA sandbox can join the project's private network with your Postgres and servicesVPC mode with security groups, PrivateLink and a NAT gateway for a fixed outbound IPOpen internet, no provider-side allowlist; no hosted databases; the IP changes at each resume
Browser and desktopNo desktop included; you can add Xvfb and noVNC with the template builder and publish the portManaged Chromium with live view, session recording and replay, profiles and proxies; no desktop beyond the browser windowBuilt-in Linux desktop and Chrome stream at 1920x1080, 60 fps, with computer-use tools
Coding agentsClaude Code, Codex, OpenCode and Pi preinstalled, run through exec; Cloud Agents keep terminal sessions you reattach toAWS's managed harness built on Strands Agents, or your own agent code; other harnesses go in your container imageSeven harnesses installed, including Claude Code and Codex, with a prompt, steer and events API
Keeping API keys out of the sandboxSecrets go into the sandbox as environment variables, or are saved in a checkpointAgentCore Identity stores OAuth tokens and API keys and hands them to your agent codeOptional paid credentials proxy ($1 per day on, plus $1 per 1,000 requests): real keys of supported model providers stay outside; other secrets still enter
Sandboxes at oncePer environment: 50 on Hobby, 100 on Pro; Enterprise can ask for more. No published start limit.1,000 Code Interpreter or Browser sessions; Runtime 5,000 active sessions in us-east-1 and us-west-2, 2,500 elsewhere100 to 2,000 by plan; starts limited per minute, hour and day (12 / 60 / 200 on $20)
GPUsNone documented for sandboxesNVIDIA G-series and Inferentia2 on the Instances typeNo GPU on any size
RegionsUS West, US East, Amsterdam and Singapore21 commercial AWS regions plus GovCloud (Instances in 9)Germany, Finland and France; no US or Asia region, and you cannot pick one
Every feature Battleships tracks (43)
FeatureRailwayAWS AgentCoreboat
Full VM (own kernel)YesYesYes
Docker insideNot publishedNot publishedYes
Nested virtualizationNot publishedNo documented wayYes
RootYesYesYes
SystemdNot publishedNo documented wayYes
Desktop GUIWith your own setupNo documented wayYes
BrowserYesYesYes
Computer-use APINo documented wayYesYes
SSHYesNo documented wayYes
Persistent diskYesYesYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsNo documented wayNo documented wayYes
Fork/cloneYesNo documented wayYes
Live fork (no pause)YesNo documented wayYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesNo documented wayYes
Idle auto-stopYesYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistNo documented wayYesNo documented way
Secret proxyNo documented wayNo documented wayYes
Secret proxy for any APINo documented wayNo documented wayYes
Preinstalled agentsYesNo documented wayYes
Agent harness APIYesNo documented wayYes
MCP serverYesYesNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCYesYesNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesWith your own setupYes
Usage per sandbox (API)No documented wayNo documented wayYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

RailwayNot measured
AWS AgentCoreNot measured
boat28.06 runs/s

Neither Railway nor AWS AgentCore 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. An AgentCore microVM session stops at 2 vCPU, so a like-for-like test there would need the Instances type.

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 AWS AgentCore 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.

ScenarioRailway, a monthAWS AgentCore, 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
$16 · Hobby · with limits$26 · Pay-as-you-go (Instances) · 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$107 · Pay-as-you-go (Instances) · 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$1,286 · Pay-as-you-go (Instances) · 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$423 · 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$1,615 · Pay-as-you-go (Instances)$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. Plans: Free ($0 with $1 of usage a month), Hobby ($5) and Pro ($20); the Hobby and Pro fees count toward usage. Railway publishes no price for sandbox disk, so these bills leave disk out.

AWS AgentCore: No monthly fee. Runtime v1 microVMs, Code Interpreter and Browser bill per second: $0.0895 per vCPU-hour for CPU actually used and $0.00945 per GB-hour for peak memory. The 4 vCPU shape in these scenarios is the Instances type: the EC2 on-demand price plus a 12% management fee, with EBS storage and data transfer billed on top. The scenario prices leave out EBS storage.

AWS AgentCore: 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. The $20 plan includes 12 starts per minute and 200 per day; extra starts cost $0.03 to $0.07 each. A card is required, also for the 7-day trial.

Limits in those scenarios

Railway is marked as a different kind of product in every scenario, and its bills count CPU and memory only because it does not price sandbox disk. Its Pro plan allows 100 sandboxes per environment, so 300 sandboxes for your users or 1,000 jobs at once need several environments or an Enterprise limit. AgentCore's microVM sessions stop at 2 vCPU and 8 hours, so the 4 vCPU agents here use the Instances type, and files outside /mnt reset after a stop. AgentCore is the one that fits 1,000 short jobs at once. boat's $2,000 plan charges for starts above 90 a minute and refuses them above 270. A boat resume is like a reboot, and if a machine fails, you lose what was written after the last good snapshot.

ScenarioRailwayAWS AgentCoreboat
One coding agent, workdays
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
One agent that never stops
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • Pay-as-you-go (Instances): sessions capped at 336 h
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
50 agents in parallel
  • not confirmed: Docker inside
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • files survive a stop only in capacity provider EBS volumes under /mnt: packages installed elsewhere reset
  • disk beyond 0 GiB: price unknown
None for this scenario
Sandboxes for your users
  • Pro: max 100 concurrent
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • different kind of product: code interpreter
None for this scenario
1,000 short jobs at once
  • Pro: max 100 concurrent
  • different kind of product: app platform
  • disk beyond 0 GiB: price unknown
  • disk beyond 0 GiB: price unknown
  • 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 Railway when

your app and databases already live on Railway and you want sandboxes on the same private network, with big machines, SSH and public URLs, in US, EU or Asia regions.

  • 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.
  • Bigger machines with no session cap. Useful for heavy, long jobs: up to 32 vCPU / 32 GB on Pro per the docs, and a busy sandbox runs as long as you need.
  • SSH and public URLs anyone can open. Useful when people need to open what the sandbox serves: SSH plus up to 10 public HTTPS domains. AgentCore session endpoints need AWS credentials or a token.

Use AWS AgentCore when

your agents must stay inside your AWS account and VPC, need a GPU, or are short code and browser tasks that fit its managed tools.

  • It lives inside your AWS account. Teams built on AWS keep agents behind their own IAM, VPC, security groups and PrivateLink, in 21 commercial regions plus GovCloud.
  • Managed tools for short runs. Code Interpreter and Browser bill only for CPU used and peak memory, run up to 1,000 sessions at once, and Browser adds live view and replay.
  • GPUs and two-week sessions. Agents that need a GPU or a session of up to 14 days can use the Instances type on EC2 in your account, at the EC2 price plus a 12% fee.

Where boat fits

Railway and AgentCore both suit work that sits next to something you already run: your Railway apps, or your AWS account. If your agents work on one machine for hours or days, installing tools, running Docker and opening a browser, look at boat. Each agent gets a full VM that saves its disk every minute, with a desktop and an API to drive the agent from outside. boat runs only in Germany, Finland and France, and limits starts by plan.

A disk that stays

Railway destroys an idle sandbox after 30 minutes by default, unless you took a checkpoint or set the timeout to 0, which bills memory until you destroy it. AgentCore keeps only files under /mnt mounts. boat saves the disk every minute and at each stop, and keeps it at least 14 days. Memory and running programs are not saved.

Docker, /dev/kvm and a desktop, documented

Neither documents Docker or /dev/kvm inside a session, so you install and verify them yourself. Railway includes no desktop, but you can add one; AgentCore Browser drives a browser window. boat documents all of it and adds a 60 fps desktop. boat has no GPU.

Agents you drive from outside

On Railway you run agents through exec and parse their output, with keys as environment variables. On AgentCore you write the agent code and Identity hands it the keys. boat adds prompt, steer and events, and an optional paid credentials proxy.

Use boat when your agents work for hours or days: a full VM that saves its disk every minute, with Docker, /dev/kvm and a desktop documented, 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 AWS AgentCore.

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 AWS AgentCore?

In these tables Railway comes out lower in four of five scenarios: one agent on workdays is $16 vs $26, running all month $70 vs $107, 50 agents in parallel $739 vs $1,286, and sandboxes for your users $223 vs $423. Railway's bills leave out disk, and AgentCore's leave out EBS storage. AgentCore is the only one of the two that fits 1,000 short jobs at once, at $1,615. boat comes to $20, $26, $317 and $200 for the first four. It does not fit the 1,000-job burst, because its plans limit starts.

Which is faster, Railway or AgentCore?

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. An AgentCore microVM session tops out at 2 vCPU.

Can Railway or AgentCore run Docker?

Both give you root, but neither Railway's sandbox docs nor AgentCore's docs say Docker or /dev/kvm work inside a session. You install and verify them yourself. boat documents Docker and /dev/kvm on every machine.

How long can a session run on Railway and on AgentCore?

A busy Railway sandbox has no maximum lifetime, but Railway destroys it after its idle timeout, 30 minutes by default, unless you set it to 0. An AgentCore microVM session lasts up to 8 hours and stops after 15 idle minutes by default; the Instances type runs up to 14 days. On boat, auto-stop defaults to 1 hour; turn it off on a paid plan for no cap.

Do files survive when a sandbox stops?

On Railway, in checkpoints you take before the sandbox is destroyed, or on a Cloud Agent, which keeps its disk. On AgentCore, in paths under /mnt: a 1 GB session mount (preview), your own EFS or S3 Files, or EBS on Instances. boat saves the disk every minute and at each stop, and keeps it at least 14 days. Memory and running programs are not saved on any of the three.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons