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.

A-MEM: Self-Evolving Memory for Coding Agents

A-MEM: Self-Evolving Memory for Coding Agents

August 17, 2026

A-MEM is an innovative self-evolving memory system designed for coding agents, organizing knowledge into a dynamic Zettelkasten-style graph. It allows memories to evolve and connect over time, enhancing an agent's ability to recall and utilize information effectively. This system offers both semantic and structural search capabilities for a richer knowledge base.

PythonAILLM
Agent Sandbox: Secure Local Development for AI Coding Agents

Agent Sandbox: Secure Local Development for AI Coding Agents

August 17, 2026

Agent Sandbox provides a robust and secure local development environment specifically designed for collaborating with AI coding agents. It ensures minimal filesystem access, configurable network egress policies, and secure secret injection, protecting your local machine from potentially risky agent operations. This project supports various AI agents and integrates seamlessly with both CLI and popular IDE devcontainer setups.

agent-harnessagent-sandboxagents
AMD Skills: Empowering AI Agents with AMD's Optimized Software Stack

AMD Skills: Empowering AI Agents with AMD's Optimized Software Stack

August 16, 2026

AMD Skills is the official catalog of AI agent skills from AMD, designed to empower AI agents with optimized software for AMD hardware. This repository provides knowledge, scripts, and conventions for working with AMD's stack, enabling seamless integration with major coding agents like Cursor, Claude Code, OpenAI Codex, and Gemini CLI.

PythonAI AgentsMachine Learning
agent-tackle-box: A Terminal Debugger for LangGraph & LangChain Agents

agent-tackle-box: A Terminal Debugger for LangGraph & LangChain Agents

August 15, 2026

agent-tackle-box is a comprehensive toolkit for developing AI agents, featuring the powerful `agent-debugger`. This terminal debugger provides deep insights into LangGraph and LangChain agents. It allows developers to inspect state, monitor tool calls, and step through Python code, all within a unified Textual UI.

agent-debuggerai-agentslangchain

Source repository

Open the original repository on GitHub.

14 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 ❤️