whoop-cli

Fetch and analyze WHOOP health data from the terminal. Use when the user mentions WHOOP, recovery score, HRV, heart rate variability, sleep performance, strain, workout data, health metrics, or wants to check their daily health snapshot. Outputs structured JSON when piped — ideal for agent workflows.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "whoop-cli" with this command: npx skills add tomasward1/whoop-cli/tomasward1-whoop-cli-whoop-cli

whoop-cli

CLI for WHOOP health data. All commands output JSON when piped, pretty text when interactive.

Both whoop and whoop-cli work as commands.

Install

npm install -g @tomasward/whoop-cli

Requires Node.js 22+.

Auth

A human must complete OAuth once (requires browser). After that, tokens auto-refresh.

whoop auth login      # Opens browser for OAuth
whoop auth status     # Check auth (exit code 2 = not authenticated)
whoop auth refresh    # Force token refresh
whoop auth logout     # Clear tokens
whoop auth keepalive  # Install cron for auto-refresh (every 45 min)

First-time setup

The CLI prompts for WHOOP API credentials on first login:

  1. Go to https://developer.whoop.com
  2. Create an application (apps with <10 users need no review)
  3. Set Redirect URI to http://localhost:8787/callback
  4. Enter Client ID and Client Secret when prompted

Credentials are stored in ~/.whoop-cli/config.json. Env vars WHOOP_CLIENT_ID and WHOOP_CLIENT_SECRET override the config file.

Headless setup (servers / CI)

mkdir -p ~/.whoop-cli && chmod 700 ~/.whoop-cli
cat > ~/.whoop-cli/config.json << 'EOF'
{"client_id":"<id>","client_secret":"<secret>","redirect_uri":"http://localhost:8787/callback"}
EOF
chmod 600 ~/.whoop-cli/config.json
whoop auth login       # Shows URL — open on any machine, paste callback back
whoop auth keepalive   # Keep tokens fresh automatically

Agent quick start

# Single-call health snapshot (flat JSON)
whoop check
# → {"ok":true,"checked_at":"...","recovery_score":72,"hrv_rmssd_milli":45.2,"sleep_hours":7.1,"strain":8.3}

# Auth pre-flight
whoop auth status
echo $?  # 0 = ok, 2 = needs login

Commands

check — single-call health snapshot

whoop check                    # today's metrics
whoop check --date 2026-03-01  # specific date

Returns: {ok, checked_at, date, recovery_score, hrv_rmssd_milli, resting_heart_rate, sleep_performance, sleep_hours, sleep_efficiency, strain, calories, workout_count}

summary — one-liner status

whoop summary                  # JSON when piped, text when interactive
whoop summary --color          # color-coded with status indicators
whoop summary --format json    # force JSON

Data commands — sleep, recovery, workout, cycle, profile, body

whoop recovery                                          # today
whoop sleep --date 2026-03-01                           # specific date
whoop workout -s 2026-01-01 -e 2026-03-01 -a           # date range, all pages
whoop cycle --format json                               # force JSON

multi — multiple data types in one call

whoop multi --sleep --recovery --workout                            # today
whoop multi --sleep --recovery -s 2026-01-01 -e 2026-03-01 -a      # date range

trends — multi-day analysis

whoop trends              # 7-day trends
whoop trends --days 30    # 30-day trends (1-90)
whoop trends --json       # force JSON

insights — health recommendations

whoop insights                            # today
whoop insights --date 2026-03-01 --json   # specific date, JSON

Output behavior

  • Piped (no TTY): JSON to stdout. Errors as {"error":"...","code":2} to stdout.
  • Interactive (TTY): human-readable text. Errors as plain text to stderr.
  • --format json|pretty|auto on all data commands (default: auto).
  • --pretty shorthand for --format pretty.
  • --json shorthand on trends/insights.

Exit codes

CodeMeaning
0Success
1General error
2Auth error (not logged in, token expired)
3Rate limited
4Network error

Error handling for agents

  • Exit code 2: Auth failed. Tell the user to run whoop auth login manually (requires browser).
  • Exit code 3: Rate limited. Wait and retry.
  • Exit code 4: Network issue. Retry after a few seconds.
  • If whoop is not found, tell the user to install: npm install -g @tomasward/whoop-cli.

Date handling

  • Default: WHOOP day (4am local time cutoff).
  • --date YYYY-MM-DD for specific dates.
  • --start / --end for range queries on data and multi commands.
  • --all / -a to paginate through all results.

When not to use

  • This skill requires the CLI to be installed and authenticated. It cannot query the WHOOP API directly.
  • If the user needs real-time streaming data or webhook integrations, this CLI does not support that.

Links

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated