home / skills / openclaw / skills / fitbit-health
This skill retrieves Fitbit health data via CLI, helping you monitor steps, sleep, heart rate, and weight from your account.
npx playbooks add skill openclaw/skills --skill fitbit-healthReview the files below or copy the command above to add this skill to your agents.
---
name: fitbit
description: Query Fitbit health data (activity, sleep, heart rate, weight) via CLI. Use when answering health/fitness questions that require Fitbit data, or when the user asks about their steps, sleep, heart rate, or weight from Fitbit.
metadata: {"clawdbot":{"emoji":"πͺ","requires":{"bins":["fitbit"]}}}
---
# Fitbit CLI
Retrieve health and fitness data from Fitbit's Web API.
## Setup
1. Register an app at https://dev.fitbit.com/apps
- OAuth 2.0 Application Type: **Personal**
- Callback URL: `http://localhost:18787/callback`
2. Run `fitbit configure` and enter your Client ID
3. Run `fitbit login` to authorize
## Quick Reference
```bash
# Setup & auth
fitbit configure # Set client ID (first time)
fitbit login # Authorize via browser
fitbit logout # Sign out
fitbit status # Check auth status
# Data
fitbit profile # User profile info
fitbit activity [date] # Daily activity summary
fitbit activity steps [date] # Just steps
fitbit summary [date] # Full daily summary
fitbit today # Today's summary (shortcut)
```
## Options
All commands support:
- `--json` β JSON output
- `--no-color` β Plain text output
- `--verbose` β Debug/HTTP details
- `--tz <zone>` β Override timezone (e.g., `America/Chicago`)
## Examples
```bash
# Get today's step count
fitbit activity steps
# Get yesterday's full summary as JSON
fitbit summary 2026-01-25 --json
# Check if authenticated
fitbit status
```
## Notes
- Dates default to today if omitted
- Date format: `YYYY-MM-DD` or `today`
- Tokens are stored in `~/.config/fitbit-cli/tokens.json` (chmod 600)
- Token refresh is automatic
This skill provides a command-line interface to query Fitbit health data including activity, sleep, heart rate, and weight. It helps retrieve daily summaries, specific metrics (like steps or heart rate), and profile information after a one-time OAuth setup. Use it to integrate Fitbit data into workflows, scripts, or quick lookups without opening the Fitbit app.
After registering a personal app on Fitbit and running the interactive configure/login flow, the CLI stores OAuth tokens locally and refreshes them automatically. Commands request data from Fitbit's Web API and return plain text or JSON. Common commands include profile, activity, summary, and today, with options for timezone override, verbosity, and JSON output.
How do I authenticate the CLI with my Fitbit account?
Register a personal app on dev.fitbit.com, run fitbit configure to add your Client ID, then run fitbit login to authorize in the browser.
Where are my tokens stored and are they safe?
Tokens are saved in ~/.config/fitbit-cli/tokens.json; set file permissions to restrict access (chmod 600). The CLI refreshes tokens automatically.
What date formats and defaults does the CLI use?
Dates use YYYY-MM-DD or the literal 'today'. If you omit a date, the CLI defaults to today.