Skip to content
SynapsrPublic

About

Open-source, AI-first health companion. Tell it your goal in your own words, snap a meal, and get a plan, honest numbers and a coach that knows your day. iPhone, Apple Watch and Android, self-hosted in one Docker container.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Symbiose

Your health goals, in your own words.
Snap, say or scan a meal: an AI follows your goal, on your phone or your server.

CI License: MIT Platforms: iOS, Android, watchOS Self-hosted with Docker PRs welcome

Website · Self-host · Docs · Contributing

Symbiose on an iPhone: Today centred on added sugar against a 25 g limit, Trends with the weekly review, and the coach answering about the week

What is Symbiose?

Symbiose is an open-source app for eating the way you decided to. Write your goal as you'd say it, "cut the afternoon sugar" or "lose 3 kg without feeling deprived", and it becomes a precise, safe plan, with the numbers that matter to you first.

Log a meal with a photo, a sentence or a barcode. The AI works out portions and nutrients, plain code checks every number, and each meal gets one line of feedback that fits your goal. A coach that knows your day answers your questions, and helps you ride out a craving.

It runs on your phone, with nothing to install: sign in with your ChatGPT plan, or bring a key from Claude, Gemini, Mistral, OpenRouter or a model on your own network. Or run it on your own server: one Docker container, one SQLite file, for every device and the whole family. iPhone, Android, Apple Watch, widgets, in French and English. No subscription, no ads, no tracking.

How it works

  1. Say what you want to change, in your own words. Symbiose drafts the plan: an energy budget, a few guardrails (say, added sugar under 25 g), small habits. Adjust anything.
  2. Snap, say or scan a meal. A photo, a sentence you type or dictate, or a barcode. The meal shows up at once and is analysed in the background, even if you were offline.
  3. See what counts for you. Today puts your goal's number first, each meal gets feedback and a tip, and the coach knows your goals, your meals and your week.

The goal written in your own words, a meal described in a sentence with the microphone ready, and the meal's feedback: 27 g of added sugar, mostly from the latte's syrup, with two tips

Features

Feature What it does
Goal-first home Today shows the number your goal is about: added sugar if you're cutting sugar, energy to lose weight, protein to build muscle. Calories can be hidden altogether.
Precise numbers Nutrients are stored per 100 g and rescaled exactly. AI estimates are checked by code (energy against macros, added sugar within sugar within carbs), and the AI asks at most one question, only when the answer changes the result. Barcodes come from Open Food Facts.
Fix a meal in one sentence "No sugar in the coffee, half the fries", and the meal is analysed again.
Cravings, not guilt « I have a craving » gives a tip and an alternative right away, and a ten-minute Live Activity to ride it out. Trends show which foods and which hours your sugar comes from.
Coach and morning check-in Ask anything: the coach knows your goals, meals, sleep and activity, and can log or fix a meal once you confirm. If you like, it writes a short check-in each morning and a heads-up before your usual craving hour.
Weekly review What went well, what keeps coming back, and what to try next.
Life modules, opt-in Sleep, water, mood and blood pressure, plus a private health journal. The coach only hears about what you turned on.
Health and adaptive energy Apple Health and Health Connect: steps, workouts and weight in, meals out. Your budget can follow your activity and, over the weeks, what you really burn.
Apple Watch, widgets, Live Activity Your number on the wrist, the Home Screen and the Lock Screen. Eat again in one tap, dictate a meal from the watch, log a craving from Control Center.
Offline queue No network? Meals wait on the phone with their time, then send themselves.
Voice dictation Dictate meals, notes and questions. On iPhone, recognition stays on the device whenever it can.
French and English, light and dark It follows your phone.

The plan built from the goal, the craving sheet with a tip and an alternative, and the health journal


The Apple Watch app with 16 g of added sugar left, and the medium and small Home Screen widgets

Two ways to run it

