Ship with your agents
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
Claude Code by Anthropic
- One command:
curl -fsSL agents.railway.com | sh - Skill only:
npx skills add railwayapp/railway-skills - Plugin:
/plugin install railway@claude-plugins-officialClaude Code plugin docs - MCP only:
claude mcp add railway --transport http https://mcp.railway.com
Runs in: Terminal, IDE, Standalone
Full Claude guide →Codex by OpenAI
- One command:
curl -fsSL agents.railway.com | sh - Skill only:
npx skills add railwayapp/railway-skills - MCP only: MCP setup for Codex
Runs in: Terminal, IDE, Standalone
Full Codex guide →Cursor
- One command:
curl -fsSL agents.railway.com | sh - Skill only:
npx skills add railwayapp/railway-skills - Plugin:
/add-plugin railwayCursor plugin docs - MCP only:
{"mcpServers": {"railway": {"url": "https://mcp.railway.com"}}} - Marketplace: Railway on the Cursor Marketplace
Runs in: IDE, Terminal, Extension
Full Cursor guide →GitHub Copilot by GitHub
- One command:
curl -fsSL agents.railway.com | sh - MCP only: MCP setup for Copilot
- Autodeploys: GitHub Autodeploys guide
Runs in: IDE, Terminal, Extension
Full Copilot guide →Grok Build by xAI
- One command:
curl -fsSL agents.railway.com | sh - Plugin: Grok Build plugin docs
Runs in: Terminal, Standalone
Full Grok guide →Devin by Cognition
- Prompt:
Install railway agent tools using railway.com - MCP only: MCP setup for Devin
- Autodeploys: GitHub Autodeploys guide
Runs in: Cloud, Standalone
Full Devin guide →Pi by Earendil
- One command:
curl -fsSL agents.railway.com | sh
Runs in: Terminal, Standalone
Full Pi guide →Why Railway
From generated code
to a real production app
Services reach each other over a private network.