Integrations

Railway

Service deployments, environment management, and infrastructure scaling

The Railway connector provides 25 actions for managing services, deployments, databases, and environment variables on Railway.

Setup

Connect via API Token

  1. Go to Settings → Integrations → Railway
  2. Click Connect
  3. In Railway dashboard, go to Account Settings → Tokens
  4. Create a new API token
  5. Paste the token in Keva
  6. Select projects to access

Token Permissions

Railway tokens have full access to your account. Create a dedicated token for Keva with appropriate project access.

Available Actions (25)

Services

ActionDescription
List servicesGet all services in project
Get serviceService details and config
Create serviceDeploy new service
Delete serviceRemove a service
Restart serviceRestart running service
Get service logsApplication output

Deployments

ActionDescription
List deploymentsGet deployment history
Get deploymentDeployment details
Trigger deployStart new deployment
Rollback deploymentRevert to previous
Cancel deploymentStop in-progress deploy

Environment Variables

ActionDescription
List variablesGet all env vars
Get variableSingle variable value
Set variableCreate/update variable
Delete variableRemove variable

Databases

ActionDescription
List databasesGet database services
Get databaseConnection info and stats
Reset databaseClear and restart

Projects

ActionDescription
List projectsGet all projects
Get projectProject configuration
Get usageResource consumption

Use Cases

Service Down

Customer: "Our API service isn't responding"

AI:
1. Calls get_service(api-service-id)
2. Checks status: crashed
3. Calls get_service_logs() for errors
4. Reports: "OOM error, memory exceeded"
5. Offers to restart with more memory

Deploy Update

Customer: "Push the latest changes to staging"

AI:
1. Calls trigger_deploy(staging-service)
2. Monitors deployment progress
3. Reports: "Deployed commit abc123"
4. Shares deployment URL

Database Issue

Customer: "Need to reset our dev database"

AI:
1. Confirms: development environment only
2. Calls reset_database(dev-postgres)
3. Reports: "Database reset complete"
4. Provides new connection string

Configuration

  • Project access: Which Railway projects AI can manage
  • Service control: Enable/disable restart/deploy actions
  • Variable access: Allow environment variable changes
  • Database write: Enable database operations