Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Add, view, or remove domains for Railway services. Use when user wants to add a domain, generate a railway domain, check current domains, get the URL for a service, or remove a domain.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -43% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 86% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -17% | 0% |
Add, view, or remove domains for Railway services.
Generate a railway-provided domain (max 1 per service):
bashrailway domain --json
For a specific service:
bashrailway domain --json --service backend
Returns the generated domain URL. Service must have a deployment.
bashrailway domain example.com --json
Returns required DNS records:
json{ "domain": "example.com", "dnsRecords": [ { "type": "CNAME", "host": "@", "value": "..." } ] }
Tell user to add these records to their DNS provider.
Use railway-environment skill to see configured domains, or query directly:
graphqlquery domains($envId: String!) { environment(id: $envId) { config(decryptVariables: false) } }
Domains are in config.services.<serviceId>.networking:
serviceDomains - Railway-provided domainscustomDomains - User-provided domainsUse railway-environment skill to remove domains:
json{ "services": { "<serviceId>": { "networking": { "customDomains": { "<domainId>": null } } } } }
json{ "services": { "<serviceId>": { "networking": { "serviceDomains": { "<domainId>": null } } } } }
Then use railway-environment skill to apply and commit the change.
| Flag | Description | |------|-------------| | [DOMAIN] | Custom domain to add (omit for railway domain) | | -p, --port <PORT> | Port to connect | | -s, --service <NAME> | Target service (defaults to linked) | | --json | JSON output |
No service linked. Use --service flag or run `railway service` to select one.Service already has a railway-provided domain. Maximum 1 per service.Service has no deployment. Deploy first with `railway up`.Invalid domain format. Use a valid domain like "example.com" or "api.example.com".Other measured skills in the registry, with their headline benchmark lift.