Strava CLI for Openclaw

A powerful command-line interface for Strava that allows developers and athletes to interact with their fitness data directly from the terminal.

geodeterra
v0.1.0
Feb 13, 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 strava-cli

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 strava-cli 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 Strava CLI?

The Strava CLI skill leverages the strava-client-cli Python tool to provide a seamless bridge between your local environment and the Strava API. By utilizing Openclaw Skills, you can automate the retrieval of athlete profiles, detailed activity logs, and performance statistics without needing to navigate the web interface.

This tool is designed for users who want to integrate their fitness tracking into their existing developer workflows or perform bulk data analysis. It provides a robust set of commands to fetch, filter, and export your personal athletic history directly from the command line.

Strava CLI Use Cases

  • Accessing comprehensive athlete statistics and run/ride/swim summaries via the terminal.
  • Retrieving recent activity logs with specific filters for activity type or dates.
  • Performing bulk exports of Strava data into JSON format for local processing or archival.
  • Integrating fitness data into automated scripts or custom developer dashboards through Openclaw Skills.

How Strava CLI Works

  1. Initialize the environment by installing the strava-client-cli tool using the uv package manager.
  2. Configure a Strava API application via the Strava dashboard to obtain the necessary Client ID and Client Secret credentials.
  3. Execute the authentication flow using Openclaw Skills to authorize the application and generate secure OAuth tokens.
  4. Use terminal commands to query the Strava API for specific profile information, activity details, or historical stats.
  5. Optionally export data to local directories for offline analysis using the built-in export functionality.

Strava CLI Setup

To get started with this entry in the Openclaw Skills directory, install the tool first:

uv tool install strava-client-cli

Next, create an API application at https://www.strava.com/settings/api with the Authorization Callback Domain set to localhost. Once you have your Client ID and Client Secret, run the following command to authenticate:

strava auth

Follow the browser prompts to authorize your account and copy the resulting code back into your terminal. For headless environments, manual token exchange is supported by saving the JSON response to ~/.config/strava-cli/tokens.json.

Strava CLI Data Schema & Taxonomy

The skill manages configuration and tokens locally using a specific file structure to ensure persistence between sessions:

File Description
~/.config/strava-cli/config.json Stores CLI configuration and API credentials.
~/.config/strava-cli/tokens.json Contains OAuth access and refresh tokens.
export/ The default directory for JSON data exports when using the export command.

Strava CLI Advanced Features

  • Automated token refreshing every 6 hours ensures persistent API access without manual re-authentication.
  • Manual token exchange support for headless or server-side automation where a browser is unavailable.
  • Granular filtering for activity queries using --type (e.g., Run, Ride) and --after (date) flags.
  • Bulk data export capabilities for large-scale data migration or backups within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*