
Heaven vs Railway
On this page
The short version
Pick Railway to ship an app from a Git repository: it builds every push, runs managed Postgres beside the app, keeps the logs and bills only what the services use. Railway also runs agents, in Sandboxes and Cloud Agents that sleep or shut down when idle and keep their disk. Pick Heaven (heaven.dev) when the agents and the internal apps they build should stay up: Computers keep running with their processes when nobody is connected, every website starts private behind sign-in, and a team's Computers share one $20 plan instead of each one billing by the second. The two also work together: agents on Heaven push to the repository Railway deploys.
Both give agents Linux VMs with root and Docker inside, both give an app an HTTPS address and public TCP ports, and both have a CLI and a hosted MCP server. What splits them is what each is built around. Railway is built around the deploy: services rebuild from source on every push, and its agent machines sleep or are torn down between tasks to save money. Heaven is built around the machine: a Computer is where the work lives, it keeps running, and Heaven puts sign-in, email and credentials around it.
Heaven vs Railway features
Machines for agents
| Heaven | Railway | |
|---|---|---|
| The machine | A Linux VM with root, nested virtualization and its own disk, from Heaven's Ubuntu image or your container image | Sandboxes are Linux VMs on Ubuntu, and Cloud Agents run on VMs too. App services run as containers |
| Coding agents installed | YesClaude Code, Codex, OpenCode and Pi, with Docker and a desktop with Chrome | YesIn the sandbox image. Cloud Agents add hosted agent sessions and an OpenCode web view |
| With nobody connected | Keeps running, processes and all, until you stop it | Cloud Agents sleep after about 5 idle minutes and wake on an HTTP request. Sandboxes run until their idle timeout, which Hobby and Pro can turn off |
| What sleep or a stop keeps | The whole disk. Pause also keeps memory and running processes | The disk. Processes start fresh after sleep or from a checkpoint |
| How many at once | As many Computers as the plan's CPU, memory and storage hold | Up to 50 running sandboxes per environment on Hobby, 100 on Pro |
| Agents use GitHub and APIs without holding the token | YesIntegrations keep the credential outside the Computer | Variables and sealed secrets are set inside the service |
Shipping the app
| Heaven | Railway | |
|---|---|---|
| Deploys | You or an agent update the app on its Computer. Roll back the whole disk with a snapshot | YesBuilds every Git push from source or a Dockerfile, checks health before switching traffic, and rolls back to a retained image |
| A preview environment for each pull request | Copy a Computer by hand | Yes |
| Managed databases | NoRun Postgres on a Computer | YesPostgres, MySQL and Redis. Postgres can add replicas with failover and opt-in point-in-time recovery of about four weeks |
| Scale out | NoOne Computer behind each address | Replicas you set by hand, with load balancing. Pro runs them in several regions |
| In front of a public app | HTTPS routing | YesA CDN, and a WAF whose edge rules depend on the plan |
| Build and runtime logs | NoUsage graphs and the boot console. Apps keep their own logs | Yes7 days on Hobby, 30 on Pro |
Sharing and securing
| Heaven | Railway | |
|---|---|---|
| Visitors sign in before they reach the app | YesEvery plan. Teammates sign in, the app reads who they are, and share links let a client in until they expire | Public by default. On Enterprise, Railway Authentication can require Railway sign-in and project membership |
| The app receives and sends email | YesEach Computer has its own address and can reply | Partly. Forwards mail sent to a Railway domain, with no mailbox or sending |
| Services reach each other privately | Partly. HTTP between Computers you connect | YesA private network across the environment |
| Automatic backups | YesEvery disk, hourly, off-site | Volume backups: daily kept 6 days, weekly 27 and monthly 89, in the service's region |
Cost and regions
| Heaven | Railway | |
|---|---|---|
| How you pay | A plan held monthly or by the hour: $20 a month for 2 vCPUs, 8 GiB and 100 GB | Usage by the second, with a $5 monthly minimum on Hobby and $20 on Pro that counts toward it |
| Rates | No separate rates: Tiny's $20 covers 2 vCPUs, 8 GiB and 100 GB together | Services: $20 a vCPU-month and $10 a GB-month. Sandboxes: $50 a vCPU-month of active CPU and $50 a GB-month of memory used |
| An idle machine | Costs the same as a busy one: you pay for the plan | A sleeping Cloud Agent or Serverless service stops billing compute |
| Outbound transfer | 500 GB a month included on Tiny, then $0.05 a GB | $0.05 a GB |
| Trying it | First month half off, and a full refund if you release it within 48 hours | $5 of usage for 30 days with no card, then a Free plan with $1 a month |
| Regions | Montreal, Canada (US East) | 4: California, Virginia, Amsterdam and Singapore |
Where Railway is better
Railway is the better home for an app you're shipping to users, and for agents that work in short bursts.
- Deploys you don't run. Every push builds and deploys, a health check gates the switch, each pull request gets its own environment, and a bad release rolls back to a retained image.
- Managed databases. Postgres, MySQL and Redis beside the app, with replicas, failover and about four weeks of Postgres point-in-time recovery.
- Agent machines that cost nothing asleep. A Cloud Agent sleeps after a few idle minutes and stops billing compute, and the TypeScript SDK creates, forks and checkpoints sandboxes from your own code.
- Regions and an edge. Four regions, replicas across them on Pro, a CDN and a WAF, plus a SOC 2 Type II report.
Where Heaven is better
Heaven is cloud infrastructure for software factories: compute, networking, storage and sign-in on one platform that people and agents run from the CLI, SSH, the dashboard or MCP. Railway runs the app you ship; Heaven runs the machines your agents build it on, and the internal apps that never ship anywhere else.
- Machines that keep everything, running. A Computer keeps its checkout, tools and services on its own disk and keeps working after you disconnect. Pause keeps its memory and running processes, so an agent's session picks up where it stopped.
- Private apps with no login code. Every website starts private. Heaven signs teammates in and passes their identity in
X-Heaven-User-IdandX-Heaven-Email, share links open it to a client, and the app can receive and reply to email. - Agents that never see the token. Heaven's GitHub and HTTPS integrations keep credentials outside the Computer, so an agent can push to GitHub or call an API without a secret it could leak.
- A fixed bill for work that's always on. A pool's price doesn't change with how busy its Computers are, there's no limit on how many it holds beyond its capacity, and any number of members use it with no seat charge.
Pricing
Railway bills the CPU and memory your services and sandboxes use, by the second, against a monthly minimum. Heaven sells capacity: you hold a plan, monthly or by the hour, and every Computer in the pool shares it.
| Plan | Price | What you get |
|---|---|---|
| Heaven Tiny | $20 a month | 2 shared vCPUs, 8 GiB of RAM, 100 GB of storage and 500 GB of transfer, any number of members |
| Heaven Small | $40 a month | 4 shared vCPUs, 16 GiB of RAM, 250 GB of storage and 1,000 GB of transfer |
| Railway Free | $0 | $1 of usage a month, one project with up to 3 services |
| Railway Hobby | $5 a month minimum | Usage for one person, counted toward the minimum |
| Railway Pro | $20 a month minimum | The same rates for a team, with replicas in several regions |
These bills use our assumptions about average use, over a 30-day month and before transfer. A team's web service, worker and Postgres averaging 0.3 vCPU and 1.5 GB of RAM, with 5 GB of data, come to $6.00 of CPU, $15.01 of memory and $0.78 of volume, so $21.79 a month on Railway Pro, with deploys, logs and a managed database included. On Heaven the same stack fits Tiny at $20, and you run Postgres and releases yourself.
Add two coding agents that work 8 hours each weekday, 176 hours a month, each using 2 GB of memory and a quarter of a vCPU on average. As Railway sandboxes that shut down between work days, each costs $24.44 of memory and $3.06 of CPU, so the month comes to $76.79. On Heaven the stack and agents use 5.5 of Tiny's 8 GiB, so they fit Tiny at $20 while they take turns on its 2 vCPUs, or Small at $40 when they all build at once, and the agents' Computers stay up overnight at no extra charge. Railway costs less than Heaven Small while each agent works under about 58 hours a month. If you only ship the app, Railway costs about the same as Tiny and does more of the work.
Frequently asked questions
Does Railway have machines for coding agents?
Yes. Railway Sandboxes are Linux VMs with Docker and coding agents installed, driven from a TypeScript SDK, and Cloud Agents run hosted agent sessions. Both keep their disk; a Cloud Agent sleeps after about five idle minutes, and processes start fresh when it wakes.
Can Heaven deploy my app when I push to GitHub?
No. You build and restart the app on its Computer, or have an agent do it. Railway deploys every push.
Does Railway add $5 to my Hobby usage?
No. The $5 is a minimum that counts toward usage, so you pay $5 or your usage, whichever is more.
Can my agents work on Heaven and ship to Railway?
Yes. Agents work and preview on Heaven Computers and push to GitHub, and Railway builds and deploys from the repository.
Related comparisons
See Railway vs Render, Heaven vs Fly.io and Heaven vs Northflank.
- ComparisonRailway vs RenderRailway and Render for an app, a worker and Postgres: usage billing or fixed sizes, what a solo developer and a team pay, scaling, recovery and sandboxes.
- ComparisonHeaven vs Fly.ioCompare Heaven and Fly Machines for agents and the apps they build: what a restart keeps, sign-in, deploys, regions and what a month costs.
- ComparisonHeaven vs NorthflankHeaven and Northflank for agents and what they build: Computers that keep their disk and processes, or sandboxes, pipelines, GPUs and your own cloud.
Run your agents on Heaven
Persistent Linux Computers that share CPU, memory and storage in one pool. Tiny is $20 a month.
Sources and corrections
Spot an error? Email support@heaven.dev with the page, the claim and a source.