Deutsche Bahn CLI Connection Search for Openclaw

A command-line skill that enables AI agents to search and retrieve Deutsche Bahn train connections, schedules, and routing information across Germany.

bone187
v2.0.0
Jun 3, 2026
0
593
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bahn-transitous

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bahn-transitous using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Deutsche Bahn CLI Connection Search?

The Deutsche Bahn CLI skill empowers Openclaw Skills ecosystems to dynamically search train connections across Germany. It interfaces directly with the bahn-cli tool, allowing AI agents or automated scripts to query routes between specific stations, track departure and arrival times, evaluate platform numbers, and review overall journey durations.

By serving as a specialized transport utility, this skill bridges the gap between natural language location references (like "Berlin Hbf" or "München") and programmatic transit APIs. It handles localized nuances such as case-insensitivity and abbreviated station names, converting conversational travel requests into actionable command-line operations.

Deutsche Bahn CLI Connection Search Use Cases

  • Automated Travel Planning: Quickly look up optimal train options between major German transport hubs.
  • Schedule Check-ins: Identify departure times, arrival windows, and total duration for complex commutes.
  • Change Management: Filter or check the number of required train transfers and view concrete intermediate stops.

How Deutsche Bahn CLI Connection Search Works

  1. Input Parsing: The system accepts text-based station inputs (origin and destination) alongside optional flags for date, time, and specific result counts.
  2. CLI Execution: It navigates to the dedicated workspace and executes a node script with the mapped parameters.
  3. API Routing: The underlying client connects to the Transitous (MOTIS 2 API) backend to query official, current railway data.
  4. Data Aggregation: Results are structured sequentially, sorting direct connections first while preserving platform, train numbers, and change logs.
  5. Output Presentation: The final detailed itinerary is returned in an easy-to-read, 24-hour time format for the calling agent.

Deutsche Bahn CLI Connection Search Setup

To deploy this component within your custom Openclaw Skills configuration, ensure the repository environment exists and dependencies are correctly initialized.

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

Verify that node is configured to execute index.js. The backend relies on Transitous (MOTIS 2 API) as the DB HAFAS interface was permanently shut down in early 2025.

Deutsche Bahn CLI Connection Search Data Schema & Taxonomy

The skill interprets inputs via positional command line arguments and outputs structured execution streams. Key structural elements include:

Attribute / Parameter Format / Type Description
<from> / <to> String Case-insensitive German station names (e.g., "Hannover Hbf")
--date YYYY-MM-DD Target travel departure date
--time HH:MM Target departure time (24-hour format)
--results Integer Max connections returned (Default: 5)

Parsed Response Model

  • Time Stamps: Departure and arrival times.
  • Track Assets: Designated platform numbers.
  • Route Metadata: Trip duration, train classifications (ICE, IC, RE), and detailed transition points for non-direct paths.

Deutsche Bahn CLI Connection Search Advanced Features

  • Transitous API Backend Integration: Employs modern MOTIS 2 API routing tables to preserve reliable data integrity across European transit channels.
  • Multi-stop Connection Logic: Automatically expands non-direct itineraries to display complete lists of intermediate transfers and platform shifts.
  • Flexible Syntactic Recognition: Gracefully handles colloquial naming conventions, enabling automated string parsing without rigid validation rules.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*