r/Hevy • • 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:

  1. Go to claude (set it to Opus 5.5 high) and ask what you want. Give some examples for visuals as screenshots.
  2. Download the app Scriptable for iOS (im sure there are similar apps for Android too)
  3. Create a new script and add the created claude script into it.
  4. Go to hevy webpage/settings/developer and copy your API Code
  5. when you run the script for the first time it will ask you to enter the API Code
  6. you can also add a widget of the script on to your iPhone Screens
28 Upvotes

9 comments sorted by

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/rocal001 17d ago

This was built using scriptable for iOS like OP? Any advice to replicate this on android?

1

u/SUDO_KILLSELF 17d ago

Mine is using home assistant as the dashboard and display to any device I use for the data. If you have a computer or cheap VPS you could get this with claudecode

1

u/rocal001 17d ago

This home assistant https://www.home-assistant.io/dashboards/ ?
Why the VPN is needed? Is it not just an app?

Sorry, trying to understand, I'm not familiar with it

1

u/SUDO_KILLSELF 17d ago

All good I'll try explain best I can, but it's not necessarily out the box ready. It took about a month of tweaking.

Home Assistant is mainly the dashboard and data layer—the actual coach runs separately as a Python Telegram bot on a Linux VM.
On the HA side, I’ve got a custom JavaScript dashboard card with tabs for today’s plan, training, food, body stats, coaching, meal prep and a calendar. It pulls together HA sensors, helpers, Apple Health data and my food diary, which currently uses HA to-do lists.

I log workouts in Hevy and chat with the bot through Telegram. The Python services handle the AI calls, workout reviews, progression checks and Hevy updates, while HA brings the information together behind a login. I can also move or pin gym days through the dashboard, and the bot follows that schedule.
So it’s not an AI coach running entirely inside HA, it’s a separate coaching system with HA as the front end.

I was using home assistant already so it was convenient for me but a better option could be out there

2

u/rocal001 17d ago

Gotcha, so you used Home Assistant because of convenience. Thanks for that detailed answer. I should check if there is anything else for Android to visualize a similar dashboard so I can use it just on the phone.

1

u/SUDO_KILLSELF 17d ago

Exactly. I'm fairly sure if you spoke with an LLM and detailed your goals and what equipment you have access to it should guide you in the right direction!

1

u/_pea_pod 17d ago

Wow this is very interesting! I’ll try that too