← 返回 Skills 市场
bone187

Bahn CLI (Transitous)

作者 Marcel Janus · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ 安全检测通过
47
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bahn-transitous
功能描述
Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, o...
使用说明 (SKILL.md)

Deutsche Bahn CLI

Search train connections using the bahn-cli tool.

Installation

The tool lives at ~/Code/bahn-cli/. If not installed:

mkdir -p ~/Code/bahn-cli && cd ~/Code/bahn-cli && npm init -y && npm install

Backend: Uses Transitous (MOTIS 2 API) since June 2026. DB HAFAS was permanently shut down in January 2025.

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
安全使用建议
Before installing, confirm you trust or already have the intended ~/Code/bahn-cli implementation, because this skill references a local CLI but does not provide or pin its source. Otherwise, the described behavior is limited to train connection searches.
能力评估
Purpose & Capability
The stated purpose is searching Deutsche Bahn-style train connections, and the instructions are limited to invoking a local bahn-cli command for station, date, time, and result count queries.
Instruction Scope
Runtime instructions are narrow and user-directed; they do not ask the agent to ignore user control, alter unrelated files, collect secrets, or perform unrelated actions.
Install Mechanism
The setup creates ~/Code/bahn-cli and runs npm initialization/install commands, but it does not identify a concrete package or source for the CLI; this is a provenance/usability gap rather than suspicious behavior in the provided artifact.
Credentials
Network use to a train-routing backend is disclosed and proportionate to travel search; no API key is required and no broad local indexing or sensitive data access is requested.
Persistence & Privilege
The only persistent change described is a user-space project directory under ~/Code; there is no autostart, background worker, privilege escalation, credential storage, or destructive command.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bahn-transitous
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bahn-transitous 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
Migrated backend from defunct DB HAFAS to Transitous (MOTIS 2 API). DB HAFAS was permanently shut off in Jan 2025; Transitous is the community-run open alternative used by Träwelling and others.
元数据
Slug bahn-transitous
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bahn CLI (Transitous) 是什么?

Search Deutsche Bahn train connections using the bahn-cli tool. Use when you need to find train connections between German stations, check departure times, o... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。

如何安装 Bahn CLI (Transitous)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bahn-transitous」即可一键安装,无需额外配置。

Bahn CLI (Transitous) 是免费的吗?

是的,Bahn CLI (Transitous) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bahn CLI (Transitous) 支持哪些平台?

Bahn CLI (Transitous) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bahn CLI (Transitous)?

由 Marcel Janus(@bone187)开发并维护,当前版本 v2.0.0。

💬 留言讨论