FoodLog

Know what you eat.Own what you log.

A free, open-source food tracker you run yourself. 13,331 foods built in, photo estimates with your own AI key if you want them, and no subscription, ads or tracking.

FoodLog's Today screen with calories and macros left for the day

Features

Made for logging every day, not once.

Most meals are things you have eaten before. FoodLog makes those one tap, makes new foods quick and accurate, and keeps every number on your own server.

Search first, one tap to log

Everything you ever logged is searchable, with last time's portion. Type three letters and tap once. No AI call, no cost.

13,331 foods built in

USDA FoodData Central ingredients and dishes as eaten, with full nutrition, vitamins, minerals and household portions. Search forgives typos.

AI estimates, if you want them

Photo, nutrition label, voice and "my whole day" descriptions, from OpenAI, Claude, Gemini, OpenRouter, or Ollama and LM Studio on your own machine. Paste the key in Settings.

Accuracy over guesses

The model returns grams and per-100 g values, the server does the maths and checks it. Your description always wins over what the photo seems to show.

Barcodes that learn

Your own products first, then Open Food Facts. If a pack is unknown, scan its label once and the barcode is instant from then on.

A daily burn you can trust

A smoothed weight trend and your measured burn, calculated from what you ate and what the scale did, ready to use as your target.

Your library first, then 13,331 more foods.

Search shows what you have eaten before, then the food database under it. Pick a USDA portion, see calories and macros change as you go, log.

  • Plain foods first: "egg" finds whole raw egg before an egg burrito
  • Typos and synonyms: "chiken brest", "coke", "prawns", "aubergine"
  • Browse 17 groups, from dishes and fast food to drinks and baby food
  • Build a meal from ingredients with "From database" in any meal
Search results from your own foods and the food database

Portions people actually use.

One serving, a tablespoon, a slice or a cup, as USDA measured them. Half, double or exact grams. Missing values in the source are shown, never guessed.

Choosing a portion of hummus with live calories and macros

See where it is going.

Weekly calories against targets that follow your training days, 30 and 90 day trends, rule-based insights, and a weight trend that ignores daily swings.

Weight trend chart and measured daily burn
13,331foods and dishes built in
24nutrients per food
17food groups to browse
0trackers, ads or subscriptions

And the rest of it

Everything else it does.

Water and caffeineQuick adds, drinks inside meals and a daily target from your weight.
Vitamins and minerals15 micronutrients, from vitamin D to iron and caffeine, tracked against your targets.
Training-day targetsMore carbs on training days, the weekly total kept steady.
What should I eat?Compare options against what is left today, or ask for ideas from your usual foods.
Correct the AIType what is wrong and it estimates again with your correction as fact.
Late nights count rightA meal at 1 am belongs to the day you are still awake in. You choose when a day starts.
Drafts that waitSnap now, log later. Drafts made offline upload when you are back online.
Bring your historyImport from Cronometer, MyFitnessPal, a FoodLog backup or any weight CSV.
Yours to keepCSV and JSON export, any time. Leaving is one download away.
For your householdOn your own server, invite people, approve access requests and give each person an AI budget.
InstallableA home-screen app on Android and iPhone, dark or light.
No AI? No problemWithout a key the app hides AI and leads with search, the database and barcodes. Add one in Settings whenever you like.

Screens

Five screens, and that is most of it.

Live demo

Try it before you install anything.

The demo gives you a private sandbox with two months of example meals, weigh-ins and water. Change anything you like. It is deleted after a day, and AI estimates are simulated so nothing is sent anywhere.

Open the demo

Get FoodLog

One server, everyone you cook for.

FoodLog runs as one Docker service with PostgreSQL. Your meals, photos and weights stay on it; the only things that ever leave are the requests you choose to send to an AI provider and barcode lookups to Open Food Facts.

Every copy is independent. You create the first account with the setup code from your server's log and you are its admin: no sign-up with us, nobody to approve you.

Docker Compose

  • Runs on a home server, a VPS or a Raspberry Pi
  • Prebuilt images for amd64 and arm64
  • Backups with one pg_dump
git clone https://github.com/Chrishalaby/foodlog
cd foodlog && cp .env.example .env
docker compose up -d --build
Self-hosting guide

Your AI, or none

  • No key: search, food database, barcodes and manual entry
  • Paste an OpenAI, Claude, Gemini or OpenRouter key in Settings: photo, label, voice and day estimates
  • Or point it at Ollama or LM Studio on your own machine
AI provider settings

Open source

AGPL-licensed, and staying that way.

The code is public and every fork or hosted copy has to stay open. There is no closed edition, no telemetry and no account with anyone but your own server.

View on GitHub Contributing About the food data