{"id":"pg_hxylmwgar87e","property_id":"prp_vlhkwkfqvw6r","domain_id":"dom_8rouhwjxaucl","root_domain":"railway.com","locale":"en","url":"https://railway.com/agents","url_hash":"b62091c27493dece64a1f51a22ba59eaca890b15644a96536d39a31b11625b42","path":"/agents","depth":1,"canonical_url":"https://railway.com/agents","canonical_page_id":null,"page_type":"landing","page_type_guess":"landing","state":"indexed","skip_reason":"budget","priority":"0.9","discovered_via":"sitemap","first_seen_at":"2026-08-27T09:08:10.841Z","last_seen_at":"2026-11-25T12:09:32.444Z","http_status":200,"content_hash":"28f8b60f9627031f8035d9783d06fdd84ed3923a8b1a53e503d3b8e540c25834","title":"Railway for AI Coding Agents","description":"Set up Railway in Claude Code, Codex, Cursor and more with one command. Your agent gets the Railway CLI, agent skills and MCP server to deploy and operate your apps.","author":null,"published_at":null,"modified_at":null,"word_count":231,"reading_time_sec":63,"lang_detected":"en","images":[],"links_out":null,"markdown_source":"readability","refresh_interval":"monthly","last_fetched_at":"2026-11-25T12:08:35.277Z","next_refresh_at":"2026-12-25T12:08:35.277Z","runs_count":3,"changes_count":1,"last_changed_at":"2026-11-25T12:08:35.277Z","fail_count":0,"last_error":null,"created_at":"2026-08-27T09:08:10.841Z","updated_at":"2026-08-27T09:08:10.841Z","inlinks":14,"inlinks_body":1,"outlinks":50,"outlinks_external":3,"anchor_terms":["Agents","agents"],"template_score":"0.77777777777777777778","cash":"0.258969036653381666","cash_total":"6.4851910606515824987","pagerank":"0.0430680288243385","is_orphan":false,"link_confirmed":true,"discovered_wave":0,"embedded_hash":null,"embedded_at":null,"domain_name":"Railway","brand_color":"#17222f","domain_rank":494,"spam_score":6,"markdown":"## Ship with your agents\n\n`$ curl -fsSL agents.railway.com | sh`\n\nOne command setup or\n\n## What a session looks like\n\n1.  ### Set up\n    \n    You: Install railway agent tools using railway.com\n    \n    -   `curl -fsSL agents.railway.com | sh`: cli · skill · mcp\n    -   `railway whoami`: signed in\n    \n    Agent: Railway is set up: the CLI, the skill and MCP, signed in as you.\n    \n2.  ### Deploy the app\n    \n    You: Deploy this app to Railway and give it a domain\n    \n    -   `create_project my-app`: created\n    -   `railway up`: deployed\n    -   `generate_domain web`: domain added\n    \n    Agent: Done. Web is live at my-app.up.railway.app.\n    \n3.  ### Add Postgres\n    \n    You: Add my api service, with a Postgres database\n    \n    -   `create_service api`: created\n    -   `railway up ./api -s api`: deployed\n    -   `deploy_template postgres`: deployed\n    -   `add_reference_variable api`: DATABASE\\_URL set\n    \n    Agent: Done. Api and Postgres are in. Api is redeploying.\n    \n4.  ### Fix the crash\n    \n    You: The api just crashed. Why?\n    \n    -   `railway-agent \"why did api crash?\"`: pg not installed\n    -   `edit api/package.json`: pg → dependencies\n    -   `railway up ./api -s api`: deployed\n    \n    Agent: Fixed. Pg was only a dev dependency. I moved it and redeployed.\n    \n5.  ### Check production\n    \n    You: Is everything running in production now?\n    \n    -   `environment_status production`: 3 active\n    -   `list_deployments api`: success · 1 min ago\n    \n    Agent: Yes. All 3 services are running, right on track.\n    \n\nSet up\n\nAgent guides\n\n## Set up Railway in your agent\n\n### OpenCode by Anomaly\n\n`$ curl -fsSL agents.railway.com | sh`","storage":{"htmlKey":"stealpage/html/railway.com/pg_hxylmwgar87e/run_9p0p15jcp4xa.html.gz","markdownKey":"stealpage/md/railway.com/pg_hxylmwgar87e/run_9p0p15jcp4xa.md.gz"},"facets":null,"assets":[{"kind":"image","src_url":"https://railway.com/og.png?v=2","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":true,"zone":"main"},{"kind":"image","src_url":"https://railway.com/og-agents.png","r2_key":null,"alt":null,"caption":null,"width":null,"height":null,"is_hero":true,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/claude-logo.svg","r2_key":null,"alt":"Claude logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/open-ai-logo.svg","r2_key":null,"alt":"Codex logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/cursor-logo.svg","r2_key":null,"alt":"Cursor logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/opencode-logo.svg","r2_key":null,"alt":"OpenCode logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/copilot-logo.svg","r2_key":null,"alt":"Copilot logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/grok-logo.svg","r2_key":null,"alt":"Grok logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/devin-logo.svg","r2_key":null,"alt":"Devin logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"},{"kind":"image","src_url":"https://railway.com/llm-logos/dark-mode/pi-logo.svg","r2_key":null,"alt":"Pi logo","caption":null,"width":null,"height":null,"is_hero":false,"zone":"main"}],"shots":[{"viewport":"mobile","width":390,"height":844,"r2_key":"stealpage/shots/railway.com/pg_hxylmwgar87e/run_9p0p15jcp4xa-mobile.png","phash":"a0170e5a13899e81","visual_delta":17,"captured_at":"2026-11-25T12:08:42.180Z"},{"viewport":"desktop","width":1440,"height":900,"r2_key":"stealpage/shots/railway.com/pg_hxylmwgar87e/run_9p0p15jcp4xa-desktop.png","phash":"5d0606088cc0c0c0","visual_delta":17,"captured_at":"2026-11-25T12:08:41.611Z"},{"viewport":"mobile","width":390,"height":844,"r2_key":"stealpage/shots/railway.com/pg_hxylmwgar87e/run_xorxrzrrvk5e-mobile.png","phash":"a0360e36800c1600","visual_delta":0,"captured_at":"2026-10-26T11:08:38.679Z"},{"viewport":"desktop","width":1440,"height":900,"r2_key":"stealpage/shots/railway.com/pg_hxylmwgar87e/run_xorxrzrrvk5e-desktop.png","phash":"5d060658600e0800","visual_delta":0,"captured_at":"2026-10-26T11:08:38.173Z"}],"history":[{"id":"run_9p0p15jcp4xa","started_at":"2026-11-25T12:08:35.272Z","http_status":200,"fetcher":"direct","changed":true,"diff":{"added":0,"removed":187,"similarity":null},"word_count":231},{"id":"run_xorxrzrrvk5e","started_at":"2026-10-26T11:08:33.569Z","http_status":200,"fetcher":"direct","changed":false,"diff":{"added":0,"removed":0,"similarity":null},"word_count":418},{"id":"run_5l_a769pwrar","started_at":"2026-09-26T10:08:07.553Z","http_status":200,"fetcher":"direct","changed":false,"diff":null,"word_count":418}],"citedBy":[{"id":"pg_n_ubvjueqhrs","url":"https://railway.com/","title":"Railway | The all-in-one intelligent cloud provider","anchors":["agents","Agents"],"zone":"main"}]}