garmin-connect

garmin-connect is a skill for Claude Code from MECoban/garmin-ai-coach. It costs 182 tokens per session (1,123 once invoked), scanned A, original, MIT.

A method for retrieving a user's Garmin Connect health, fitness, sleep, and activity data programmatically, including data such as heart rate, steps, stress, and running details.

In plain words
What is it for?
Building Garmin data synchronizations, dashboards, daily summaries, or coaching tools, and troubleshooting sign-in failures.
Why use it?
It addresses authentication problems caused by Garmin's protected sign-in system and provides a documented setup path.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the garmin-ai-coach plugin — 1 skill shipped together

Good fit Building Garmin data synchronizations, dashboards, daily summaries, or coaching tools, and troubleshooting sign-in failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mecoban/garmin-ai-coach/garmin-connect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MECoban/garmin-ai-coach --skill garmin-connect
Clone the repo
git clone --depth 1 https://github.com/MECoban/garmin-ai-coach

Made for: Claude Code.

Or install garmin-ai-coach, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for garmin-connect

README.md
[![agentmods](https://agentmods.dev/badge/skills/mecoban/garmin-ai-coach/garmin-connect/github.svg)](https://agentmods.dev/skills/mecoban/garmin-ai-coach/garmin-connect)
Your own site
<a href="https://agentmods.dev/skills/mecoban/garmin-ai-coach/garmin-connect"><img src="https://agentmods.dev/badge/skills/mecoban/garmin-ai-coach/garmin-connect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for garmin-connect

Your own site · 80×15
<a href="https://agentmods.dev/skills/mecoban/garmin-ai-coach/garmin-connect"><img src="https://agentmods.dev/badge/skills/mecoban/garmin-ai-coach/garmin-connect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00182 $0.01123
Opus 5 $0.00091 $0.00562
Sonnet 5 $0.00036 $0.00225
Haiku 4.5 $0.00018 $0.00112

Measured 12d ago against content hash 710d6e272570, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

garmin-connect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/garmin-connect/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Garmin Connect data access (Cloudflare-aware, June 2026)

This skill lets an agent retrieve a user's own Garmin Connect data and build automations on it. It encodes the currently working authentication recipe.

When to use

The user wants their Garmin data, or is stuck authenticating to Garmin from Python (429 / 401 / "Verify you are human" / MFA loops). Also for building daily sync, dashboards, or AI coaching on Garmin data.

Why the usual approaches fail (and what works)

Since March 2026 Garmin's SSO (sso.garmin.com) is behind Cloudflare. Plain HTTP clients and the newer native-auth garminconnect/garth get blocked or stuck on a "Verify you are human" challenge.

Working recipe: the older garth-based garminconnect==0.2.38 with a cloudscraper session injected into garth. cloudscraper transparently solves Cloudflare's JS challenge.

Prerequisite (tell the user)

Garmin Two-Step Verification must be OFF (Account → Security Center → Two-Step Verification → E-mail and SMS both Off). garminconnect has no 2FA flow. After the token is cached the user may re-enable 2FA; the token keeps working.

Step 1 — install

python3 -m venv venv
venv/bin/python -m pip install "garminconnect==0.2.38" cloudscraper python-dotenv

Step 2 — authenticate once (token lasts ~1 year)

The KEY line is injecting cloudscraper into client.garth.sess:

import cloudscraper
from garminconnect import Garmin

client = Garmin(email, password)          # 2FA must be OFF
client.garth.sess = cloudscraper.create_scraper()   # ← bypass Cloudflare
client.login()
client.garth.dump("~/.garminconnect")     # cache token (~1 year)

Run this interactively the first time (prompt the user for the password with getpass; never log it). Token is saved to ~/.garminconnect.

Step 3 — fetch data (token only, no login)

Re-inject cloudscraper for API calls too (connectapi.garmin.com is also behind Cloudflare):

import cloudscraper
from garminconnect import Garmin
c = Garmin()
c.garth.sess = cloudscraper.create_scraper()
c.login("~/.garminconnect")               # loads cached token

c.get_stats("2026-06-19")                 # steps, calories, restingHeartRate, bodyBatteryMostRecentValue, averageStressLevel
c.get_sleep_data("2026-06-19")            # dailySleepDTO: sleepTimeSeconds, sleepScores.overall.value
c.get_training_readiness("2026-06-19")    # [{score, level}]
c.get_activities(0, 10)                   # activities: distance, duration, averageSpeed, averageHR, averageRunningCadenceInStepsPerMinute

Pace from averageSpeed (m/s): (1000/speed)/60 → min/km.

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 84 lines · 0 tokens per session scan A 710d6e272570

Subscribe to this mod's changes

garmin-connect is a skill published in the GitHub repository MECoban/garmin-ai-coach (1 stars, last pushed 2mo ago), licensed MIT. It adds 182 tokens to every session and 1,123 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agentic-data-science-competition

AI Agent-driven Kaggle competition workflow. Learn from real competition experience: score stabilization patterns, submission troubleshooting, kernel workflows, GPU task delegation, and the spec-driven development approach that achieved top leaderboard positions. Use when: working on any Kaggle competition, analyzing…

Mirannonarbitrable290/agentic-kaggle-skill · 76 tokens

codex

Delegate coding tasks to OpenAI Codex CLI with YOLO mode for autonomous execution.

veithly/codex-skill · 16 tokens

ccthread

Read, search, and summarize Claude Code conversation history. Use when the user asks to find things discussed in past sessions, review old threads, summarize recent work for teammates, extract learnings into a skill or CLAUDE.md, or answer "what was that value/port/command we used?" — ccthread reads /.claude/projects/…

jakemarsh/ccthread · 123 tokens

session-deep-dive

Deep qualitative analysis of high-signal sessions. Spawns subagents with v2 template, synthesizes patterns, compares against known findings. Use after /session-scan.

oliver-kriska/claude-elixir-phoenix · 40 tokens

elixir-idioms

OTP/BEAM patterns and Elixir idioms — GenServer, Supervisor, Task, Registry, pattern matching, with chains, pipes. Use when designing processes or debugging BEAM issues.

oliver-kriska/claude-elixir-phoenix · 44 tokens

tidewave-integration

Tidewave MCP runtime tools — debugging, smoke testing, live state inspection, SQL queries, hex docs. Use when evaluating code in a running Phoenix app.

oliver-kriska/claude-elixir-phoenix · 38 tokens