On your phone On your server
To start Install the app, tap Get started One docker run, then scan the server's QR code
The AI Your ChatGPT plan (Plus or Pro), or your own key The server's key, for everyone on it
Your data On the phone; back it up as one file (Google Drive, iCloud Drive, Files) On the server, for all your devices
Apple Watch Through the iPhone Straight to the server, even without the iPhone
Family One person per phone Accounts for everyone, an admin view

Moving between the two keeps everything: Me → Your data → Move to a Symbiose server, and back. A backup is one SQLite file with the photos inside, the same on both sides.

Self-host in one command

docker run -d --name symbiose -p 3000:3000 \
  -e ANTHROPIC_API_KEY=sk-ant-... \
  -v symbiose-data:/data \
  synapsr/symbiose:latest

Or with Compose: curl -O https://raw.githubusercontent.com/Synapsr/Symbiose/main/docker-compose.yml, then ANTHROPIC_API_KEY=sk-ant-... docker compose up -d.

That's it. Open http://<your-server>:3000: the page shows a QR code. In the app, tap Scan the server QR code, then create your account.

The server's page: a QR code to scan from the app, the server's address and the AI model

A handful of variables cover most setups:

Variable
ANTHROPIC_API_KEY Claude, the default AI.
AI_PROVIDER, AI_API_KEY Another provider instead (below).
PUBLIC_URL The address phones use, behind a reverse proxy.
SIGNUP closed (default: only the first account), request (an admin approves) or open.
ADMIN_EMAILS Accounts that see the admin view: AI cost, usage, server health.
DATA_DIR Where the database and photos live (/data).

To update, pull the image and start the container again: migrations run on their own, after a backup of the database in DATA_DIR/backups/. Every setting, reverse proxies and backups are in docs/self-hosting.md.

Other AI providers

Claude is the default and the reference: Symbiose's prompts were tuned on it. Other models work, but may be less precise on portions and nutrients, and small local models much less so. Photo meals need a model that reads images; the coach's proposals need one that calls tools.

AI_PROVIDER Default AI_MODEL Key
anthropic claude-opus-5-5 ANTHROPIC_API_KEY
openai gpt-6-astra OPENAI_API_KEY
mistral mistral-large-4 MISTRAL_API_KEY
gemini gemini-3.8-flash GEMINI_API_KEY
openrouter anthropic/claude-opus-5.5 OPENROUTER_API_KEY
ollama gemma4 none
openai-compatible required optional, with AI_BASE_URL
docker run -d --name symbiose -p 3000:3000 -v symbiose-data:/data \
  -e AI_PROVIDER=openai -e AI_API_KEY=sk-... synapsr/symbiose:latest

Ollama, LM Studio and other local servers: see docs/self-hosting.md.

Get the app

Symbiose isn't on the App Store or Google Play yet. Until then, build it from source on a Mac with Xcode, or with Android Studio:

git clone https://github.com/Synapsr/Symbiose.git && cd Symbiose
pnpm install
pnpm --filter @symbiose/mobile ios        # or: android

This builds the app, with its watch app and widgets on iOS, and opens it in the simulator. Installing it on your own iPhone needs your own Apple signing team.

Privacy

  • Your data stays with you: on your phone, or on your server, in one SQLite file and a photos folder. Synapsr hosts nothing.
  • Only what an answer needs goes to the AI provider you chose, and the app names it before anything is sent: the meal's photo or words, and the context for that answer (your goal, your day's numbers). Never your name, email or password. Barcodes go to Open Food Facts.
  • Your AI key or ChatGPT session stays in the phone's Keychain (Keystore on Android): never in backups, never sent anywhere but to the provider.
  • No analytics, no tracking, no ads, in the app or on the server.
  • Back up or export everything, move it between your phone and a server, or delete it all, from the app.
  • The full policy, for the stores and for you: PRIVACY.md.
  • Not a medical device. Plans are conservative by design (calorie floors, capped deficits), but if you have a medical condition, are pregnant, or have a history of eating disorders, ask a professional before following any nutrition target.

FAQ

Do I need an API key?

