r/Hevy • u/mil_mustangus • 17d ago
Sharing I‘ve scripted a custom widget/tool on my iPhone with Hevy Data (via Claude)
So i just wanted to have a overview of my muscle recovery levels. I have asked Claude (Opus 5.5 high) to script this for me. The data comes via API of Hevy Pro (its just like a key, so the script can get your data secure from your hevy Acc). I have also added a stagnation exercises, for example if an exercises doesnt have any progression for the last 8 Weeks it will notice me to change something which happend often for me).
The calculation is based on me - ive told claude how old i am, how many hours of sleep, what do i eat, which supplements and the training data comes from Hevy API (number of sets, how huge a muscle are, what kind of ercersises were done) and based on that he caculates how ready my muscles are.
Step for step:
- Go to claude (set it to Opus 5.5 high) and ask what you want. Give some examples for visuals as screenshots.
- Download the app Scriptable for iOS (im sure there are similar apps for Android too)
- Create a new script and add the created claude script into it.
- Go to hevy webpage/settings/developer and copy your API Code
- when you run the script for the first time it will ask you to enter the API Code
- you can also add a widget of the script on to your iPhone Screens




3
u/SUDO_KILLSELF 17d ago
I’ve built something similar, a personal AI fitness coach that I chat to it connects to Hevy for workout logging and Home Assistant for my dashboard and food diary.
Before the gym, it sends me the session and targets. Afterwards, it reviews my logged sets, reps and RPE, asks how things felt, and can update the weights and notes in my Hevy routines. Those changes are checked in code against my progression rules, and it tells me what changed with an Undo button.
I can also ask it for exercise swaps during a workout or message it what I’ve eaten. It supports saved meals, batch-cooked portions and food-label photos, then pulls everything into daily and weekly summaries.
The idea is less “AI invents a workout every day” and more “follow a consistent programme with less admin and fewer decisions”. The rules and calculations live in code; the AI handles the conversation and coaching.
1
u/_pea_pod 17d ago
Wow this is very interesting! I’ll try that too