Deutsche Bahn CLI
/install bahn
Deutsche Bahn CLI
Search train connections using the bahn-cli tool.
Installation
The tool should be installed globally or in the workspace. If not installed:
cd ~/Code/bahn-cli && npm install
Usage
Search train connections:
cd ~/Code/bahn-cli && node index.js search "\x3Cfrom>" "\x3Cto>" [options]
Options
--date YYYY-MM-DD- Departure date (default: today)--time HH:MM- Departure time (default: current time)--results \x3Cnumber>- Number of results to show (default: 5)
Examples
Search connections from Hannover to Bonn:
cd ~/Code/bahn-cli && node index.js search "Hannover Hbf" "Bonn Hbf" --results 3
Search with specific date and time:
cd ~/Code/bahn-cli && node index.js search "Berlin" "München" --date 2026-02-05 --time 14:30
Station Names
- Use common German station names
- "Hbf" means Hauptbahnhof (main station)
- Examples: "Berlin Hbf", "München Hbf", "Frankfurt(Main)Hbf", "Köln Hbf"
- Station names are case-insensitive
Output
The tool shows:
- Departure and arrival times
- Platform numbers
- Duration
- Number of changes
- Intermediate stops for connections with changes
- Train numbers (ICE, IC, RE, etc.)
Notes
- The CLI uses the db-vendo-client library
- Some station names in output may show "undefined" (cosmetic issue, doesn't affect functionality)
- Direct connections are listed first
- Times are in 24-hour format
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bahn - After installation, invoke the skill by name or use
/bahn - Provide required inputs per the skill's parameter spec and get structured output
What is Deutsche Bahn CLI?
Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, or help with travel planning. Works with station names like "Berlin Hbf", "München", "Hannover". It is an AI Agent Skill for Claude Code / OpenClaw, with 2163 downloads so far.
How do I install Deutsche Bahn CLI?
Run "/install bahn" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Deutsche Bahn CLI free?
Yes, Deutsche Bahn CLI is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Deutsche Bahn CLI support?
Deutsche Bahn CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Deutsche Bahn CLI?
It is built and maintained by tobiasbischoff (@tobiasbischoff); the current version is v1.0.0.