Cronometer-style nutrition logger · powered by Gemini AI

⚠ Open via HTTP, not file://

Google OAuth is blocked when opening an HTML file directly from disk. You need to serve it over HTTP.

Quick fix — double-click start-server.bat (in the same folder), then open:
http://localhost:8080/nutrition-tracker.html

Then add http://localhost:8080 as an Authorized JavaScript Origin in your Google Cloud OAuth credential.

1 Groq API Key (free · fast · recommended)

Powers food photo analysis, label reading, and smart search. Free tier includes 14,400 requests/day — no credit card needed.

Get a free key at console.groq.com →
Sign up free → API Keys → Create API Key. Done in under a minute.

+ Other AI Key (optional — OpenRouter or Gemini)

You can also use OpenRouter or Google Gemini. Switch providers anytime in Goals → Account.

2 Google OAuth Client ID

Syncs your food log to your Google Drive. Create a Web Application OAuth credential at Google Cloud Console, enable the Drive API, and add your page URL (or http://localhost for local testing) to Authorized JavaScript Origins.

Create credentials at Google Cloud Console →
⚠ Without a valid Client ID, the app will still work but data is stored in local browser storage only (no cross-device sync). You can add it later in Goals → Account.