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
| Service | What it is for | Plan and cost |
|---|---|---|
| GitHub | Holds your copy of the code | Free |
| Supabase | The database, your sign-in and file storage | Free 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 |
| Vercel | Hosts the app and runs the scheduled jobs | Free for personal use. The free plan runs scheduled jobs at most once a day |
Optional:
| Service | Turns on | Cost |
|---|---|---|
| Anthropic | Ask, the monthly review draft, reading travel emails | Pay per use, usually a few dollars a month |
| Whoop | Recovery, strain and sleep, synced every six hours | Free developer app; you need a Whoop membership |
| Health Auto Export (iPhone app) | Apple Health: weight, steps, sleep, heart rate, workouts | One-off app purchase |
| Google Cloud | Google Photos import for Memories | Free |
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.
- 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.").
- Your sign-in email. The only address that can ever create an account. It is stored in two places, the database (
life_settings) and theLIFE_OWNER_EMAILsetting, and both must match. - 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. - Home airport. The three-letter code (
LIS). A trip runs from the flight that leaves it to the flight that comes back. - 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. - 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.
| Area | Supabase region | Vercel region |
|---|---|---|
| US East | us-east-1 (N. Virginia) | iad1 |
| US West | us-west-1 (N. California) | sfo1 |
| Canada | ca-central-1 (Montreal) | yul1 |
| Brazil | sa-east-1 (São Paulo) | gru1 |
| UK | eu-west-2 (London) | lhr1 |
| EU | eu-central-1 (Frankfurt) | fra1 |
| EU (Ireland) | eu-west-1 (Ireland) | dub1 |
| India | ap-south-1 (Mumbai) | bom1 |
| Southeast Asia | ap-southeast-1 (Singapore) | sin1 |
| Japan | ap-northeast-1 (Tokyo) | hnd1 |
| Korea | ap-northeast-2 (Seoul) | icn1 |
| Australia | ap-southeast-2 (Sydney) | syd1 |
The Vercel region goes in vercel.json (regions).
What the install does, step by step
- Access. The agent checks it can reach GitHub, Supabase and Vercel, and asks you to sign in where it cannot.
- 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. - Supabase. It creates the project and gives you the database password once. Save it in your password manager.
- The database. Three files build it:
00-prereqs.sql(an extension),01-schema.sql(every table, with row-level security on), and02-starter.sql(your email as the owner, and the Whoop and lab metrics). - A local test. It builds and runs the app on your computer.
- Vercel. It connects the GitHub copy to Vercel, copies the settings across and deploys by pushing to GitHub.
- 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:
Authorizationwith the valueBearer <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 see | Likely cause and fix |
|---|---|
| "Sign-ups are closed" with your own email | The 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 fails | The Supabase Site URL or Redirect URLs do not include your site. Fix them in Authentication > URL Configuration |
| Every page says it cannot reach the database | NEXT_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 hour | LIFE_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 oddly | HOME_AIRPORT is unset or wrong |
| Ask says it is not set up | ANTHROPIC_API_KEY is missing in Vercel |
| Whoop shows no data | The redirect URL in the Whoop app does not match your site, or the Whoop sync has not run yet (check Sources) |
| The project paused | Free Supabase projects pause after a week without use. Restore it in the dashboard, or move to Pro |