This guide is for the person setting up My Life for themselves. It explains what happens at each step, what you decide, and how to fix the common problems.

The short version lives in the README: you open an AI coding agent, paste one sentence, and the agent follows the README as a runbook. This guide is the long version, for when you want to understand the install, check the agent's work, or do it by hand.

Before you start

Accounts you need

ServiceWhat it is forPlan and cost
GitHubHolds your copy of the codeFree
SupabaseThe database, your sign-in and file storageFree to start. The free plan pauses a project after a week without use; the Pro plan (about US$25 a month) never pauses and adds daily backups
VercelHosts the app and runs the scheduled jobsFree for personal use. The free plan runs scheduled jobs at most once a day

Optional:

ServiceTurns onCost
AnthropicAsk, the monthly review draft, reading travel emailsPay per use, usually a few dollars a month
WhoopRecovery, strain and sleep, synced every six hoursFree developer app; you need a Whoop membership
Health Auto Export (iPhone app)Apple Health: weight, steps, sleep, heart rate, workoutsOne-off app purchase
Google CloudGoogle Photos import for MemoriesFree

Tools on the computer

The agent installs what is missing: Node.js 20.9 or later, Git, psql, and the command-line tools for GitHub (gh), Supabase (supabase) and Vercel (vercel). On a Mac it uses Homebrew and npm. Windows works through WSL.


Decisions to make first

The agent asks for these in one message.

  1. Your name. As the app should greet you. The first name is used on the sign-in page; the full name in the sidebar and the AI prompts. Leave it out and the app reads without a name ("Good morning.").
  2. Your sign-in email. The only address that can ever create an account. It is stored in two places, the database (life_settings) and the LIFE_OWNER_EMAIL setting, and both must match.
  3. Home city. Plus any other spellings hotels and airlines use, comma-separated (Lisbon, Lisboa). A hotel in your home city does not start a trip.
  4. Home airport. The three-letter code (LIS). A trip runs from the flight that leaves it to the flight that comes back.
  5. Time zone. The standard name (Europe/Lisbon). It decides when "today" starts, for the journal, goals and reviews. If you leave it out, the home airport's zone is used, then UTC.
  6. Where the data lives. See below.

Where your data lives

Pick the Supabase region nearest you, and the Vercel region next to it so the app talks to the database quickly. The Supabase region cannot be changed later.

AreaSupabase regionVercel region
US Eastus-east-1 (N. Virginia)iad1
US Westus-west-1 (N. California)sfo1
Canadaca-central-1 (Montreal)yul1
Brazilsa-east-1 (São Paulo)gru1
UKeu-west-2 (London)lhr1
EUeu-central-1 (Frankfurt)fra1
EU (Ireland)eu-west-1 (Ireland)dub1
Indiaap-south-1 (Mumbai)bom1
Southeast Asiaap-southeast-1 (Singapore)sin1
Japanap-northeast-1 (Tokyo)hnd1
Koreaap-northeast-2 (Seoul)icn1
Australiaap-southeast-2 (Sydney)syd1

The Vercel region goes in vercel.json (regions).


What the install does, step by step

  1. Access. The agent checks it can reach GitHub, Supabase and Vercel, and asks you to sign in where it cannot.
  2. Your copy. It makes a private copy of the code in your GitHub account and writes your answers into .env.local, a settings file that never leaves your computer except into Vercel.
  3. Supabase. It creates the project and gives you the database password once. Save it in your password manager.
  4. The database. Three files build it: 00-prereqs.sql (an extension), 01-schema.sql (every table, with row-level security on), and 02-starter.sql (your email as the owner, and the Whoop and lab metrics).
  5. A local test. It builds and runs the app on your computer.
  6. Vercel. It connects the GitHub copy to Vercel, copies the settings across and deploys by pushing to GitHub.
  7. Your account. You open the sign-in page, ask for a sign-in link, and open it. That creates your account. Set a password in Settings if you prefer one.

Turning on the integrations

Each one needs its settings in .env.local and in Vercel (Project > Settings > Environment Variables, Production and Preview), then a redeploy (push any commit).

Anthropic (Ask, reviews, travel from email)

Create a key at console.anthropic.com and set ANTHROPIC_API_KEY. Without it, Ask says it is not set up, the monthly review starts empty, and travel emails are stored but not read (the server retries one when it is sent again).

Gmail

The Apps Script in apps-script/ runs in your Gmail account, finds booking emails every hour and sends them to the app. Follow apps-script/README.md. It needs ANTHROPIC_API_KEY to read the emails. Bookings it is unsure about land in the Inbox for you to approve.

Apple Health

Install Health Auto Export on your iPhone and add a REST API automation:

  • URL: <your site>/api/life/ingest/health
  • Format: JSON, aggregated by day
  • Header: Authorization with the value Bearer <your LIFE_INGEST_SECRET>

Weight, body fat, steps, workouts, active energy, sleep, resting heart rate and HRV arrive once a day.

Whoop

At developer.whoop.com create an app with the redirect URL <your site>/life/auth/whoop/callback and the scopes for recovery, cycles, sleep and profile. Set WHOOP_CLIENT_ID and WHOOP_CLIENT_SECRET, redeploy, then click Connect Whoop on the Sources page. The sync runs every six hours on Vercel Pro, or daily on the free plan.

Google Photos

In Google Cloud, create a project, turn on the Photos Picker API, and create an OAuth client (web application) with the redirect URL <your site>/life/auth/google/callback. Set GOOGLE_PHOTOS_CLIENT_ID and GOOGLE_PHOTOS_CLIENT_SECRET. On the Memories page you connect once, then pick batches of photos; the app keeps web-sized copies in your own Supabase storage.

Blood tests

Lab panels come in with scripts/life/import-lab.ts from a JSON transcription of the report (its header shows the format). The nine tracked markers are set up in US units by 02-starter.sql; if your lab reports in mmol/L, change the units and ranges there before your first import.

An MCP assistant

Set LIFE_ASSISTANT_TOKEN to a random value of 32 characters or more and point any MCP client at <your site>/api/life/mcp with that bearer token. It can read journal days, goals, trips and to-dos, and add to-dos, weight and blood sugar. Postgres, not the endpoint, limits what it can touch.


Your own web address

In Vercel, Project > Settings > Domains, add the domain and set the DNS records Vercel shows. Then update NEXT_PUBLIC_SITE_URL (in .env.local and Vercel), the Supabase Site URL and Redirect URLs (Authentication > URL Configuration), the Whoop and Google redirect URLs if you use them, and LIFE_URL in the Apps Script.


Troubleshooting

What you seeLikely cause and fix
"Sign-ups are closed" with your own emailThe database setting and LIFE_OWNER_EMAIL differ. Run the last command of README Step 3 again with the right address
The sign-in link opens the wrong site or failsThe Supabase Site URL or Redirect URLs do not include your site. Fix them in Authentication > URL Configuration
Every page says it cannot reach the databaseNEXT_PUBLIC_LIFE_SUPABASE_URL or a key is wrong in Vercel, or the secret key was copied masked. Get it again with --reveal
Days start at the wrong hourLIFE_TIME_ZONE is unset or misspelled, so UTC is used. Use a name from the IANA list, for example America/Chicago
Every trip starts and ends oddlyHOME_AIRPORT is unset or wrong
Ask says it is not set upANTHROPIC_API_KEY is missing in Vercel
Whoop shows no dataThe redirect URL in the Whoop app does not match your site, or the Whoop sync has not run yet (check Sources)
The project pausedFree Supabase projects pause after a week without use. Restore it in the dashboard, or move to Pro