6.4kā
by jabbslad
trains ā OpenClaw Skill
trains is an OpenClaw Skills integration for coding workflows. Query UK National Rail live departure boards, arrivals, delays, and train services. Use when asked about train times, departures, arrivals, delays, platforms, or "when is the next train" for UK railways. Supports all GB stations via Darwin/Huxley2 API.
Skill Snapshot
| name | trains |
| description | Query UK National Rail live departure boards, arrivals, delays, and train services. Use when asked about train times, departures, arrivals, delays, platforms, or "when is the next train" for UK railways. Supports all GB stations via Darwin/Huxley2 API. OpenClaw Skills integration. |
| owner | jabbslad |
| repository | jabbslad/uk-trains |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @jabbslad/uk-trains |
| last updated | Feb 7, 2026 |
Maintainer

name: trains description: Query UK National Rail live departure boards, arrivals, delays, and train services. Use when asked about train times, departures, arrivals, delays, platforms, or "when is the next train" for UK railways. Supports all GB stations via Darwin/Huxley2 API.
UK Trains
Query National Rail Darwin API for live train departures and arrivals.
Setup
Requires free Darwin API token:
- Register at https://realtime.nationalrail.co.uk/OpenLDBWSRegistration/
- Set
NATIONAL_RAIL_TOKENin environment (or configure in skills.entries.uk-trains.apiKey)
Commands
# Departures
./scripts/trains.py departures PAD
./scripts/trains.py departures PAD to OXF --rows 5
# Arrivals
./scripts/trains.py arrivals MAN
./scripts/trains.py arrivals MAN from EUS
# Station search
./scripts/trains.py search paddington
./scripts/trains.py search kings
Station Codes
Use 3-letter CRS codes:
PAD= London PaddingtonEUS= London EustonKGX= London Kings CrossVIC= London VictoriaWAT= London WaterlooMAN= Manchester PiccadillyBHM= Birmingham New StreetEDB= Edinburgh WaverleyGLC= Glasgow CentralBRI= Bristol Temple MeadsLDS= LeedsLIV= Liverpool Lime StreetRDG= ReadingOXF= OxfordCBG= Cambridge
Response Format
JSON with:
locationName,crs- Station infomessages[]- Service alertstrainServices[]- List of trains:std/sta- Scheduled departure/arrival timeetd/eta- Expected time ("On time", "Delayed", or actual time)platform- Platform numberoperator- Train operating companydestination[].name- Final destinationisCancelled,cancelReason,delayReason- Disruption info
Message Template
Use this compact format for WhatsApp/chat responses:
š {Origin} ā {Destination}
*{dep} ā {arr}* āš{platform} ā š {coaches}
{status}
*{dep} ā {arr}* āš{platform} ā š {coaches}
{status}
Elements
- Header: š emoji + origin ā destination
- Time: Bold, departure ā arrival times
- Platform: š + number (or "TBC" if unknown)
- Coaches: š + space + number
- Status:
- ā On time
- ā ļø Delayed (exp {time})
- ā Cancelled ā {reason}
- š Starts here
Example
š Hemel Hempstead ā Euston
*20:18 ā 20:55* āš4 ā š 4
ā
On time
*20:55 ā 21:30* āš4 ā š 12
ā
On time
*21:11 ā 21:41* āš4 ā š 8
ā
On time
Getting Arrival Times
To show arrival times, make two API calls:
departures {origin} to {dest}ā get departure times + service IDsarrivals {dest} from {origin}ā get arrival times
Match services by the numeric prefix in serviceID (e.g., 4748110HEMLHMP_ matches 4748110EUSTON__).
Notes
- Separate each service with a blank line
- Omit coaches if formation data unavailable
- For delays, show expected time:
ā ļø Delayed (exp 20:35)
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
FAQ
How do I install trains?
Run openclaw add @jabbslad/uk-trains in your terminal. This installs trains into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/jabbslad/uk-trains. Review commits and README documentation before installing.
