Apple Health
Connect Apple Health
Garmin runs, sleep, HRV, and resting heart rate arrive through Apple Health. TrainOrRest only reads.
3 minutes to a plan
Enter the race you signed up for. Get a plan, then a daily call to train, go easy, or rest. Watch, calendar, and Coach can wait.
6 × 800 m at 5K pace
HRV normal · slept 7h40 · load balanced
Real first-run spine
TrainOrRest asks for Health, then the race, then shows Today. The optional pipes stay available without blocking the plan.
Apple Health
Garmin runs, sleep, HRV, and resting heart rate arrive through Apple Health. TrainOrRest only reads.
TrainOrRest turns Garmin-derived Apple Health data into a practical call for the next 12 hours.
Choose 5K, 10K, half marathon, or marathon. The local plan engine spaces volume and quality around your available days.
Sleep, HRV, resting heart rate, and load support the recommendation. The verdict stays the headline.
Claude or OpenAI explains the evidence and proposes edits. Local validators check them before you decide.
Every coach edit follows the same visible path. The schedule only changes after validation and your approval.
Coach, watch delivery, and calendar sync are useful later. The race plan and Today view do not depend on them.
Coach provider
Sign in to the Claude Console. Add billing if the console asks for it.
Open API Keys, choose Create Key, name it TrainOrRest, and copy it once.
TrainOrRest: Settings > Coach provider. Paste the Anthropic key, then tap Connect coach.
Sign in to the developer platform and set up API billing if needed.
Open API Keys, create a new secret key, and copy it. The full secret is only shown once.
TrainOrRest: Settings > Coach provider > Advanced provider setup. Pick an OpenAI model, paste the key, then tap Save OpenAI and test.
Never paste a key into this website. Enter it only in TrainOrRest, where it is stored in the iPhone Keychain.
Watch delivery
On intervals.icu, open Settings, then Developer Settings. Generate an API key and copy the Athlete ID from the same page. It often looks like i123456.
Still in intervals.icu, open Settings, Connections, Garmin. Turn on Upload planned workouts. Without this, the watch stays empty.
TrainOrRest: Settings > Connected Services > intervals.icu. Paste the Athlete ID and API key, then tap Save connection.
Open Watch Delivery, enable Watch Push, then tap Sync now. Confirmed plan edits can now reach intervals.icu and Garmin.
TrainOrRest stores the intervals.icu API key in the iPhone Keychain. Garmin delivery depends on the Upload planned workouts switch.
Calendar sync
TrainOrRest: Settings > Connected Services > Calendars > Google Calendar. Tap Connect Google Calendar.
Continue with Google and choose your account. TrainOrRest creates and updates a separate calendar named RestOrTrain Training.
Open Google Calendar and make RestOrTrain Training visible. Back in TrainOrRest, tap Sync now if a workout has not appeared.
Optional scheduling access reads only free and busy availability from existing calendars. It does not read event content.
It canUse Google's calendar.app.created access to create and update RestOrTrain Training.
It does notChange work or personal events. Optional scheduling separately reads only free/busy availability and a read-only calendar list.
Apple Health is read-only. API keys are stored in Keychain. Optional services receive only what their job requires.
Review each connection