As previewed, Google Health now offers a command-line interface (CLI) that allows users to access their data and build tools like dashboards.

Leveraging the Google Health API and “designed with agent use in mind,” the CLI provides easier access to data from devices like the Fitbit Air and Pixel Watch. Specifically, there are over 40 health and wellness metrics like Activity, Sleep, Heart Rate, and Vo2Max.

Stats can be exported into “streamlined JSON, clean terminal tables, CSV files ready for a personal spreadsheet, or build a custom health dashboard.”

Whether you are running quick commands in a terminal or hooking it up to your favorite AI agents, the Google Health CLI makes the data you access work for you. It comes with two starter skills to streamline setup and authentication. Just prompt your agent to the README file to get started.

Google Health CLI can be used by both a “commercial application developer building an app for a broad audience or an individual health enthusiast diving into your own data in new ways.” Example use cases include: