# A Railway alternative moved over in one sentence.

> Agent Lab vs Railway: free tier, always-on price, PostgreSQL and MCP compared, with official sources and the commands to migrate.

Web page: https://agentlab.cresclab.com/en/deploy/railway-alternative  
繁體中文 (Markdown): https://agentlab.cresclab.com/deploy/railway-alternative.md

Agent Lab vs Railway · Compare and migrate

Railway bills by usage; Agent Lab has fixed plan prices that include usage credit. Facts about Railway come from its own pages, checked on 2026-10-18, with a source on every row.

[Start free](https://app.agentlab.cresclab.com/?lang=en&intent=import) [See the comparison](https://agentlab.cresclab.com/en/deploy/railway-alternative#compare)

An AI coding tool moves a project from Railway to Agent Lab: it reads the build, creates the project and database, and reports a preview URL before DNS changes.

Which one fits

## Agent Lab or Railway: it depends on the job

Two reasons to pick Agent Lab, and two to stay on Railway.

### Pick Agent Lab

A fixed monthly price; usage pauses at the credit instead of surprising you with a bill.

### Pick Agent Lab

A free plan to start on: 1 app, 1 S database and 3 static sites, pausing at a limit instead of charging.

### Stay on Railway

Very small projects where usage billing comes to a few dollars a month.

### Stay on Railway

You want a full environment per pull request (PR Environments).

Side by side

## Agent Lab Deploy vs Railway

Railway's side is from its official pricing and docs pages on 2026-10-18; prices change, so follow the source link before you decide.

Agent Lab Deploy compared with Railway, checked 2026-10-18

|  | Agent Lab Deploy | Railway |
| --- | --- | --- |
| Free tier | Free US$0: 1 size-S app (sleeps after 15 idle minutes), 1 S database, 3 static sites; pauses at a limit, never charges [Details](https://agentlab.cresclab.com/en/deploy#pricing) | Trial: US$5 credit for 30 days, no card; then Free with US$1 a month, 1 project and no custom domains [Source](https://railway.com/pricing) |
| Cheapest always-on service | Pro US$29 a month before tax; its usage credit runs one size-S app all month [Details](https://agentlab.cresclab.com/en/deploy#pricing) | Hobby has a US$5 monthly minimum that includes US$5 of usage; CPU and memory are metered [Source](https://railway.com/pricing) |
| PostgreSQL | Managed PostgreSQL 16–18, MySQL 8.4 and 9.7, one dedicated instance per database; Free includes one S [Details](https://agentlab.cresclab.com/docs/en/deploy/mcp-tools#databases) | Billed on usage with no fixed starting price; high availability available [Source](https://docs.railway.com/guides/postgresql) |
| Deploy from an AI tool (MCP) | Remote MCP with browser OAuth sign-in, no API key, the same permissions as the console [Details](https://agentlab.cresclab.com/docs/en/deploy/ai-agent) | Official remote MCP (mcp.railway.com) and a Claude Code plugin [Source](https://docs.railway.com/reference/mcp-server) |

Migrate

## Move from Railway in four steps

Railway keeps serving until you change DNS.

1. ### Export settings
   Save the environment variables and secrets from Railway, and note the start command, scheduled jobs and domains.
2. ### Deploy the code
   Upload, push from GitHub, or ask your AI tool through Agent Lab MCP. You get a preview URL.
3. ### Move the data
   Create PostgreSQL and connect it to the app, then pg_dump from the old database and pg_restore into the new one.
4. ### Switch the domain
   Test the preview, lower the DNS TTL, then point the domain at Agent Lab. The old host keeps running until you cut over, so if something is off, point DNS back to it.

From Railway

## What to take out of Railway, and where it goes

Commands

### Export from Railway

```
# Save a Railway service's variables to a file
railway variables --kv > .env.production

# Railway Postgres: export over the public URL
pg_dump "$DATABASE_PUBLIC_URL" --no-owner --format=custom -f backup.dump

# Import into Agent Lab PostgreSQL (connection string in the console;
# add your IP to the database's allowlist first)
pg_restore --no-owner --no-acl -d "$AGENTLAB_DATABASE_URL" backup.dump
```

- `railway.json / Railpack` Not read. JavaScript, Python and Go build from source on the platform; other languages use a Dockerfile.
- `*.railway.internal` Use Agent Lab's internal address instead, such as https://api--acme.internal-hosting.agentlab.run.
- `Cron schedule` Becomes an Agent Lab scheduled job. A job calls a URL of your app on a clock, so the script becomes an HTTP endpoint.
- `Volumes` No persistent volumes: apps only write to /tmp. Keep data in PostgreSQL and files in object storage.

Prompt

### Or ask your AI tool

```
Read https://app.agentlab.cresclab.com/agent/deploy.md. This project runs on Railway today; move it to Agent Lab. First list what it uses on Railway (services, database, scheduled jobs, environment variables, domains) and what each becomes on Agent Lab, deploy it to a preview URL, tell me where to enter secrets, and wait for my OK before anything goes live or DNS changes.
```

FAQ

## Agent Lab vs Railway: questions

**What is the difference between Agent Lab and Railway?**

Railway bills by usage; Agent Lab has fixed plan prices that include usage credit.

**How much does Railway cost?**

Trial: US$5 credit for 30 days, no card; then Free with US$1 a month, 1 project and no custom domains. Always-on service: Hobby has a US$5 monthly minimum that includes US$5 of usage; CPU and memory are metered. PostgreSQL: Billed on usage with no fixed starting price; high availability available. From Railway's own pages, checked on 2026-10-18.

**Railway bills by usage. Does Agent Lab?**

Agent Lab is a fixed monthly price with usage credit: Pro's credit runs one size-S app all month, and usage pauses at the credit until the next billing period instead of charging more.

**Will my app go down while I move from Railway?**

No. The app runs on a preview URL first while Railway keeps serving; you change DNS only after testing, and if something is off you point DNS back to Railway. [Migration guide →](https://agentlab.cresclab.com/en/deploy/migrate)

**Is there a free plan?**

Yes: 1 size-S app that sleeps after 15 idle minutes, 1 S database, 3 static sites, 100 build minutes and 5 GB of traffic a month, pausing at a limit instead of charging. Always-on apps and custom domains start on Pro at US$29 a month before tax. [Pricing →](https://agentlab.cresclab.com/en/deploy#pricing)

**Where do the numbers on this page come from?**

Railway's pricing and features are read from Railway's own pricing and docs pages on 2026-10-18, and every table row links the page it came from. Where Railway's pages disagree or say nothing, the table says so. Agent Lab's side follows its pricing and docs. [Deploy docs →](https://agentlab.cresclab.com/docs/en/deploy/ai-agent)
