Fitbit Air sync woes? Fix with ghealth CLI for Google Health

ghealth is a single‑binary Go wrapper for the Google Health API v4 that lets developers and AI agents fetch fitness and health data from Fitbit, Pixel Watch and connected sources with minimal boilerplate. After installing the binary (go build -o ghealth .) you run ghealth setup to create a Desktop‑type OAuth client in Google Cloud, store credentials under ~/.config/ghealth with mode 0600, and obtain automatically refreshed tokens via PKCE S256. The tool exposes 40 verified data types such as steps, heart‑rate, sleep, weight, oxygen‑saturation and ECG, each supporting operations like list, rollup, daily‑rollup, reconcile and, for writable types, create, update and delete. Every command returns simplified JSON with a stable shape under the key dataPoints, provides deterministic exit codes, and offers flags like –dry-run, –raw, –format csv|table and -o for file output. Pagination is lossless using nextPageToken. Example usage: recent heart‑rate readings – ghealth data heart-rate list –from today –limit 10; weekly step totals – ghealth data steps daily-rollup –from 2026-03-22 –to 2026-03-29; detailed sleep stages – ghealth data sleep list –limit 5 –detail. The output can be piped directly into agents, loaded into pandas via CSV export, or charted in notebooks. By handling auth, formatting and pagination, ghealth reduces the work needed to call the raw REST API while preserving full access to the v4 surface. It is ideal for terminal scripts, AI agents and quick data exploration. #AI #Product #HealthTech #GoogleHealth #OpenSource #CLI