Leo-Health-Core: Unify Apple Health & Whoop Data Locally with SQLite

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Leo-Health-Core: Unify Apple Health & Whoop Data Locally with SQLite

Summary

Leo-Health-Core is an open-source Python tool designed to parse Apple Health and Whoop exports, unifying your biometric data into a local SQLite database. It operates with zero dependencies and no network requests, ensuring complete privacy and local control over your health information. This project allows users to easily query and analyze their personal health trends using standard SQL.

Repository Information

Analyzed by OSRepos on May 17, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Leo-Health-Core is an open-source Python project that provides a powerful solution for managing your personal health data. It addresses the common challenge of fragmented biometric data, often locked in large Apple Health XML exports or inconsistent Whoop CSV files. Leo-Health-Core unifies this data into a single, normalized SQLite database, making it easily queryable with standard SQL. Designed with privacy at its core, it boasts zero dependencies and performs no network requests, ensuring all your sensitive health information remains securely on your local machine. This tool is ideal for developers and privacy-conscious individuals who want full control and analytical capabilities over their health metrics.

Installation

Getting started with Leo-Health-Core is straightforward, whether you prefer a direct installation or using Docker for cross-platform compatibility.

Direct Installation (macOS):

  1. Clone the repository:
    git clone https://github.com/sandseb123/Leo-Health-Core.git
    
  2. Navigate into the directory:
    cd Leo-Health-Core
    
  3. Install in editable mode:
    pip3 install -e .
    

    Note: If pip3 is not found, try pip install -e . or install Python 3.9+ from python.org.

Docker Installation (macOS, Linux, Windows):

  1. Clone the repository:
    git clone https://github.com/sandseb123/Leo-Health-Core.git
    
  2. Navigate into the directory:
    cd Leo-Health-Core
    
  3. Start the dashboard:
    docker compose up -d
    
  4. Open in browser:
    open http://localhost:5380
    

    Drop your health exports into the imports/ folder, and Leo will detect and ingest them automatically.

Examples

Once installed, Leo-Health-Core provides several commands to interact with your data and a web dashboard for visualization.

Terminal Commands:

  • leo: View your health dashboard directly in the terminal.
  • leo-watch: Start watching your Downloads folder for new health exports, automatically parsing them.
  • leo-dash: Open the full web dashboard in your browser.

Querying Your Data with SQL:

You can directly query your unified health data using SQLite.
First, open the database:

sqlite3 ~/.leo-health/leo.db

Then, run SQL queries like these:

-- Last 7 days of Whoop recovery
SELECT recorded_at, recovery_score, hrv_ms, resting_heart_rate
FROM whoop_recovery
ORDER BY recorded_at DESC LIMIT 7;

-- HRV by source (Apple Watch vs Whoop)
SELECT source, ROUND(AVG(value), 1) as avg_hrv, COUNT(*) as readings
FROM hrv GROUP BY source;

-- Sleep stage breakdown
SELECT stage, COUNT(*) as sessions
FROM sleep GROUP BY stage ORDER BY sessions DESC;

Why Use It

Leo-Health-Core stands out for several compelling reasons, especially for those prioritizing data ownership and privacy:

  • Complete Data Privacy: All processing and storage happen locally on your machine. There are zero network requests, ensuring your sensitive health data never leaves your device.
  • Unified Data Source: It consolidates disparate data from Apple Health and Whoop into a single, normalized SQLite database, simplifying analysis.
  • Easy Querying: With your data in SQLite, you can use standard SQL queries to explore trends, compare metrics, and gain insights without relying on proprietary apps or cloud services.
  • Automated Ingestion: The leo-watch feature automatically detects and parses new health exports dropped into your Downloads folder, streamlining the data import process.
  • Open Source and Extensible: Being open source and MIT licensed, Leo-Health-Core is free to use, modify, and extend, offering transparency and flexibility.
  • Future AI Integration (Leo Max): The project has a roadmap for Leo Max, an upcoming local AI health coach that will analyze your data privately, cross-reference medical literature, and even ingest bloodwork PDFs, all without sending data off your machine.

Links

Related repositories

Similar repositories that may be relevant next.

Tau: A Minimalist Python Coding Agent for Your Terminal

Tau: A Minimalist Python Coding Agent for Your Terminal

September 8, 2026

Tau is a Python port of Pi's minimalist coding agent, designed to live in your terminal. It allows users to make requests like "explain this repo" or "add tests," and it can read files, edit code, and run commands. Beyond its utility, Tau also serves as a teaching project, demonstrating how coding agents are built with a small, readable codebase.

PythonAICoding Agent
Awesome Harness Engineering: Building Reliable AI Agent Systems

Awesome Harness Engineering: Building Reliable AI Agent Systems

September 7, 2026

Awesome Harness Engineering is a comprehensive curated list dedicated to the discipline of designing robust AI agent harnesses. It offers a wealth of resources, patterns, and templates essential for building reliable AI agent systems. Developers can explore tools, best practices, and foundational concepts across various critical areas of agent development.

agent-harnessai-agentsawesome-list
Best of Agent Harnesses: A Curated List for AI Agent Development

Best of Agent Harnesses: A Curated List for AI Agent Development

September 7, 2026

RyanAlberts' Best of Agent Harnesses is a comprehensive, curated, and ranked list of over 100 AI agent harnesses and orchestration frameworks. It provides valuable insights for building reliable agentic systems, offering both human-readable guides and machine-readable formats for agents themselves. The repository is rescored weekly to ensure up-to-date recommendations.

AI AgentsAgent HarnessesLLM Frameworks
Wasm Agents Blueprint: Run Python AI Agents in Your Browser with WebAssembly

Wasm Agents Blueprint: Run Python AI Agents in Your Browser with WebAssembly

September 3, 2026

Wasm Agents Blueprint is an innovative project from Mozilla AI that allows you to run Python-based AI agents directly in your web browser using WebAssembly (Wasm) and Pyodide. It bridges the gap between powerful Python AI frameworks, like the OpenAI Agents SDK, and browser-based applications. This blueprint eliminates the need for complex server setups or Docker containers, offering a streamlined way to experience AI agents.

PythonWebAssemblyAI Agents

Source repository

Open the original repository on GitHub.

19 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️