Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install garmin-connect-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install garmin-connect-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/garmin-connect-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: garmin-connect description: Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more. homepage: https://github.com/bpauli/gccli metadata: {"clawdbot":{"emoji":"⌚","os":["darwin","linux"],"requires":{"bins":["gccli"]},"install":[{"id":"homebrew","kind":"brew","formula":"bpauli/tap/gccli","bins":["gccli"],"label":"Homebrew (recommended)"},{"id":"source","kind":"source","url":"https://github.com/bpauli/gccli","bins":["gccli"],"label":"Build from source (Go 1.24+)"}]}} ---
Use gccli for Garmin Connect health, fitness, and activity data. Requires Garmin SSO authentication.
Setup (once)
gccli auth login [email protected] (opens browser for Garmin SSO)gccli auth login [email protected] --headless (with --mfa-code for MFA)export [email protected]gccli auth statusOutput
--json / -j for JSON, --plain for TSV.--json when parsing output programmatically.Date shortcuts
today, yesterday, 3d (N days ago), YYYY-MM-DD (specific date).--start/--end flags for date ranges.Common commands
gccli auth statusgccli auth tokengccli auth export (pipe to file or copy to another machine)gccli auth import (from auth export output)gccli auth removegccli activities list --limit 20gccli activities list --type runninggccli activities countgccli activities search --start-date 2024-01-01 --end-date 2024-12-31gccli activity summary gccli activity details gccli activity splits gccli activity weather gccli activity hr-zones gccli activity power-zones gccli activity exercise-sets gccli activity exercise-sets set -e "CATEGORY/NAME:reps@weightkg[:dSECS][:rSECS]" [-e ...] gccli activity gear gccli activity download --format fit gccli activity download --format gpx --output track.gpx gccli activity upload ./activity.fitgccli activity create --name "Morning Run" --type running --date 2024-06-15T07:30:00 --duration 1800 --distance 5000gccli activity rename "New Name" gccli activity retype running gccli activity delete --force gccli health summary [date]gccli health steps [date]gccli health steps daily --start 2024-01-01 --end 2024-01-31gccli health steps weekly --weeks 4gccli health hr [date]gccli health rhr [date]gccli health floors [date]gccli health sleep [date]gccli health respiration [date]gccli health spo2 [date]gccli health hrv [date]gccli health stress [date]gccli health stress weekly --weeks 4gccli health body-battery [date]gccli health body-battery range --start 2024-01-01 --end 2024-01-07gccli health training-readiness [date]gccli health training-status [date]gccli health fitness-age [date]gccli health max-metrics [date]gccli health lactate-thresholdgccli health cycling-ftpgccli health race-predictions [date]gccli health race-predictions range --start 2024-01-01 --end 2024-06-30gccli health endurance-score [date]gccli health hill-score [date]gccli health intensity-minutes [date]gccli health intensity-minutes weekly --start 2024-01-01 --end 2024-01-31gccli health events [date]gccli body composition [date]gccli body composition --start 2024-01-01 --end 2024-01-31gccli body weigh-ins --start 2024-01-01 --end 2024-01-31gccli body add-weight 75.5 --unit kggccli body add-composition 75.5 --body-fat 15.2 --muscle-mass 35.0gccli body blood-pressure --start 2024-01-01 --end 2024-01-31gccli body add-blood-pressure --systolic 120 --diastolic 80 --pulse 65gccli workouts list --limit 20gccli workouts detail gccli workouts download --output workout.fit gccli workouts upload ./workout.jsongccli workouts schedule add 2024-06-20 gccli workouts schedule list 2024-06-20gccli workouts schedule list --start 2024-06-01 --end 2024-06-30gccli workouts schedule remove (use --force to skip confirmation)gccli workouts delete gccli workouts create "Easy Run" --type run --step "warmup:5m" --step "run:20m@pace:5:00-5:30" --step "cooldown:5m"gccli workouts create "HR Run" --type run --step "warmup:10m" --step "run:20m@hr:140-160" --step "cooldown:10m"gccli workouts create "FTP Intervals" --type bike --step "warmup:10m" --step "run:5m@power:250-280" --step "recovery:3m" --step "run:5m@power:250-280" --step "cooldown:10m"gccli courses listgccli courses favoritesgccli courses detail gccli courses import route.gpxgccli courses import route.gpx --name "Sunday Ride"gccli courses import route.gpx --type gravel_cyclinggccli courses import route.gpx --privacy 1gccli courses send gccli courses delete (use -f to skip confirmation)gccli devices listgccli devices settings gccli devices primarygccli devices last-usedgccli devices alarmsgccli devices solar --start 2024-06-01 --end 2024-06-30 gccli gear listgccli gear stats gccli gear activities --limit 20 gccli gear defaultsgccli gear link gccli gear unlink gccli goals list --status activegccli badges earnedgccli badges availablegccli badges in-progressgccli challenges listgccli challenges badgegccli recordsgccli profilegccli profile settingsgccli hydration [date]gccli hydration add 500gccli training plans --locale engccli training plan gccli wellness menstrual-cycle --start-date 2024-01-01 --end-date 2024-03-31gccli wellness pregnancy-summary...
安装 Garmin Connect CLI 后,可以对 AI 说这些话来触发它
Help me get started with Garmin Connect CLI
Explains what Garmin Connect CLI does, walks through the setup, and runs a quick demo based on your current project
Use Garmin Connect CLI to garmin Connect CLI for activities, health, body composition, workou...
Invokes Garmin Connect CLI with the right parameters and returns the result directly in the conversation
What can I do with Garmin Connect CLI in my general tools workflow?
Lists the top use cases for Garmin Connect CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/garmin-connect-cli/ 目录(个人级,所有项目可用),或 .claude/skills/garmin-connect-cli/(项目级)。重启 AI 客户端后,用 /garmin-connect-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Garmin Connect CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Garmin Connect CLI 可免费安装使用。请查阅仓库了解许可证信息。
Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more.
Garmin Connect CLI 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Garmin Connect CLI
Identifies repetitive steps in your workflow and sets up Garmin Connect CLI to handle them automatically