Claude builds my Coros strength workouts
A year ago I downloaded a GPX file from Coros using the unofficial API. This time I wanted to go the other direction. I give Claude Code a list of strength exercises, it finds the matching ones in the Coros catalogue, builds the workouts and uploads them. Then I look at them in the Android Coros app and do them with my Coros Pace 3.
The API
I used the unofficial API of Training Hub again -- the Coros website for planning workouts.
The endpoints came from coros-training-mcp, which already figured out how to create workouts.
Claude read the code there and wrote a small client with only the Python standard library and PyYAML.
The login sends the MD5 hash of the password, and the API host is region specific (teameuapi.coros.com for Europe).
Finding the exercises
I could create my own exercises in Coros.
But I like to see the animation of what I should do, and the exercises from the Coros catalogue have one.
So the first script downloads the catalogue -- 382 strength exercises -- together with my existing workouts and the calendar.
The catalogue is a single GET request with sportType 4 for strength:
exercises = c.request("/training/exercise/query", params={"userId": c.user_id, "sportType": 4}) save("exercises_strength.json", exercises) # data/exercises_strength.json
Claude searches this file for every exercise on my list:
Most exercises matched directly. Some only under another name: the Pallof press is called "kneeling anti-rotational press". Three of the eight exercises were missing, and Claude suggested similar ones from the catalogue instead.
Only some Coros exercises have left and right sides. For the others, "3 sets per side" became 6 sets and "10 reps per side" became 20 reps.
The result is one YAML file per workout, referencing the catalogue keys:
Uploading
In coros-training-mcp every exercise is built from scratch out of a few values the caller passes in. The push script instead copies the whole catalogue entry and overwrites only what differs per workout:
e = copy.deepcopy(catalogue[key]) e.update({ "id": i + 1, "originId": catalogue[key]["id"], "sets": sets, "targetType": target_type, # 2 = time, 3 = reps "targetValue": value, "restType": 1, "restValue": rest, "sortNo": (i + 1) * 16777216, # same spacing as Training Hub }) if "weight" in ex: # kg, Training Hub stores grams e.update({"intensityType": 1, "intensityValue": round(ex["weight"] * 1000)})
This covers three things coros-training-mcp does not handle:
Sets per exercise. coros-training-mcp always uses one set per exercise and can only repeat the whole circuit.
Weights. coros-training-mcp always sends 0.
Reps in the time estimate. coros-training-mcp counts them as 0 seconds, the push script assumes 4 seconds per rep, like Training Hub does, plus the rest after every set.
With this estimate Strength C takes 29 instead of the planned 20 minutes, because Coros adds a rest after every set, also between the two sides.
For the rest of the payload my existing Strength A, created in the Android app, served as the reference for which fields Training Hub expects.
On the watch
The watch shows each exercise with its target, sets and rest (left) and plays the animation from the catalogue (right).



