← Back to Skills Marketplace
bone187

Bahn CLI (Transitous)

by Marcel Janus · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ✓ Security Clean
47
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install bahn-transitous
Description
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...
README (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
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bahn-transitous
  3. After installation, invoke the skill by name or use /bahn-transitous
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug bahn-transitous
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 47 downloads so far.

How do I install Bahn CLI (Transitous)?

Run "/install bahn-transitous" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bahn CLI (Transitous) free?

Yes, Bahn CLI (Transitous) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Bahn CLI (Transitous) support?

Bahn CLI (Transitous) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bahn CLI (Transitous)?

It is built and maintained by Marcel Janus (@bone187); the current version is v2.0.0.

💬 Comments