dunops.com/Docsbeta

Integrations

Railway

Dun deploys Railway services, reads logs and metrics, and manages variables and databases.

Connect with an API tokenHosting4 products

Note

Every mutating action — a deploy, a scale, a secret rotation, a DNS change — surfaces a plan in chat first. Dun never touches your Railway resources until you approve it.

How to connect

Connect once from Integrations Railway, then toggle on the products you want Dun to manage.

1

Step 1

Go to Railway → Account Settings → Tokens.
2

Step 2

Click Create Token and give it a name.
3

Step 3

Copy the token and paste it below.

Where to get credentials: https://railway.app/account/tokens

What Dun can do

Each product below is something you can turn on. The examples are real prompts you can type in a chat thread.

Projects & Services

List projects, services, and deployments; restart or delete a service; read deployment logs; and roll back a deployment.

Type in a chat thread
Redeploy my Railway api service
Show recent logs for my worker service

In a playbook, bind railway.redeploy to run this as a step.

PermissionRequiredWhat it does
List projects + servicesYesDiscover projects, services, and deployments.
Restart / delete / rollbackOptionalApproval-gated service + deployment control.

Variables

Read a service's variables (redacted), set or delete them, bulk-set, and copy variables between environments.

Type in a chat thread
Set REDIS_URL on my Railway service
PermissionRequiredWhat it does
Read variables (redacted)OptionalList variable names and read resolved values.
Set / delete / copy variablesOptionalApproval-gated writes (may trigger a redeploy).

Environments & Volumes

List environments and create or delete them, and list a project's volumes with their mount points and sizes.

Type in a chat thread
Show me my Railway environments & volumes
PermissionRequiredWhat it does
Read environments + volumesOptionalSurface environments and volume detail.
Create / delete environmentsOptionalApproval-gated environment provisioning.

Metrics & Databases

Read service metrics (CPU / memory / network / disk) and manage Railway databases — list, connection details (redacted), metrics, and restart.

Type in a chat thread
Show me my Railway metrics & databases
PermissionRequiredWhat it does
Read metrics + databases (redacted)OptionalSurface time-series metrics and DB connection vars.
Restart a database serviceOptionalApproval-gated database restart.

Next steps