TfL London Transit for Openclaw

A comprehensive tool for accessing real-time London transport data including Tube, bus, DLR, and Elizabeth line status and arrivals.

brianleach
v1.0.0
Feb 22, 2026
0
1.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install tfl

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 tfl 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 TfL London Transit?

This skill provides a direct interface to the official Transport for London (TfL) Unified API, enabling AI agents to provide live updates on the London Underground, buses, and other transit modes. By integrating this into your collection of Openclaw Skills, developers can build agents that answer complex commuting questions, check for service disruptions, and plan journeys across the capital using reliable, official data.

The skill leverages the TfL REST API to deliver consistent JSON responses for all modes of transport, including the Elizabeth line, Overground, and River Bus. It is designed to be highly responsive, providing specific arrival times, platform information, and even fare estimates for various zones in London.

TfL London Transit Use Cases

  • Checking live arrival times for specific Tube stations or bus stops during a daily commute.
  • Monitoring real-time service disruptions and planned closures across the entire TfL network.
  • Planning multi-modal journeys between London locations using coordinates or station names.
  • Retrieving current fare information for Oyster and contactless payments to estimate travel costs.
  • Searching for nearby transport hubs based on current geolocation data.

How TfL London Transit Works

  1. The AI agent triggers the tfl.mjs script based on a user's transit-related query.
  2. The script identifies the appropriate TfL API endpoint such as Arrivals, Status, or Journey Results.
  3. A request is sent to the official api.tfl.gov.uk endpoint, optionally utilizing a TFL_API_KEY for higher rate limits.
  4. The script parses the returned JSON data to extract relevant information like timeToStation or lineStatus descriptions.
  5. The processed data is formatted into a professional, human-readable response that includes helpful emojis and 24-hour time formats.

TfL London Transit Setup

To get started with this entry in your Openclaw Skills library, follow these steps:

  1. Ensure you have Node.js installed on your environment.
  2. (Optional but recommended) Register for a free app_key at the TfL API portal to increase your rate limit to 500 requests per minute.
  3. Set your environment variable:
export TFL_API_KEY='your_api_key_here'
  1. Verify the installation by checking the status of all Tube lines:
node scripts/tfl.mjs status --all

TfL London Transit Data Schema & Taxonomy

The skill interacts with the TfL Unified API to organize data according to the following taxonomy:

Data Category TfL Endpoint Data Type
Line Status /Line/Mode/tube/Status Service health and disruption strings
Station Arrivals /StopPoint/{naptanId}/Arrivals Real-time ETA in seconds (timeToStation)
Stop Discovery /StopPoint/Search/{query} NaPTAN identifiers and station names
Journey Planning /Journey/JourneyResults/{from}/to/{to} Step-by-step routing and fare estimates
Route Info /Line/{lineId}/Route/Sequence Ordered list of stops and terminals

TfL London Transit Advanced Features

  • Proximity-based station searching using latitude and longitude coordinates with adjustable radii.
  • Full support for all modern London rail modes including the Elizabeth line and new Overground line identities.
  • Advanced journey planning that calculates step-by-step duration, mode changes, and peak/off-peak pricing.
  • Detailed disruption reporting that filters alerts by specific lines or the entire network.
  • Automated station identifier (NaPTAN ID) lookup to simplify complex queries for users.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*