Overview
The Railway integration inspects the latest successful deployment of any configured Railway service and can request a redeploy after explicit confirmation.Prerequisites
- Railway CLI installed (
@railway/cli) - Either an authenticated Railway CLI session (
railway login) or a Railway token - Optional defaults: project, service, and environment to inspect or redeploy
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Credentials
- Install the Railway CLI and run
railway login, or create a Railway token in the Railway dashboard. - Optionally set default project / service / environment so inspect and redeploy calls need fewer parameters.
- Store the token in
.envasRAILWAY_TOKENor enter it duringopensre integrations setup railway.
Tools
Inspect a deployment
When a default scope is configured, no parameters are required. Otherwise provide the service scope:Redeploy a service
confirm must be explicitly true. Railway reuses the latest deployment and returns its new deployment ID. Commands always use explicit project, service, and environment flags and never write Railway link state into the workspace.
Verify
Troubleshooting
Security
- Railway tokens are never returned in tool output; Railway commands are non-interactive and errors are redacted.
- Redeploy is a mutating action and requires explicit
confirm=true(and approval when your surface enforces it). - Prefer a dedicated token scoped to the projects OpenSRE should touch.
- Store tokens in
.envor your secret manager — not in source control.