railway setup
Set up your editor for Railway agent functionality, including agent skills, MCP configuration, and authentication guidance.
Usage
Subcommands
| Subcommand | Description |
|---|---|
agent | Install Railway agent skills, configure MCP, and check Railway authentication |
Options for
| Flag | Description |
|---|---|
-y, --yes | Skip prompts and accept defaults. Also used automatically when stdout is not a terminal |
--remote | Configure the remote MCP server at https://mcp.railway.com instead of the local stdio server |
Examples
Interactive setup
This prompts for which supported coding tools to configure, lets you choose local or remote MCP, and starts the login flow if needed.
Non-interactive setup
This configures detected coding tools with default settings and skips the interactive login flow. If you are not already authenticated, run railway login after setup.
Use the remote MCP server
This configures supported editors to use Railway's hosted MCP server.
What it configures
railway setup agent installs the use-railway skill for supported coding tools, configures the Railway MCP server where supported, and checks your Railway authentication.
Skills are installed for Claude Code, Cursor, OpenAI Codex, OpenCode, and the universal .agents skills directory. MCP is additionally configured for Factory Droid and GitHub Copilot. See railway skills and railway mcp for the per-command target lists.
The setup is idempotent. Re-running it updates Railway-owned skill directories and merges Railway MCP entries into existing tool configs without removing other MCP servers.