Deutsche Bahn CLI for Openclaw

A powerful CLI skill for searching German train connections, platforms, and schedules directly through an AI agent.

tobiasbischoff
v1.0.0
Jan 26, 2026
0
3.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install bahn

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 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?

The Deutsche Bahn CLI skill allows AI agents to interact with the German rail network's data programmatically. By leveraging the bahn-cli tool, this skill provides a seamless way to fetch travel information including departure times, durations, and train types. It is an essential component for developers building travel-related automation within the Openclaw Skills ecosystem.

This skill bridges the gap between raw transport data and user-facing AI assistants, making it possible to plan trips, check for delays, or find platform information using simple natural language commands that the agent translates into CLI execution.

Deutsche Bahn CLI Use Cases

  • Planning long-distance travel between major German hubs like Berlin, Munich, and Frankfurt.
  • Checking daily commute schedules and platform changes for regional trains.
  • Automating the generation of travel itineraries for business trips.
  • Integrating real-time rail data into personal productivity workflows using Openclaw Skills.

How Deutsche Bahn CLI Works

  1. The AI agent receives a request for a train connection between two German cities.
  2. The agent formats a command for the bahn-cli, including optional parameters like date, time, and result limits.
  3. The skill executes the Node.js script which interfaces with the db-vendo-client library.
  4. The tool retrieves connection data, including platform numbers and intermediate stops.
  5. The results are returned to the agent in a structured format for clear presentation to the user.

Deutsche Bahn CLI Setup

To get started with this skill, ensure you have Node.js installed and then set up the bahn-cli directory:

cd ~/Code/bahn-cli && npm install

You can then run searches directly to test the integration:

cd ~/Code/bahn-cli && node index.js search "Berlin Hbf" "Hamburg Hbf"

Deutsche Bahn CLI Data Schema & Taxonomy

The skill returns structured data for each connection found. Below is the organization of the output data:

Property Description
Departure/Arrival 24-hour format timestamps for the journey
Platform The specific track number for boarding and arrival
Duration The total time elapsed for the trip
Changes Number of transfers required between trains
Train Number The designation of the service (e.g., ICE, IC, RE)
Intermediate Stops A list of stations for connections with transfers

Deutsche Bahn CLI Advanced Features

  • Support for case-insensitive station name lookups for better user experience.
  • Configurable result counts via the --results flag to optimize for AI context window limits.
  • Future-dated searches allowing Openclaw Skills to assist in long-term scheduling.
  • Detailed breakdown of connection legs, including train numbers for every segment of the journey.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*