MetricBraid
MetricBraid decides which measurement an AI is allowed to believe and records why.
MetricBraid is an open-source framework for AI analysis of overlapping wearable health and sensor data, with source routing, deduplication, confidence grading, and provenance.
Connect your wearable and sensor data to an AI agent, then ask questions about your sleep, recovery, activity, training, or health trends without first having to reconcile conflicting devices yourself.
If your ring says you slept 7h 42m, your watch says 7h 05m, both recorded yesterday's run, and a chest strap captured the better heart-rate signal, MetricBraid determines which source should govern each part of the analysis, removes duplicates, grades how trustworthy each measurement is, and preserves why each number was selected.
It sits between your sensor observations and the answer your AI gives you.
Choose your setup
Choose the application you will use, not the underlying model. Each guide
shows only the steps for that environment and ends with an exact verification
prompt.
| I am using | Best current route | Start here |
|---|
| Claude Code | Install the MetricBraid plugin; no repository clone required | Claude Code quick start |
| Codex | Clone the repository and let its AGENTS.md guide Codex | Codex quick start |
| Gemini CLI, Cursor, or another agent | Clone the portable framework and provide its project instructions | Other agents quick start |
| Any agent with exports or pasted observations | Skip live integrations and provide local files | Local-data quick start |
If you already use Claude Code, choose that route: it has the most complete
packaged setup. If you do not need live wearable connections, the local-data
route has the fewest authentication steps.
SETUP.md is the shared reference for device configuration, Oura and Garmin
authentication, security, and troubleshooting. Start with one quick start
above rather than reading the entire reference from top to bottom.
Why this exists
If you use more than one tracker — a ring and a watch, a band and a chest strap, a watch and a phone — you have devices producing overlapping and sometimes contradictory claims about the same physical events.
Give all of those records to an AI and ask:
"How am I doing?"
and the naive answer can be fluent, confident, and wrong.
It might:
- count one run as two workouts;
- average two sensors into a value neither device actually measured;
- use wrist heart rate even though a chest strap captured the same session;
- compare measurements with different known biases as though they were equivalent;
- report sleep-stage estimates as physiological fact;
- build conclusions on calorie estimates that are too inaccurate to support them;
- silently pick one device when there is no defensible reason to prefer it.
MetricBraid sits between the raw observations and the analysis:
candidate observations
↓
routing / arbitration
↓
confidence
↓
provenance
↓
analysis
↓
answer
Every observation from every configured source starts as a candidate.
MetricBraid determines:
- which source governs each claim;
- whether overlapping records represent the same physical event;
- which sensor should govern individual channels such as heart rate;
- how confident the system is in the routing decision;
- how trustworthy the underlying measurement actually is;
- what evidence supports those judgements;
- what uncertainty must remain visible in the final answer.
If no rule resolves a conflict, MetricBraid does not quietly choose a winner.
It reports the disagreement and says that the conflict is unresolved.
What you can do with it
Once MetricBraid and your data sources are available to an AI agent, you query your data naturally.
You do not need to manually decide which tracker to trust before asking the question.
For example: