skills$openclaw/trein
joehoel4.1k

by joehoel

trein – OpenClaw Skill

trein is an OpenClaw Skills integration for coding workflows. Query Dutch Railways (NS) for train departures, trip planning, disruptions, and station search via the trein CLI.

4.1k stars4.7k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nametrein
descriptionQuery Dutch Railways (NS) for train departures, trip planning, disruptions, and station search via the trein CLI. OpenClaw Skills integration.
ownerjoehoel
repositoryjoehoel/trein
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @joehoel/trein
last updatedFeb 7, 2026

Maintainer

joehoel

joehoel

Maintains trein in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
263 B
SKILL.md
2.3 KB
SKILL.md

name: trein description: Query Dutch Railways (NS) for train departures, trip planning, disruptions, and station search via the trein CLI. homepage: https://github.com/joelkuijper/trein metadata: {"clawdbot":{"emoji":"🚆","requires":{"bins":["trein"],"env":["NS_API_KEY"]},"primaryEnv":"NS_API_KEY","install":[{"id":"npm","kind":"node","package":"trein","bins":["trein"],"label":"Install trein (npm)"},{"id":"download-mac-arm","kind":"download","url":"https://github.com/joelkuijper/trein/releases/latest/download/trein-darwin-arm64","bins":["trein"],"label":"Download (macOS Apple Silicon)","os":["darwin"]},{"id":"download-mac-x64","kind":"download","url":"https://github.com/joelkuijper/trein/releases/latest/download/trein-darwin-x64","bins":["trein"],"label":"Download (macOS Intel)","os":["darwin"]},{"id":"download-linux","kind":"download","url":"https://github.com/joelkuijper/trein/releases/latest/download/trein-linux-x64","bins":["trein"],"label":"Download (Linux x64)","os":["linux"]}]}}

trein - Dutch Railways CLI

A CLI for the NS (Dutch Railways) API with real-time departures, trip planning, disruptions, and station search.

Install

npm (recommended):

npm i -g trein

Or download a standalone binary from GitHub Releases.

Setup

Get an API key from https://apiportal.ns.nl/ and set it:

export NS_API_KEY="your-api-key"

Or create ~/.config/trein/trein.config.json:

{ "apiKey": "your-api-key" }

Commands

Departures

trein departures "Amsterdam Centraal"
trein d amsterdam
trein d amsterdam --json  # structured output

Trip Planning

trein trip "Utrecht" "Den Haag Centraal"
trein t utrecht denhaag --json
trein disruptions
trein disruptions --json

Station Search

trein stations rotterdam
trein s rotterdam --json

Aliases (shortcuts)

trein alias set home "Amsterdam Centraal"
trein alias set work "Rotterdam Centraal"
trein alias list
trein d home  # uses alias

Tips

  • Use --json flag for all commands to get structured output for parsing
  • Station names support fuzzy matching (e.g., "adam" -> "Amsterdam Centraal")
  • Aliases are stored in the config file and can be used in place of station names
README.md

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 trein?

Run openclaw add @joehoel/trein in your terminal. This installs trein 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/joehoel/trein. Review commits and README documentation before installing.