Strava Python Integration for Openclaw

A Python-powered skill for fetching Strava activity data and workout statistics through your AI agent.

abclark
v1.0.0
Feb 12, 2026
0
1.5k
57

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install strava-python

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-python 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 Python Integration?

The Strava Python skill provides a robust interface for accessing your personal Strava workout history and performance metrics. Built on the stravalib library, it offers a more developer-friendly experience compared to standard API calls by including an automated setup process. This skill is a core component of the Openclaw Skills ecosystem, allowing users to bridge the gap between their fitness data and AI-driven analysis.

With this integration, you can quickly retrieve summaries of your latest runs, rides, or swims without leaving your terminal or agent interface. It handles the complex OAuth2 authentication flow on your behalf, ensuring that your data is accessed securely and efficiently.

Strava Python Integration Use Cases

  • Retrieving a summary of the most recent workouts.
  • Monitoring weekly and monthly fitness statistics to track progress.
  • Querying specific details about the last recorded activity.
  • Building automated reports based on Strava data using Openclaw Skills.

How Strava Python Integration Works

  1. The user initializes the skill by installing the stravalib library.
  2. The setup script is executed to link the skill to a Strava API application.
  3. OAuth authentication is performed, and the resulting access tokens are stored locally.
  4. When a query is made, the controller script uses these tokens to fetch data from the Strava API.
  5. The skill processes the raw API response into a readable format for the AI agent.

Strava Python Integration Setup

First, install the required library using pip:

pip install stravalib

Next, run the interactive setup wizard to configure your API access:

python3 setup.py

Follow the instructions to generate your API credentials, which will be saved to your home directory.

Strava Python Integration Data Schema & Taxonomy

File/Component Description
~/.strava_credentials.json Local storage for OAuth access and refresh tokens.
strava_control.py Main script for handling data retrieval commands like recent, stats, and last.
setup.py Utility script for managing initial authentication and API application linking.

The skill organizes data into categorized activities (e.g., runs, rides) and time-based aggregates (e.g., weekly totals) for easy consumption by Openclaw Skills.

Strava Python Integration Advanced Features

  • Fully automated OAuth2 token management and refreshing via stravalib.
  • Interactive setup wizard to reduce manual configuration errors typical of curl-based tools.
  • Integration with the broader Openclaw Skills framework for natural language command processing.
  • Extensible Python-based architecture for adding custom metric calculations or data exports.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*