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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bahn - 安装完成后,直接呼叫该 Skill 的名称或使用
/bahn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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". 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2163 次。
如何安装 Deutsche Bahn CLI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bahn」即可一键安装,无需额外配置。
Deutsche Bahn CLI 是免费的吗?
是的,Deutsche Bahn CLI 完全免费(开源免费),可自由下载、安装和使用。
Deutsche Bahn CLI 支持哪些平台?
Deutsche Bahn CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Deutsche Bahn CLI?
由 tobiasbischoff(@tobiasbischoff)开发并维护,当前版本 v1.0.0。