How to keep My Life running: what runs on its own, backups, updates, keys, costs and security. Most tasks are a single sentence you can give your AI coding agent (Claude Code, Codex, Cursor or similar), opened in your copy of the code. Those are marked Ask the agent.

What runs on its own

JobWhenWhat it does
Whoop sync (/api/life/cron/whoop)Every six hours (daily on the free Vercel plan)Pulls recovery, strain and sleep
Monthly review (/api/life/cron/review)Daily at 23:00 UTC; acts only on the 1st of the month in your time zoneDrafts last month's review from your data
Gmail sweep (Apps Script, in your Google account)HourlySends new booking emails to the app
Health Auto Export (on your iPhone)DailySends Apple Health numbers

The Sources page shows when each source last ran and flags any that went quiet.

The review job's hour is set in vercel.json in UTC. If the 1st of the month in your time zone starts well after 23:00 UTC (the Americas), change the schedule so it runs early in your morning, for example 0 12 * * *. Ask the agent: "Move the monthly review cron to 6 in the morning my time."


The maintenance calendar

Every week

  • Clear the Inbox: approve or reject bookings the email reader was unsure about.

Every month

  • Read and finish the drafted review.
  • Glance at the Sources page.

Every three months

  • Download a backup (below) and keep it somewhere safe.
  • Take any update (below).

Every year

  • Rotate the secrets (below).
  • Check the Whoop and Google apps are still approved and their keys valid.

Accounts and keys

Keep the logins for GitHub, Supabase, Vercel and Anthropic in your password manager, with two-factor sign-in on. Keep the database password there too.

To rotate the machine secrets (CRON_SECRET, LIFE_INGEST_SECRET, LIFE_GMAIL_INGEST_SECRET, LIFE_ASSISTANT_TOKEN), generate new values with openssl rand -hex 32, update .env.local and Vercel, redeploy, then update the places that send them: the Apps Script property and Health Auto Export header. Ask the agent: "Rotate my My Life secrets and tell me where to paste the new ones."

If a key leaks, rotate it at once. For the Supabase secret key: Supabase dashboard > Project Settings > API Keys, create a new secret key, update Vercel, redeploy, then delete the old one.


Backups and restoring

On Supabase Pro, daily backups are automatic (Database > Backups). On the free plan there are none, so make your own:

supabase db dump --db-url "$SUPABASE_DB_URL" --data-only -f backup-data-$(date +%F).sql

Ask the agent: "Back up my My Life database to a file." Photos and lab reports live in Supabase Storage (buckets life-files and memories); download them from the dashboard if you want a full copy.

To restore, ask the agent to load the backup into a new Supabase project built with the three setup files, then point Vercel at it.


Taking updates

New versions are published to the repo you copied from. Ask the agent: "Take the latest My Life update." It will:

  1. git fetch upstream && git merge upstream/main (add the remote first if it is missing: git remote add upstream https://github.com/dhajdu/my-life)
  2. apply any new files in supabase/upgrades/ in number order with psql
  3. build, then push to deploy

Your own changes stay yours; resolve merge conflicts in their favour.


Undoing a bad change

Vercel keeps every deployment. In the Vercel dashboard, Deployments, open the last good one and choose Promote to Production. Then fix the code and push again. Database changes are not undone this way; restore from a backup if one went wrong.


Security

  • Only your email can sign up, enforced in the database. Every other address is refused.
  • Row-level security is on for every table. The app's server code uses the secret key and checks that the caller is you on every page and action.
  • Ask and the MCP assistant run as restricted database roles. Neither can read your logins inventory, addresses or OAuth tokens.
  • Nothing is shared with anyone. Claude sees the text the AI features send it (questions, the month's material, booking emails) and nothing else.
  • The app never stores passwords or card numbers. The Accounts page is an inventory, not a vault.

Costs

ServiceTypical monthly cost
SupabaseFree, or about US$25 on Pro
VercelFree for personal use, US$20 on Pro
AnthropicA few dollars, depending on how much you use Ask
Whoop, GoogleFree

Where to look when something is wrong

  1. The Sources page: which feed stopped, and its last error.
  2. Vercel > Project > Logs: errors from pages, the API and cron jobs.
  3. Supabase > Logs: database and sign-in errors.
  4. The Apps Script's Executions list, for the Gmail sweep.

Ask the agent: "My Life's Whoop data stopped on the 3rd. Find out why." It can read the Vercel and Supabase logs with the command-line tools.