Open-source health agent

Chat with your metabolism.

Innerloop ties your glucose sensor, your Apple Watch and a photo of your lunch into one feedback loop โ€” then puts an agent on top that tells you, in plain language, why your numbers move. Fully open source โ€” build your own.

08:125G
โ€น
Innerloop bot
bot
๐Ÿฉธ
How's my swim training coming along? ๐ŸŠ08:12 โœ“โœ“
Your last 4 sessions:
DateDistanceTime/100m
Jul 121,500 m32:102:08
Jul 051,500 m33:052:12
Jun 281,200 m27:002:15
Jun 211,000 m23:202:20
08:12
Distance +50%, pace 12 s/100m faster โ€” clean upward trend ๐Ÿ’ช08:12
And how did my heart rate perform?08:13 โœ“โœ“
Heart rate across those swims:
DateMax HRAvg HR
Jul 12178148
Jul 05172149
Jun 28169147
Jun 21164148
08:13
You got faster, but avg HR stayed flat (~148) โ€” more speed at the same effort. Your cardio fitness is improving ๐Ÿซ€๐Ÿ“ˆ08:13
๐Ÿ“Ž
Message
โžค

The premise

Your body already runs a feedback loop. Your apps just can't see it.

Your CGM knows your glucose. Your watch knows your sleep and training. Your food log knows your carbs. None of them talk to each other โ€” so the one question that matters, what did that actually do to me?, goes unanswered.

SIGNAL 01

Glucose

A continuous trace, every 5 minutes โ€” but stranded in its own app.

SIGNAL 02

Sleep & training

Rest, HR, HRV and workouts โ€” living on your wrist, never cross-referenced.

SIGNAL 03

Food

What you ate and when โ€” tedious to log, disconnected from the rest.

How it works

A photo, a curve, and a conversation.

Log a meal in seconds, watch it hit your glucose, and ask your data anything.

01 โ€” Snap it, watch it land

A photo in the chat. A marker on your curve.

Send a photo to the Telegram bot โ€” a vision model turns it into calories, carbs, protein and fat, and logs it. Seconds later the meal shows up as a marker on your live glucose chart.

The blueberry bowl at 09:40 barely moves the line. The carbonara at 18:40 writes a mountain. Same day, same body โ€” now you can see the difference.

Telegramvision โ†’ macroslive meal markers
09:415G
โ€น
Innerloop bot
bot
๐Ÿฉธ
Hey, here's my breakfast ๐Ÿ‘‡09:41 โœ“โœ“
Yogurt bowl with blueberries, granola and peanut butter 09:41 โœ“โœ“
Yogurt bowl with blueberries, granola & peanut butter โ€” logged โœ…
kcal 455carbs 38 g protein 19 gfat 21 g
09:41
Low glycemic load โ€” this should barely move your blood sugar. Watch the curve on the right ๐Ÿ‘‰09:42
๐Ÿ“Ž
Message
โžค
1 ยท Log it in the chat
โ†’
21:365G
INNERLOOP
๐Ÿ˜ด
6h32
Sleep
๐Ÿ‘ฃ
8,956
Steps
โค๏ธ
49
Rest HR
๐Ÿฉธ
98
mg/dL
BLOOD SUGAR + HEART RATE 24h
๐Ÿซ logged ยท +9 mg/dL
mg/dL bpm
RECENT EVENTS
18:40
๐Ÿ Spaghetti Carbonara
720 kcal ยท 68 g carbs ยท +62 mg/dL
15:20
๐Ÿšด Outdoor Cycling
42 min ยท 16.7 km ยท 23.8 km/h
09:40
๐Ÿซ Yogurt bowl with blueberries
455 kcal ยท 38 g carbs ยท +9 mg/dL
2 ยท See it hit the curve
02 โ€” Ask about your sleep

Did the new routine actually work?

Tell the agent what changed. It compares your last week against the two before it โ€” deep sleep, sleep onset, time awake โ€” and shows you the 14-night trend.

Meditation plus a fixed 11โ€‰pm bedtime: the data says yes.

bedtime routine14-night trenddeep sleep +50%
07:025G
โ€น
Innerloop bot
bot
๐Ÿฉธ
Morning! I've meditated before bed and fixed my bedtime to 11โ€‰pm for the last 7 days ๐Ÿง˜ โ€” can you see a difference in my sleep quality?07:02 โœ“โœ“
Yes โ€” a clear improvement in your deep sleep ๐Ÿ“ˆ07:02
This week vs. the two before:
MetricBeforeNow
Deep sleep34 min51 min
Fall asleep23:5123:12
Awake18 min3 min
07:02
The fixed 11โ€‰pm bedtime is doing most of the work โ€” consistency beats duration. Keep it up ๐Ÿ’ช07:03
๐Ÿ“Ž
Message
โžค
1 ยท Ask about the change
โ†’
23:545G
~ Innerloop
โ†ป
SLEEP PHASES ยท LAST NIGHT
23:1103:3006:58
Core4h 10m
REM1h 34m
Deep51m
Awake3m
14-NIGHT HISTORY
DeepREMCoreAwake
โ†‘ deep sleep +50% since the 11โ€‰pm routine
๐Ÿ Today
๐Ÿ’กInsights
๐ŸฉธSugar
๐Ÿฝ๏ธFood
๐Ÿ˜ดSleep
๐ŸƒWorkout
๐Ÿ’“Heart
2 ยท See the 14-night trend

The loop

One loop, four signals.

Three of them stream in on their own. One is a photo. Together they answer the question your apps couldn't.

๐Ÿฉธ

Glucose

Continuous CGM readings pulled from LibreLinkUp, high/low flags and trend.

every 5 min
๐Ÿ˜ด

Sleep & recovery

Sleep stages, resting heart rate and HRV, streamed from Apple Health.

nightly
๐Ÿšด

Movement

Steps and workouts โ€” type, distance, pace โ€” overlaid on the glucose curve.

per workout
๐Ÿฝ

Meals

A photo becomes calories, carbs, protein, fat and glycemic load in your diary.

on demand

Under the hood

How it's built.

A single-user system wired from small, boring, reliable parts โ€” an agent at the center, everything reading one database.

LibreLinkUp CGM โ†’ n8n ยท every 5 min
Apple Health โ†’ n8n webhook ยท iOS Shortcut
โ†“
Neon Postgres โ€” one source of truth
โ†‘ โ†“
OpenClaw agent Telegram LLM vision
โ†“
Vercel PWA dashboard
01

Agent-first

An OpenClaw agent on Telegram handles logging, analysis and proactive nudges, with tools for vision and SQL.

02

Passive ingestion

n8n pulls the CGM every five minutes and receives Apple Health through an iOS Shortcut webhook.

03

One source of truth

Everything lands in Neon Postgres โ€” the dashboard and the agent read the exact same tables.

04

Conversational analytics

Questions become SQL; answers come back as tables and charts inside the chat.

OpenClawTelegram Bot APIn8n Neon PostgresVercel EdgeLLM visionApple Shortcuts

Open source

Build your own.

Innerloop is fully open source. Clone the repo and you get the database schema, the n8n workflows, the agent prompts and the dashboard โ€” a complete blueprint. The setup guide walks you through wiring your own sensor, Telegram bot and dashboard, end to end.