| name | railway |
| description | Access Railway deployments, logs, and environment variables. Use when asked to check deployment status, view service logs, inspect or update environment variables, redeploy a service, or diagnose production issues on Railway. |
Railway Skill
Interact with Railway services using the railway CLI. Authentication is via the RAILWAY_TOKEN environment variable — no login step needed.
Prerequisites
RAILWAY_TOKEN must be set in the environment (set in Railway dashboard → project → Variables)
railway CLI must be installed (npm install -g @railway/cli)
- Identify the target project and service before running commands
Core Commands
View logs
railway logs --service <service-name>
railway logs --service <service-name> --tail 100
For Rust services, combine with RUST_LOG=debug in environment variables for verbose output.
Deployment status
railway status
railway deployments
Environment variables
railway variables --service <service-name>
railway variables set KEY=VALUE --service <service-name>
railway variables delete KEY --service <service-name>
Caution: Setting variables triggers a redeploy. Confirm with the user before changing production variables.
Redeploy
railway redeploy --service <service-name>
Link a project (run once to set project context)
railway link --project <project-id>
After linking, --project flags are optional for subsequent commands.
Workflow: Diagnosing a Production Issue
- Check deployment status:
railway status
- View recent logs:
railway logs --service <name> --tail 200
- If a Rust service — increase verbosity without redeploying:
railway variables set RUST_LOG=debug --service <name>
Then tail logs again to see detailed output.
- Once diagnosed, restore log level:
railway variables set RUST_LOG=info --service <name>
Codervisor Services
| Service | Stack | Notes |
|---|
stiglab-server | Rust | Control plane; uses RUST_LOG |
stiglab-agent | Rust | Node agent; uses RUST_LOG |
telegramable | Node.js | Telegram proxy; env vars control timeouts |
Tips
- Always confirm service name spelling — Railway is case-sensitive
railway logs streams indefinitely; press Ctrl+C to stop
- Variable changes trigger redeployment — warn the user before setting in production
- Use
--json flag on most commands for machine-readable output