R
landing- Words
- 231
- Reading time
- 1 min
- Last crawled
- 2026-11-25
- Cited by
- 1 of their pages
- Language
- EN
Railway for AI Coding Agents
Ship with your agents
$ curl -fsSL agents.railway.com | sh
One command setup or
What a session looks like
-
Set up
You: Install railway agent tools using railway.com
curl -fsSL agents.railway.com | sh: cli · skill · mcprailway whoami: signed in
Agent: Railway is set up: the CLI, the skill and MCP, signed in as you.
-
Deploy the app
You: Deploy this app to Railway and give it a domain
create_project my-app: createdrailway up: deployedgenerate_domain web: domain added
Agent: Done. Web is live at my-app.up.railway.app.
-
Add Postgres
You: Add my api service, with a Postgres database
create_service api: createdrailway up ./api -s api: deployeddeploy_template postgres: deployedadd_reference_variable api: DATABASE_URL set
Agent: Done. Api and Postgres are in. Api is redeploying.
-
Fix the crash
You: The api just crashed. Why?
railway-agent "why did api crash?": pg not installededit api/package.json: pg → dependenciesrailway up ./api -s api: deployed
Agent: Fixed. Pg was only a dev dependency. I moved it and redeployed.
-
Check production
You: Is everything running in production now?
environment_status production: 3 activelist_deployments api: success · 1 min ago
Agent: Yes. All 3 services are running, right on track.
Set up
Agent guides
Set up Railway in your agent
OpenCode by Anomaly
$ curl -fsSL agents.railway.com | sh
words243
