Agent Sandboxesagentsandboxes.org
Sandbox profile · Hosted platform

Railway Sandboxes

Answer in brief

On-demand Linux VMs inside a Railway environment with forks, checkpoints, Docker, private networking to your services and per-second billing; generally available since September 2026. The natural sandbox for teams already deploying on Railway, strongest when agents need private-network access to existing services.

By the Agent Sandboxes editors · Updated

Overview

Railway Sandboxes are isolated Linux VMs that Railway, the application-hosting platform, creates on demand inside one of your project environments. The Ubuntu base image ships git, Node and the Claude Code, Codex, OpenCode and Pi agents, and every sandbox includes a Docker daemon. You drive them from the open-source railway TypeScript SDK, the Railway CLI, the dashboard or the GraphQL API, with a files API, durable sessions that keep 8 MiB of output for reattachment, SSH and port forwarding. The feature graduated from Priority Boarding to general availability on 17 September 2026 and is available on every plan.

The differentiator is environment scoping: a sandbox can join the environment's private network and talk to your Postgres or other services by hostname, or stay isolated with outbound-only internet. State is handled with forks (disk copies of running sandboxes), named checkpoints and cached templates, but there is no pause/resume and idle sandboxes are destroyed after a configurable timeout. Billing is per second at Railway's standard memory and active-CPU rates, drawn from the plan's included usage; plan caps run from 10 sandboxes at 2 vCPU on Free to 100 at up to 32 vCPU on Pro. The hypervisor is not named.

Notable

  • Generally available since 17 September 2026 after a June 2026 Priority Boarding launch
  • Four regions: US West, US East, EU West and Southeast Asia
  • Every sandbox includes the Docker daemon and CLI

Railway Sandboxes specifications

AttributeDetails
IsolationIsolated Linux virtual machine per sandbox; hypervisor not named
DeploymentHosted platform
Open sourceNo
SDKs and interfacesJavaScript/TypeScript, CLI, GraphQL API
Cold start (vendor claim)Product page: "ready in seconds"; no figure
Max session lengthNo maximum lifetime stated; idle timeout destroys the sandbox after 30 minutes by default on Hobby and Pro (1-120 minutes, or disabled) and after 5 minutes on Free and Trial (1-5 minutes, cannot be disabled)
PersistenceSandboxes are ephemeral; checkpoints are named server-side disk snapshots that outlive the sandbox and boot where captured; forks copy a running sandbox's disk (not memory or processes); templates cache build steps; no pause/resume
GPUNot mentioned in the sandbox docs
NetworkingOutbound internet via NAT on all sandboxes; ISOLATED (default) has no access to environment services, PRIVATE joins the environment's private network to reach databases by hostname; up to 10 public HTTPS domains per sandbox set at creation; SSH and port forwarding with an account SSH key; no egress allow-list documented
PricingPer second at Railway VM rates: $0.00001929 per GB-second of memory in use (about $50/GB-month), $0.00001929 per vCPU-second of active CPU (about $50/vCPU-month), egress $0.05/GB; idle sandboxes still bill memory; usage draws from the plan's included credit. Example from the page: 20 minutes at 1 GB and 30% of a vCPU about $0.03
Free tierAvailable on Free and Trial plans within included usage: 10 sandboxes per environment at 2 vCPU/2 GB with a 5-minute idle timeout
ComplianceNot documented
RegionsUS West (default), US East, EU West and Southeast Asia; forks stay in the source region

Facts from Railway Sandboxes’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You run services on Railway and want agents to test against them over the private network
  • You need forks and checkpoints to try approaches in parallel
  • You want Docker inside the sandbox without configuration
  • You want EU and Asian regions as well as US

Trade-offs

  • No pause/resume; idle sandboxes are destroyed, and memory continues to bill while idle
  • Hypervisor and compliance are not documented on the sandbox pages
  • No egress allow-list; outbound internet is always on
  • Free and Trial sandboxes are limited to 2 vCPU/2 GB and a 5-minute idle timeout

Good fit for: Coding agents and test runs that need to reach your Railway databases and services over the private network.

How Railway Sandboxes compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
Railway SandboxesLinux VMNoNo / NoNot documentedNo cap (idle 30 min default)Yes / NoNot documentedJavaScript/TypeScript, CLI, GraphQL API
Vercel SandboxFirecracker microVMNoNo / NoMilliseconds (claim)24 h (Pro)Yes / YesNot documentedJavaScript/TypeScript, Python
Fly.io SpritesMicroVMNoNo / No0.1–2 s wakeUnlimitedYes / YesNoJavaScript/TypeScript, Go, Python, Elixir
Koyeb SandboxesMicroVMNoNo / Not documentedNot documentedUp to 24 hNot documented / Not documentedYesPython, JavaScript/TypeScript
Northflank SandboxesCloud Hypervisor microVMNoNo / Yes<1 sUnlimitedNot documented / YesYesJavaScript/TypeScript, Python
Modal SandboxesgVisor or VMNoNo / Not documented<1 sUp to 24 hYes / YesYesPython, JavaScript/TypeScript, Go
Depot SandboxesMicroVM on bare metalNoNo / YesNot documented2 h default timeoutYes / NoNot documentedJavaScript/TypeScript, CLI

See all Railway Sandboxes alternatives →

Frequently asked questions

What is Railway Sandboxes?
On-demand Linux VMs inside a Railway environment with forks, checkpoints, Docker, private networking to your services and per-second billing; generally available since September 2026. The natural sandbox for teams already deploying on Railway, strongest when agents need private-network access to existing services.
How does Railway Sandboxes isolate code?
Railway Sandboxes documents its isolation as: Isolated Linux virtual machine per sandbox; hypervisor not named.
Is Railway Sandboxes open source?
No, Railway Sandboxes is not open source.
How much does Railway Sandboxes cost?
Per second at Railway VM rates: $0.00001929 per GB-second of memory in use (about $50/GB-month), $0.00001929 per vCPU-second of active CPU (about $50/vCPU-month), egress $0.05/GB; idle sandboxes still bill memory; usage draws from the plan's included credit. Example from the page: 20 minutes at 1 GB and 30% of a vCPU about $0.03 Check the official pricing page for current rates.
What are the alternatives to Railway Sandboxes?

Sources

  1. docs.railway.com/sandboxes.md
  2. docs.railway.com/sandboxes/quickstart
  3. railway.com/sandboxes.md
  4. railway.com/changelog/2026-09-18-railway-sandboxes.md

Cite this page

Agent Sandboxes. (2026). Railway Sandboxes. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/railway-sandboxes/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.