{"slug":"garmin-connect","title":"garmin-connect","summary":"Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-08-31T16:20:25.060185Z","repo":{"url":"https://github.com/bpauli/gccli","stars":32,"forks":13,"license":"MIT","updatedAt":"2026-11-16T04:33:37Z"},"bodyHtml":"<hr>\n<h2>name: garmin-connect\ndescription: Garmin Connect CLI for activities, health, body composition, workouts, devices, gear, goals, and more.\nhomepage: <a href=\"https://github.com/bpauli/gccli\">https://github.com/bpauli/gccli</a>\nmetadata: {\"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+)\"}]}}</h2>\n<h1>gccli</h1>\n<p>Use <code>gccli</code> for Garmin Connect health, fitness, and activity data. Requires Garmin SSO authentication.</p>\n<p>Setup (once)</p>\n<ul>\n<li><code>gccli auth login you@example.com</code> (opens browser for Garmin SSO)</li>\n<li>Headless: <code>gccli auth login you@example.com --headless</code> (with <code>--mfa-code &lt;code&gt;</code> for MFA)</li>\n<li>Set default account: <code>export GCCLI_ACCOUNT=you@example.com</code></li>\n<li>Verify: <code>gccli auth status</code></li>\n</ul>\n<p>Output</p>\n<ul>\n<li>Default: human-friendly tables. Use <code>--json</code> / <code>-j</code> for JSON, <code>--plain</code> for TSV.</li>\n<li>Data goes to stdout, messages/errors to stderr.</li>\n<li>Always use <code>--json</code> when parsing output programmatically.</li>\n</ul>\n<p>Date shortcuts</p>\n<ul>\n<li><code>today</code>, <code>yesterday</code>, <code>3d</code> (N days ago), <code>YYYY-MM-DD</code> (specific date).</li>\n<li>Use <code>--start</code>/<code>--end</code> flags for date ranges.</li>\n</ul>\n<p>Common commands</p>\n<ul>\n<li>Auth status: <code>gccli auth status</code></li>\n<li>Auth token (for scripting): <code>gccli auth token</code></li>\n<li>Export credentials: <code>gccli auth export</code> (pipe to file or copy to another machine)</li>\n<li>Import credentials: <code>gccli auth import &lt;token&gt;</code> (from <code>auth export</code> output)</li>\n<li>Remove credentials: <code>gccli auth remove</code></li>\n<li>List activities: <code>gccli activities list --limit 20</code></li>\n<li>List activities by type: <code>gccli activities list --type running</code></li>\n<li>Activity count: <code>gccli activities count</code></li>\n<li>Search activities: <code>gccli activities search --start-date 2024-01-01 --end-date 2024-12-31</code></li>\n<li>Activity summary: <code>gccli activity summary &lt;id&gt;</code></li>\n<li>Activity details: <code>gccli activity details &lt;id&gt;</code></li>\n<li>Activity splits: <code>gccli activity splits &lt;id&gt;</code></li>\n<li>Activity weather: <code>gccli activity weather &lt;id&gt;</code></li>\n<li>Activity HR zones: <code>gccli activity hr-zones &lt;id&gt;</code></li>\n<li>Activity power zones: <code>gccli activity power-zones &lt;id&gt;</code></li>\n<li>Activity exercise sets (show): <code>gccli activity exercise-sets &lt;id&gt;</code></li>\n<li>Set exercise sets: <code>gccli activity exercise-sets set &lt;id&gt; -e \"CATEGORY/NAME:reps@weightkg[:dSECS][:rSECS]\" [-e ...]</code></li>\n<li>Activity gear: <code>gccli activity gear &lt;id&gt;</code></li>\n<li>Download activity (FIT): <code>gccli activity download &lt;id&gt; --format fit</code></li>\n<li>Download activity (GPX): <code>gccli activity download &lt;id&gt; --format gpx --output track.gpx</code></li>\n<li>Upload activity: <code>gccli activity upload ./activity.fit</code></li>\n<li>Create manual activity: <code>gccli activity create --name \"Morning Run\" --type running --date 2024-06-15T07:30:00 --duration 1800 --distance 5000</code></li>\n<li>Rename activity: <code>gccli activity rename &lt;id&gt; \"New Name\"</code></li>\n<li>Retype activity: <code>gccli activity retype &lt;id&gt; running</code></li>\n<li>Delete activity: <code>gccli activity delete &lt;id&gt; --force</code></li>\n<li>Activity types: <code>gccli activities types</code></li>\n<li>Health summary: <code>gccli health summary [date]</code></li>\n<li>Steps chart: <code>gccli health steps [date]</code></li>\n<li>Daily steps range: <code>gccli health steps daily --start 2024-01-01 --end 2024-01-31</code></li>\n<li>Weekly steps: <code>gccli health steps weekly --weeks 4</code></li>\n<li>Heart rate: <code>gccli health hr [date]</code></li>\n<li>Resting HR: <code>gccli health rhr [date]</code></li>\n<li>Floors climbed: <code>gccli health floors [date]</code></li>\n<li>Sleep: <code>gccli health sleep [date]</code></li>\n<li>Respiration: <code>gccli health respiration [date]</code></li>\n<li>SpO2: <code>gccli health spo2 [date]</code></li>\n<li>HRV: <code>gccli health hrv [date]</code></li>\n<li>Stress: <code>gccli health stress [date]</code></li>\n<li>Weekly stress: <code>gccli health stress weekly --weeks 4</code></li>\n<li>Body battery: <code>gccli health body-battery [date]</code></li>\n<li>Body battery range: <code>gccli health body-battery range --start 2024-01-01 --end 2024-01-07</code></li>\n<li>Training readiness: <code>gccli health training-readiness [date]</code></li>\n<li>Training status: <code>gccli health training-status [date]</code></li>\n<li>Fitness age: <code>gccli health fitness-age [date]</code></li>\n<li>VO2max / max metrics: <code>gccli health max-metrics [date]</code></li>\n<li>Lactate threshold: <code>gccli health lactate-threshold</code></li>\n<li>Cycling FTP: <code>gccli health cycling-ftp</code></li>\n<li>Race predictions: <code>gccli health race-predictions [date]</code></li>\n<li>Race predictions range: <code>gccli health race-predictions range --start 2024-01-01 --end 2024-06-30</code></li>\n<li>Endurance score: <code>gccli health endurance-score [date]</code></li>\n<li>Hill score: <code>gccli health hill-score [date]</code></li>\n<li>Intensity minutes: <code>gccli health intensity-minutes [date]</code></li>\n<li>Weekly intensity minutes: <code>gccli health intensity-minutes weekly --start 2024-01-01 --end 2024-01-31</code></li>\n<li>Wellness events: <code>gccli health events [date]</code></li>\n<li>Body composition: <code>gccli body composition [date]</code></li>\n<li>Body composition range: <code>gccli body composition --start 2024-01-01 --end 2024-01-31</code></li>\n<li>Weigh-ins: <code>gccli body weigh-ins --start 2024-01-01 --end 2024-01-31</code></li>\n<li>Add weight: <code>gccli body add-weight 75.5 --unit kg</code></li>\n<li>Add composition: <code>gccli body add-composition 75.5 --body-fat 15.2 --muscle-mass 35.0</code></li>\n<li>Blood pressure: <code>gccli body blood-pressure --start 2024-01-01 --end 2024-01-31</code></li>\n<li>Add blood pressure: <code>gccli body add-blood-pressure --systolic 120 --diastolic 80 --pulse 65</code></li>\n<li>List workouts: <code>gccli workouts list --limit 20</code></li>\n<li>Workout detail: <code>gccli workouts detail &lt;id&gt;</code></li>\n<li>Download workout (FIT): <code>gccli workouts download &lt;id&gt; --output workout.fit</code></li>\n<li>Upload workout (JSON): <code>gccli workouts upload ./workout.json</code></li>\n<li>Update workout (JSON): <code>gccli workouts update &lt;id&gt; ./workout.json</code> — replaces the workout in place, keeping its ID and any existing schedule</li>\n<li>Schedule workout: <code>gccli workouts schedule add &lt;id&gt; 2024-06-20</code></li>\n<li>List scheduled workouts: <code>gccli workouts schedule list 2024-06-20</code></li>\n<li>List scheduled workouts in range: <code>gccli workouts schedule list --start 2024-06-01 --end 2024-06-30</code></li>\n<li>Remove scheduled workout: <code>gccli workouts schedule remove &lt;schedule-id&gt;</code> (use <code>--force</code> to skip confirmation)</li>\n<li>Delete workout: <code>gccli workouts delete &lt;id&gt;</code></li>\n<li>Create running workout with pace: <code>gccli workouts create \"Easy Run\" --type run --step \"warmup:5m\" --step \"run:20m@pace:5:00-5:30\" --step \"cooldown:5m\"</code></li>\n<li>Create workout with HR targets: <code>gccli workouts create \"HR Run\" --type run --step \"warmup:10m\" --step \"run:20m@hr:140-160\" --step \"cooldown:10m\"</code></li>\n<li>Create cycling workout with power: <code>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\"</code></li>\n<li>List courses: <code>gccli courses list</code></li>\n<li>Favorite courses: <code>gccli courses favorites</code></li>\n<li>Course detail: <code>gccli courses detail &lt;id&gt;</code></li>\n<li>Download course (FIT): <code>gccli courses download &lt;id&gt; --format fit</code></li>\n<li>Download course (GPX): <code>gccli courses download &lt;id&gt; --format gpx --output route.gpx</code></li>\n<li>Import course from GPX (default: cycling, private): <code>gccli courses import route.gpx</code></li>\n<li>Import course with name: <code>gccli courses import route.gpx --name \"Sunday Ride\"</code></li>\n<li>Import course with type: <code>gccli courses import route.gpx --type gravel_cycling</code></li>\n<li>Import public course: <code>gccli courses import route.gpx --privacy 1</code></li>\n<li>Send course to device: <code>gccli courses send &lt;course-id&gt; &lt;device-id&gt;</code></li>\n<li>Delete course: <code>gccli courses delete &lt;id&gt;</code> (use <code>-f</code> to skip confirmation)</li>\n<li>List devices: <code>gccli devices list</code></li>\n<li>Device settings: <code>gccli devices settings &lt;device-id&gt;</code></li>\n<li>Primary device: <code>gccli devices primary</code></li>\n<li>Last used device: <code>gccli devices last-used</code></li>\n<li>Device alarms: <code>gccli devices alarms</code></li>\n<li>Solar data: <code>gccli devices solar &lt;device-id&gt; --start 2024-06-01 --end 2024-06-30</code></li>\n<li>List gear: <code>gccli gear list</code></li>\n<li>Gear stats: <code>gccli gear stats &lt;uuid&gt;</code></li>\n<li>Gear activities: <code>gccli gear activities &lt;uuid&gt; --limit 20</code></li>\n<li>Gear defaults: <code>gccli gear defaults</code></li>\n<li>Link gear: <code>gccli gear link &lt;uuid&gt; &lt;activity-id&gt;</code></li>\n<li>Unlink gear: <code>gccli gear unlink &lt;uuid&gt; &lt;activity-id&gt;</code></li>\n<li>Goals: <code>gccli goals list --status active</code></li>\n<li>Earned badges: <code>gccli badges earned</code></li>\n<li>Available badges: <code>gccli badges available</code></li>\n<li>In-progress badges: <code>gccli badges in-progress</code></li>\n<li>Challenges: <code>gccli challenges list</code></li>\n<li>Badge challenges: <code>gccli challenges badge</code></li>\n<li>Personal records: <code>gccli records</code></li>\n<li>Profile: <code>gccli profile</code></li>\n<li>Profile settings: <code>gccli profile settings</code></li>\n<li>Hydration: <code>gccli hydration [date]</code></li>\n<li>Log water: <code>gccli hydration add 500</code></li>\n<li>Nutrition food log: <code>gccli nutrition [date]</code></li>\n<li>Nutrition meals: <code>gccli nutrition meals [date]</code></li>\n<li>Nutrition settings: <code>gccli nutrition settings [date]</code></li>\n<li>Training plans: <code>gccli training plans --locale en</code></li>\n<li>Training plan detail: <code>gccli training plan &lt;id&gt;</code></li>\n<li>Menstrual cycle: <code>gccli wellness menstrual-cycle --start-date 2024-01-01 --end-date 2024-03-31</code></li>\n<li>Pregnancy summary: <code>gccli wellness pregnancy-summary</code></li>\n<li>List events: <code>gccli events list</code></li>\n<li>List events from date: <code>gccli events list --start 2024-06-01 --limit 50</code></li>\n<li>Add event: <code>gccli events add --name \"Berlin Marathon\" --date 2026-09-27 --type running --race --location \"Berlin, Germany\" --distance 42.195km --time 09:15 --timezone Europe/Berlin</code></li>\n<li>Add event with goal and training priority: <code>gccli events add --name \"Spring 10K\" --date 2026-05-10 --type running --race --distance 10km --goal 40m --training</code></li>\n<li>Delete event: <code>gccli events delete &lt;id&gt;</code> (use <code>-f</code> to skip confirmation)</li>\n<li>Reload data: <code>gccli reload [date]</code></li>\n<li>List exercise categories: <code>gccli exercises list</code></li>\n<li>List exercises in category: <code>gccli exercises list -c BENCH_PRESS</code></li>\n<li>List exercises (JSON): <code>gccli exercises list --json</code></li>\n</ul>\n<p>Strength training workflow (LLM-assisted exercise matching)</p>\n<p>When a user wants to log a strength training activity with exercises described in free text (e.g. \"Bench Press 3x12@20kg, Lat Pulldowns 3x12@41kg\"), follow this workflow:</p>\n<ol>\n<li>Fetch the Garmin exercise catalog: <code>gccli exercises list --json</code></li>\n<li>Map each user-described exercise to the best matching Garmin CATEGORY/EXERCISE_NAME pair. The catalog uses SCREAMING_SNAKE_CASE (e.g. BENCH_PRESS/BARBELL_BENCH_PRESS, PULL_UP/WIDE_GRIP_LAT_PULLDOWN, LATERAL_RAISE/DUMBBELL_LATERAL_RAISE, LUNGE/DUMBBELL_LUNGE, CALF_RAISE/STANDING_BARBELL_CALF_RAISE). Use your best judgement to find the closest match.</li>\n<li>Show the user the proposed mapping and ask for confirmation before proceeding.</li>\n<li>Create the activity: <code>gccli activity create --name \"Upper Body\" --type strength_training --duration 34m --date 2024-06-15T19:01:00</code></li>\n<li>Extract the activity ID from the output (JSON: activityId field, table: \"Created activity </li>\n<li>Add exercise sets: <code>gccli activity exercise-sets set &lt;id&gt; -e \"CATEGORY/NAME:reps@weightkg[:dSECS][:rSECS]\" [-e ...]</code></li>\n</ol>\n<p>Exercise set format: <code>CATEGORY/NAME:reps@weightkg[:dSECS][:rSECS]</code></p>\n<ul>\n<li>CATEGORY: exercise category (e.g. BENCH_PRESS, PULL_UP, LATERAL_RAISE, LUNGE, CALF_RAISE)</li>\n<li>NAME: specific exercise name within category (e.g. BARBELL_BENCH_PRESS, WIDE_GRIP_LAT_PULLDOWN)</li>\n<li>reps: number of repetitions</li>\n<li>weightkg: weight in kg (e.g. 20 for 20kg, 41.5 for 41.5kg, 0 for bodyweight)</li>\n<li>:dSECS: optional set duration in seconds (e.g. :d30 for 30s)</li>\n<li>:rSECS: optional rest duration in seconds after this set (e.g. :r60 for 60s)</li>\n</ul>\n<p>Each -e flag is one set. For 3 sets of 12 reps, use three -e flags with the same exercise.</p>\n<p>Example full workflow:</p>\n<pre><code>gccli activity create --name \"Upper Body\" --type strength_training --duration 34m --date 2026-03-13T19:01:00 --json\n# Extract activityId from JSON response\ngccli activity exercise-sets set &lt;id&gt; \\\n  -e \"PULL_UP/WIDE_GRIP_LAT_PULLDOWN:12@41:d30:r60\" \\\n  -e \"PULL_UP/WIDE_GRIP_LAT_PULLDOWN:12@41:d30:r60\" \\\n  -e \"PULL_UP/WIDE_GRIP_LAT_PULLDOWN:12@41:d30:r90\" \\\n  -e \"LATERAL_RAISE/DUMBBELL_LATERAL_RAISE:12@8:d25:r60\" \\\n  -e \"LATERAL_RAISE/DUMBBELL_LATERAL_RAISE:12@8:d25:r60\" \\\n  -e \"LATERAL_RAISE/DUMBBELL_LATERAL_RAISE:12@8:d25:r90\" \\\n  -e \"BENCH_PRESS/BARBELL_BENCH_PRESS:12@20:d30:r60\" \\\n  -e \"BENCH_PRESS/BARBELL_BENCH_PRESS:8@20:d35:r60\" \\\n  -e \"BENCH_PRESS/BARBELL_BENCH_PRESS:5@20:d40\"\n</code></pre>\n<p>Notes</p>\n<ul>\n<li>Set <code>GCCLI_ACCOUNT=you@example.com</code> to avoid repeating <code>--account</code>.</li>\n<li>For scripting, use <code>--json</code> for JSON output or <code>--plain</code> for TSV.</li>\n<li>Dates support <code>today</code>, <code>yesterday</code>, <code>3d</code>, or <code>YYYY-MM-DD</code>.</li>\n<li>Tokens are stored securely in the OS keyring (macOS Keychain, Linux Secret Service, file fallback).</li>\n<li>Tokens auto-refresh on 401; automatic retry on 429/5xx with exponential backoff.</li>\n<li>For Garmin China accounts: <code>export GCCLI_DOMAIN=garmin.cn</code>.</li>\n<li>Confirm before deleting activities/workouts (or use <code>--force</code>).</li>\n<li>Download formats: FIT (default), GPX, TCX, KML, CSV.</li>\n<li>Workout step format: <code>type:duration[@target:low-high]</code> — types: warmup, run, recovery, cooldown; targets: pace (min:sec), hr (bpm), power (watts), cadence.</li>\n<li><code>workouts update</code> replaces the whole workout, so build the file from <code>gccli workouts detail &lt;id&gt;</code> and edit it. <code>workoutId</code> is set from the ID argument, so an <code>upload</code> payload works unchanged.</li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":114583,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-19T20:53:00.361992Z","sha256":"6CABBDEFCE35F1612DD6AFE396D77A2ECFBF69723F00F01017D0005AD756C8C9","sizeBytes":27131},"review":null,"source":{"repositoryUrl":"https://github.com/bpauli/gccli","path":"skills/gccli","license":"MIT","commit":"5025c81f8cc0556de533cd40ef23dd7ff8c25684","subtreeSha":"5C2C211452B9F0F0E5B0C1A77568ECB231154917914F80125ECF6DC64568E218","lastSyncedAt":"2026-11-19T20:52:51.555846Z"},"reviewedAt":"2026-11-19T20:53:19.907365Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/bpauli/gccli/tree/main/skills/gccli"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install bpauli-gccli@llmmart"},{"target":"git","command":"git clone https://github.com/bpauli/gccli.git"}]}