ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified utilities Safety 4/5

trein

Query Dutch Railways (NS) for TRAIN travel only - train departures, time-based trip planning (depart-at/arrive-by), disruptions, and station search via the trein CLI. NOT for car, bus, or other transport.

Why use this skill?

Use the trein skill to query Dutch Railways (NS) for real-time travel planning, station departures, and disruption alerts directly within OpenClaw AI.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/timvandervoord/trein-plus
Or

What This Skill Does

The trein skill enables the OpenClaw AI agent to interface directly with the Dutch Railways (NS) API via the trein CLI. It provides accurate, real-time information regarding train travel throughout the Netherlands. This includes looking up departure schedules from specific stations, planning complex journeys between cities with support for specific arrival or departure times, identifying current train service disruptions, and searching for station names or codes. By automating these tasks, the AI can assist users in navigating the Dutch rail network efficiently, ensuring they have the latest data regarding platform numbers, travel duration, transfer counts, and route status. It is a specialized tool exclusively for rail-based transit planning.

Installation

To integrate this skill into your environment, use the OpenClaw CLI or package manager with the following command:

clawhub install openclaw/skills/skills/timvandervoord/trein-plus

Ensure you have the trein CLI installed globally via npm i -g trein or by downloading the binary from GitHub. After installation, you must configure your NS API key obtained from the NS API portal. You can do this by exporting the NS_API_KEY environment variable or by creating a configuration file at ~/.config/trein/trein.config.json containing {"apiKey": "your-api-key"}. This key is essential for the skill to authenticate with the NS servers.

Use Cases

This skill is perfect for daily commuters, tourists, or travelers navigating the Netherlands. Common scenarios include finding the quickest route to an airport, checking if a scheduled train is delayed due to maintenance or weather, or planning a trip for a future date. Because it supports structured JSON output, it is also ideal for developers building automated travel alerts or dashboard widgets that require clean, parseable data.

Example Prompts

  1. "I need to be at Rotterdam Centraal by 09:30 tomorrow morning from Hoofddorp. Can you plan that for me?"
  2. "Are there any major train disruptions affecting travel from Amsterdam to Utrecht right now?"
  3. "When is the next train departing from Amsterdam Centraal?"

Tips & Limitations

This skill is restricted to train travel only and does not provide information for buses, trams, or car navigation. Always verify that your NS API key is active if you receive connectivity errors. For complex trips, utilize the --via flag to force the route through a preferred city. If you encounter errors with station names, use the station search command to confirm the exact spelling recognized by the NS database before planning your trip.

Metadata

Stars946
Views1
Updated2026-02-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-timvandervoord-trein-plus": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#travel#ns#netherlands#train#cli
Safety Score: 4/5

Flags: external-api