Get a VM for free

One command gets you a Linux VM in about 1.4 seconds, with coding agents preinstalled and a live preview URL.For you or for your agent.

ssh railway.new
~ ❯

CPU

2 vCPU

Memory

2 GB

Ready in

~1.4 s

Build time

60 min

Claim time

24 h

From zero to a live URL.

No dashboard, no config, no card. Your terminal already has everything it needs.

01

$ ssh railway.new
Connect
Bring any SSH key, that's your login. Come back with the same key and you're back in the same box.

02

$ agent
Build
Claude Code, Codex, OpenCode, and the Railway Agent come preinstalled. Watch it go live at your preview URL.

03

railway.com/ssh-signup
Keep it
Like what you made? Claim it and the box moves into your account, with the same VM, files, and URL.

For agents.For you.

If your agent can run ssh, it can get its own computer. No API key, no dashboard. It hands you the preview and the claim link.

  • Muse Agent
  • Grok Bot
  • Hermes Agent
prompt

Claude Code, Codex, Cursor, or any agent

Get yourself a computer with `ssh railway.new`.
It's a free Linux VM on Railway, no account needed. The first
connect tells you the preview URL, how long the box lasts, and
the link I can use to claim it. Build there, then send me the
preview and the claim link.

A terminal window to the cloud.

With a Railway account, the CLI turns any terminal into a fleet of VMs for your coding agents. Cloud agents docs →
railway code
$ railway code --help
Launch a coding agent on a Railway cloud agent VM
Examples:
railway code # new VM with railway-agent-tui
railway code --codex # start Codex on a new VM
railway code --claude # start Claude Code on a new VM
railway code --codex connect my-box # connect to an existing server
railway code get-config my-box # show saved connection details
Disconnecting leaves the VM running. Use railway ca sleep <agent> to stop compute.
Start Claude Code, Codex, OpenCode, Grok, or the Railway Agent on a fresh cloud VM. Your local credentials come with you, and Codex and OpenCode open a local client connected to the box. Close the laptop; the agent keeps working.

railway code and railway ca need the latest Railway CLI and Cloud Agents turned on in Priority Boarding. Sandboxes are on every plan; see Sandboxes.

Watch it in 30 seconds.

Common questions.

Is it really free?

Yes. While a box is unclaimed, nobody pays for its compute, and you never enter a card. Abuse protections and a shared AI budget keep it free for everyone.

What if it says to try again later?

When demand is high, we cap how many free VMs run at once in each region. If you hit the cap, you'll see "Anonymous trials are temporarily disabled. Try again shortly, or sign up to keep building." That attempt doesn't count against your daily limit, so try again in a few minutes, or sign up to keep building right away.

Do I need a Railway account?

No. Railway identifies you by your SSH key. If you don't have one, run ssh-keygen -t ed25519 and connect again. You only sign up if you want to keep the box.

What happens after 60 minutes?

The build window closes. You then have 24 hours to claim the box from the link in the welcome message. Unclaimed boxes are deleted along with their files.

Who can see my preview URL?

Only you, from the IP address that created the box, until you claim it. Claiming makes the URL shareable.

What's installed?

The Railway Agent (run agent), Claude Code, Codex, OpenCode, Cursor CLI, Grok, and pi, plus Node, Python, gh, mise, the Railway CLI, and Chromium with Playwright.

Can my coding agent use it?

Yes, that's the point. Agents that run commands over SSH get a JSON manifest on their first connects with the preview URL, the build deadline, and the claim link, so they can build and hand the result back to you.

A VM just for you.

No sign up required.