No. On your phone, a ChatGPT Plus or Pro plan is enough: tap Continue with ChatGPT. Under Advanced settings, you can sign in to OpenRouter or paste a key from Anthropic, OpenAI, Google or Mistral, paid per use, directly. A local model through Ollama needs no key at all. Symbiose takes nothing.

Which AI should I use?

On your phone, the simplest is your ChatGPT plan. Claude is the reference: the prompts were written and tuned on it, through a key or OpenRouter. OpenAI, Mistral, Gemini, Ollama and any OpenAI-compatible server work too. On a server, one setting picks the provider and its start-up log says which model answers.

Does it work without AI?

Yes. Barcodes, manual logging, portions, Trends, Health sync, the watch and widgets all work, and a keyword-based planner turns your goal into a reasonable plan. Photo and text meals, the coach and the reviews need an AI.

Do I need a server?

No. The app runs on its own: your data stays on your phone and the AI is the one you connect. A server is for using Symbiose on several devices, letting the watch work without the iPhone, or sharing one installation with your family.

Can my family share one server?

Yes. With SIGNUP=open, anyone who can reach the server gets an account, fine on a home network. With SIGNUP=request, you approve each person from the admin view. Each account only ever sees its own data, and the admin view shows totals, never anyone's meals.

How is it different from MyFitnessPal or Cal AI?

Symbiose starts from your goal rather than from calories: if you're cutting sugar, sugar is the number you see. AI estimates are checked by code before you see them, a coach knows your whole day, and everything runs on your phone or your own server. It's open source, with no subscription, no ads and no paywall.

Architecture

The same API (packages/core) runs in two places: inside the app, on the phone's SQLite, or on your server.

flowchart LR
  app["App<br/>iOS · Android"] -->|in memory| phone
  app -->|JSON| api
  wrist["Apple Watch<br/>widgets"] --> app
  wrist -->|JSON| api
  health["Apple Health<br/>Health Connect"] <--> app
  subgraph phone["On the phone"]
    core1["Symbiose API"] --> db1[("SQLite<br/>+ photos")]
  end
  subgraph server["Or your server · one container"]
    api["Symbiose API"] --> db[("SQLite<br/>+ photos")]
  end
  core1 --> ai["ChatGPT plan, Claude,<br/>or another AI provider"]
  api --> ai
  core1 --> off["Open Food Facts"]
  api --> off
Loading
packages/core     The API: routes, services, AI adapters, schema and migrations, free of Node APIs
apps/server       The Node host: accounts, admin, backups, one Docker image
apps/mobile       Expo Router app (iOS, Android, web), the API on the phone in src/local, the watch app and widgets in targets/
packages/shared   Types, zod schemas and the nutrition math every side uses
website/          The public site (Vite + React)
docs/             Architecture, self-hosting, watch and health, brand

How meals are analysed and targets computed: docs/architecture.md. The watch, widgets and health stores: docs/wearables.md.

Develop

Node.js 22 (nvm use) and pnpm 10:

pnpm install
cp apps/server/.env.example apps/server/.env   # add a key, or set AI_MOCK=true
pnpm dev:server                                # API on http://localhost:3000
pnpm dev:mobile                                # Expo; press w to open it in the browser
pnpm typecheck && pnpm test && pnpm lint

Contributing

Bug reports, translations and pull requests are welcome. Start with CONTRIBUTING.md (setup, checks, conventions). Symbiose aims to stay simple: before adding a step or a setting, ask whether a better default would do.

If Symbiose helps you eat the way you want, a star helps other people find it.

Credits

Built with Expo, React Native, Hono, Drizzle and SQLite. Food data from Open Food Facts, set in Fraunces. See THIRD_PARTY_NOTICES.md.

License

MIT © Synapsr

About

Open-source, AI-first health companion. Tell it your goal in your own words, snap a meal, and get a plan, honest numbers and a coach that knows your day. iPhone, Apple Watch and Android, self-hosted in one Docker container.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages