Repository navigation
Releases
garmcli v2.0.0
Native Garmin access
garmcli 2.0.0 replaces the separately installed gccli executable with the Python library garminconnect==0.3.18, installed automatically with garmcli. Garmin access remains read-only. Licensed under MIT; an independent community project, not affiliated with Garmin.
What's changed
- Native
auth login,auth statusandauth logoutcommands. Password and MFA prompts are hidden; sessions use macOS Keychain or Linux Secret Service, with no plaintext token fallback. - A fixed read-only request allowlist preserves all 15 health metric families, devices, activity listings and FIT/GPX/TCX/KML/CSV downloads.
- Bounded data requests, sanitized errors, token refresh persistence and process cleanup on timeout or interruption.
- Updated documentation and companion agent skill for the native workflow.
Breaking changes and migration
- Python 3.12+ is required (previously 3.11+).
- The
--gcclioption is removed. Thedoctordiagnostic now reportsdata.backendfor the Python library. - Sign in with
garmcli auth login your-email@example.com. Existing gccli sessions are not automatically imported. - Keep your existing SQLite history. Database schema version
1, normalized account identities and outer JSON envelope version1are preserved. Use the same Garmin email and domain. No reset or history migration is needed. - On Linux, live access requires an available, unlocked Secret Service credential store. Offline history queries need no Garmin authentication or network access.
Install or upgrade
With uv:
uv tool install --python 3.12 --reinstall garmcli==2.0.0
garmcli auth login your-email@example.com
garmcli --json doctorWith Homebrew:
brew update
brew install matheuscoelhomalta/tap/garmcliFor an existing Homebrew installation, use brew upgrade matheuscoelhomalta/tap/garmcli. Choose which installation should be on your PATH if you use both channels.
Packages
garmcli-2.0.0-py3-none-any.whl: universal Python installation package; runtime dependencies install automatically.garmcli-2.0.0.tar.gz: source installation package, including tests, MIT license and companion skill.garmcli-skill-v2.0.0.zip: companion skill only; the CLI must be installed separately.SHA256SUMS: checksums for the three packages. Verify withshasum -a 256 -c SHA256SUMS.
Validation
- 73 synthetic tests passed on Linux and macOS with Python 3.12 and 3.14: GitHub CI.
- Native read-only access was verified for all 15 health metrics, Venu 4 device detection, activity listings and all five download formats.
- Existing 30-day history exports remained compatible; interrupted live synchronization resumed without refetching completed records.
- Release artifacts match the committed Python source and contain no personal Garmin history, exports or credentials.
Release commit: 0c0bebfb997078b912aaa79205566dcfb961b633.
garmcli v1.0.0
First stable release
garmcli v1.0.0 is a read-only Garmin Connect CLI for agents and local analysis, built on separately installed gccli. Licensed under MIT; an independent community project, not affiliated with Garmin.
Included
- Inclusive date-range synchronization of 15 health metric families, including sleep, HRV, heart rate, stress, Body Battery and training data.
- Local, account-scoped SQLite history with atomic persistence and resumable sync. Repeat the same command to skip completed records, retry errors and fetch missing records.
- Offline health queries and daily snapshots without network access or Garmin authentication.
- JSON exports with a versioned outer envelope (
schema_version: "1"), explicitavailable,empty,errorandmissingstatuses, and unchanged Garmin response payloads. - Read-only device and activity queries, plus activity file downloads.
- A companion Codex skill covering sync, offline analysis, exports and read-only access.
Install
Requires Python 3.11+. Install uv and gccli separately. Live access was tested with gccli 1.13.0.
Install the universal Python wheel:
uv tool install https://github.com/matheuscoelhomalta/garmcli/releases/download/v1.0.0/garmcli-1.0.0-py3-none-any.whlOr install from the pinned release tag:
uv tool install git+https://github.com/matheuscoelhomalta/garmcli.git@v1.0.0If a Garmin session is not already configured:
gccli auth login your-email@example.com
garmcli --json doctorOn macOS, use gccli's Keychain backend. doctor checks local setup and stored authentication; it does not prove live endpoint reachability.
Quick start
garmcli --json sync --from 2026-10-01 --to 2026-10-07 --metrics sleep,hrv
garmcli --json health sleep --from 2026-10-01 --to 2026-10-07 --offline --out sleep.jsonRepeat the sync command after interruption to resume. health and snapshot always read cached history; use sync for fresh data. File exports refuse to overwrite existing files. A complete retrieval can include empty responses; check record statuses before analysis. Garmin's inner payload schemas can change independently of garmcli's outer JSON contract.
Downloads
| Asset | Purpose |
|---|---|
garmcli-1.0.0-py3-none-any.whl |
Universal Python installation package; Python is required, not a standalone executable |
garmcli-1.0.0.tar.gz |
Source installation package, including tests, license and companion skill |
garmcli-skill-v1.0.0.zip |
Companion skill only; extract its garmcli/ directory into ~/.codex/skills/ if no existing installation is present |
SHA256SUMS |
SHA-256 checksums for the three packages |
The skill requires garmcli to be installed separately. Inspect an existing skill installation before replacing it.
After downloading the packages and checksum file into one directory:
shasum -a 256 -c SHA256SUMSValidation
- 36 synthetic tests passed against the installed release wheel, including interruption/resume, offline reads, JSON exports, account isolation and read-only command boundaries.
- GitHub CI passed on Linux and macOS with Python 3.11 and 3.14.
- Installation packages contain the committed source and MIT license. No personal Garmin exports, local history or authentication credentials are included.
Release commit: 7f371144f3f26fa2ba9123684ccb4b1a0b47a29a.