Railway Sandboxes
railway, one-time credit, VM isolation.
$5 once
About 12 h of a 2 vCPU, 4 GiB sandbox, once, at $0.417/h with every vCPU busy. The router reserves that much for each live box, so it never runs past the tier.
Terms
- Free usage
- $5, expires after 30 days (no card)
- Free limits
- 10 running, 2 vCPU / 2 GB, 5 idle minutes
- Paid after
- $0.069/vCPU-h (active CPU only) + $0.069/GB-h
- Free concurrency
- 10 at once
- Card
- not required
- Adapter's note
- Free Trial: $5 once, valid 30 days, no card. 10 running per environment, 2 vCPU / 2 GB at most, idle timeout 5 min at most. Usage draws from the plan's included credit.
- Checked
- Nov 21, 2026 against docs.railway.com/sandboxes.md
The adapter
Railway Sandboxes: isolated Linux VMs inside a Railway environment (Ubuntu with git and Node). Billed per second for the CPU actually used and the memory in use: $0.00001929 per vCPU-second and per GB-second, plus $0.05 per GB out. Free Trial: a one-time $5 credit for 30 days without a card, 10 running per environment, 2 vCPU / 2 GB at most, and an idle timeout of 5 minutes at most (Hobby and Pro: 1 to 120 minutes). There is no lifetime limit, only that idle timeout, so the router deletes a sandbox at its deadline and the sweep catches any it missed. API: Railway's public GraphQL API, https://backboard.railway.com/graphql/v2. A project token goes in `Project-Access-Token` and names its environment; an account or workspace token goes in `Authorization: Bearer` and needs RAILWAY_ENVIRONMENT_ID. Errors come back in a 200 with `errors`. `sandboxExec` runs a command in one request: 10 minutes at most, each stream cut at 16,000 bytes. Files and streamed exec use a WebSocket, so files go through the router's exec fallback. No idempotency key on `sandboxCreate`. Docs: https://docs.railway.com/sandboxes.md, https://railway.com/pricing; the operations are taken from the official SDK, npm `railway` 3.17.0 (dist/index.js: RailwaySandboxCreate, RailwaySandboxExec, RailwaySandboxDestroy, RailwaySandboxes, RailwayProjectToken).
- Keys
RAILWAY_TOKEN(project token), orRAILWAY_API_TOKEN+RAILWAY_ENVIRONMENT_ID- Connects through
- GraphQL backboard.railway.com/graphql/v2
- Capabilities
- create, exec and kill; files through exec
- Isolation
- VM
- Operating system
- Linux
- Longest sandbox
- no limit declared
- Longest command
- 10 min
- Timeout
- The provider keeps it alive, so the router deletes it at the deadline
- Billing
- vCPUs billed only while busy; memory every second
- Source
- src/providers/railway.ts, and the provider’s site
const sbx = await router.create({ providers: ["railway"] });{
"providers": {
"railway": {
"freeTier": {
"kind": "one-time-credit",
"usd": 5
},
"priority": 10
}
}
}