cd /news/ai-agents/i-built-a-self-hosted-ai-running-coa… · home topics ai-agents article
[ARTICLE · art-128457] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

I built a self-hosted AI running coach that reads my Garmin and plans my runs and lifts

A developer built a self-hosted AI running coach that connects to Garmin and Strava via MCP to read sleep, HRV, resting heart rate, and lap data, then plans runs and lifts, writes workouts to Garmin Connect, and grades completed sessions against prescriptions. The agent, built on the Hermes agent framework with a custom instruction file, adapts training load and reportedly helped the developer reach a sub-20 5K goal. The generic setup, with personal details removed, has been published on GitHub.

by read2 min views3 publishedSep 13, 2026

For a long time my "coach" was me up screenshots of Garmin Connect into Claude and asking what to do next. Earlier this year I set up a self-hosted agent on a Mac mini instead, and gave it read access to my Garmin (sleep, HRV, resting HR, VO2 trend, laps) through an MCP, my Strava uploads, and a folder where it keeps notes on me. Then I wrote it a long instruction file describing how I want to be coached. No more screenshots; it reads the data straight from the source. It messages me at 8am, checks my Garmin sleep and HRV before asking how I feel, then sets the day.

It designs the run and writes it to Garmin Connect, so I press start on the watch and go. It polls Strava, so the moment a run uploads it already knows, pulls the laps, and grades the session against what it prescribed, with the numbers.

It tracks my times, distances and lift numbers over time and decides when the load goes up. It tells me what to eat and when around hard sessions. And it adapts: this week it swapped an all-out 10K time trial for a progressive build after looking at the 14K I'd done the day before and the week's load.

I set a sub-20 5K goal and got there about a month later. Years of training came before that, so the coach didn't make me fast in a month; it made the last stretch a lot less guessy, and it saves me the hour a week I used to spend planning.

It's not an app. It's an agent framework (Hermes) plus config. You run it yourself, you need a model API key and a Garmin login. It occasionally reads Garmin's readiness score too literally, so I told it to ignore that metric.

The generic skeleton of my setup, with the personal bits stripped out, is here: https://github.com/upandawaybackdoorscrewball/runcoach

Curious what others do with their training data beyond staring at Strava.

── more in #ai-agents 4 stories · sorted by recency
── more on @garmin 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-self-hoste…] indexed:0 read:2min 2026-09-13 ·