Skip to main content

Google Health CLI now available to access your data & build tools

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:

Advertisement - scroll for more content

  • Monitor trends: Automate a daily sync of sleep, recovery and health metric trends, helping you optimize training readiness or track how minor routine changes impact specific health symptoms.
  • Integrate into your day to day: High Readiness today? Connect to your calendar to automatically block out a workout or a mindfulness break if your day is packed with back-to-back meetings.
  • Build custom alerts: Create automated workflows that correlate nutrition logs with blood glucose, or set up subtle recovery alerts when vitals deviate from a personal baseline.

To get started:

  1. Install the Tool: Download the CLI directly from our official open-source GitHub repo
  2. Run the Guide: Initialize the setup with a single command: ghealth setup –instructions
  3. Connect Your Data: Follow the interactive prompts to securely create and connect a project on Google Cloud Console and download your secure credentials

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Abner Li Abner Li

Editor-in-chief. Interested in the minutiae of Google and Alphabet. Tips/talk: abner@9to5g.com