Skip to content

Latest commit

 

History

167 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MedOS

AI Medical Chatbot

Healthcare is a human right. AI makes it free.


Try MedOS Free    GitHub Stars


Free. Open source. 13 languages. No sign-up. No tracking. No ads. Ever.


Use it now  •  What you get  •  The stack  •  Run it yourself  •  Join us  •  Sponsor


Free Doctor Consultation with Artificial Intelligence

Become a sponsor   Try MediBot

This project is free, open source, and runs on free-tier infrastructure. If MedOS is useful to you, sponsor on GitHub — every dollar helps keep healthcare guidance free for everyone, in every language.


Why this exists

Billions of people cannot afford a doctor. Millions search the internet for health answers and find ads, misinformation, or paywalls.

We believe the best medical AI in the world should be free, private, and available to every human on earth — regardless of where they live, what language they speak, or how much money they have.

This is that project. Built by the community. Free forever.

If that mission resonates, you can keep it going: sponsor on GitHub →

Important: This does not replace a doctor. It helps you understand your health, ask better questions, and know when to seek professional care.


What you get

MedOS Platform

The full medical AI experience — chat with the AI, track your health, manage medications, and more.


  • Ask anything about your health
  • 13 languages, auto-detected
  • Voice input — speak your symptoms
  • Emergency detection with local numbers
  • Health tracker (meds, vitals, appointments)
  • Medicine scanner (point your camera)
  • Works on any phone as a PWA
  • 100% private, zero data stored

Health Tracker

Your personal health dashboard — private, encrypted, on your device.


  • Medications with dose tracking and streaks
  • Schedule timeline with live "now" indicator
  • Vitals — blood pressure, glucose, temp, weight, heart rate, O2
  • Appointments with doctor, location, and reminders
  • Records — upload and organize health documents
  • EHR Wizard — build your medical history in 5 steps
  • Export everything as JSON or print for your doctor

How it works

You speak or type your symptoms
              |
         [ MedOS AI ]
              |
     Llama 3.3 70B ──── grounded in WHO, CDC, NHS guidelines
              |
     Clear answer in your language
              |
     Emergency detected? ──> local emergency number instantly

The AI runs on Llama 3.3 70B via free inference providers. It is grounded in medical guidelines from WHO, CDC, NHS, and major medical societies. It does not hallucinate treatment plans — it tells you what doctors would want you to know, and when to see one.


The open source stack

Everything here is free and open. Every piece can be run independently, improved, or adapted for your community.


MedOS
MedOS Web App

Full medical platform — chat, health tracker, medicines, 13 languages


Medical Llama3 Chatbot
Medical Llama3

Fine-tuned Llama3 8B on 250K medical Q&As


Medical Interviewer
Medical Interviewer

AI that conducts a structured medical interview


Empathy Chatbot
Empathy Chatbot

AI trained to understand emotions (with Tilburg University)


WatsonX MCP Server
WatsonX

IBM WatsonX medical symptoms analysis via MCP protocol


Medicine Scanner
Point your camera at a medicine box — AI reads the label for you


Full project map

# Project What it does Links
MedOS Web App Full medical platform — chat, health tracker, medicine inventory, 13 languages Live
MedOS Backend API server — auth, SQLite DB, LLM routing, emergency triage, RAG Code
11 Medicine Scanner Camera scan of medicine labels via Qwen2.5-VL multimodal AI Code
12 MetaEngine Nearby Find nearby pharmacies and doctors via OpenStreetMap Code
13 MedOS Family Family health tree, adult consent, child mode, medicine reminders, family admin Code
14 MedOS Connect Additive backend for device + vitals sync (Withings, Apple Health, Health Connect), reminders, notifications Code
15 MedOS Classify MCP clinical-classification + triage engine — multi-head, calibrated, red-flag floor, Hugging Face models Code
16 MedOS Pathogen MCP pathogen-ID layer — microscopy / chest X-ray / genomic sequence with calibrated probabilities and visible evidence Code
17 MedOS Research R&D module — literature briefs, hypotheses, in-silico simulation plans, publication studio, safety reviewer Code
Medical Llama3 8B Fine-tuned Llama3 on 250K medical Q&A pairs Model
Medical Llama3 v2 Improved medical Llama3 with enhanced chatbot interface Model
Medical Mixtral 7B Fine-tuned Mixtral for medical assistance Model
Medical Interviewer AI that conducts structured medical interviews and generates reports Live
Empathy Chatbot AI understanding emotions and unmet needs (Tilburg University) Live
WatsonX MCP Server IBM WatsonX medical symptom analysis via MCP protocol Code
RAG Pipeline Medical knowledge retrieval with FAISS / Milvus / ChromaDB Code
Medical Dataset 250K curated medical Q&A pairs for training Code
Fine-tuning Notebooks to fine-tune your own medical LLMs Code

MedOS Ecosystem

MedOS Ecosystem — Patients · Core · Additive design layers (Family, Connect, Classify, Pathogen, Research)

The MedOS ecosystem is layered. The Core is what runs in production today — the web app, the backend API, the health tracker, the medicine scanner, and the nearby-care finder. The Ecosystem layer adds new modules on top, purely additively: each one ships as its own folder, behind a feature flag, with no destructive changes to existing files, tables, or APIs.

Layer Module What it adds
Core MedOS Web App The medical platform users see today — chat, vitals, medicines, records, 13 languages.
Core MedOS Backend Next.js API + SQLite + LLM routing + medical RAG + emergency triage.
Core Health Tracker Vitals, medicines, appointments, records, EHR wizard, JSON / print export.
Core Medicine Scanner Camera → structured JSON via Qwen2.5-VL.
Core Nearby Care Pharmacies and doctors via OpenStreetMap with ranking and route metadata.
Ecosystem · 13 MedOS Family Family health tree, adult consent, child mode, medicine reminders, family admin.
Ecosystem · 14 MedOS Connect Device + vitals sync (Withings, Apple Health, Health Connect), reminders, notifications.
Ecosystem · 15 MedOS Classify MCP triage tools — multi-head, calibrated, red-flag-gated; ships through Hugging Face.
Ecosystem · 16 MedOS Pathogen MCP pathogen ID — microscopy, chest X-ray, genomic sequence; visible evidence.
Ecosystem · 17 MedOS Research R&D module — literature briefs, hypotheses, in-silico simulation plans, safety-reviewed publication studio.

Every Ecosystem module follows the same contract: additive only, namespaced, feature-flagged, reversible, never auto-flowing patient PHI across boundaries.

Deployment

Vercel HuggingFace Space
Role Frontend only Frontend + Backend + DB
Cost Free Free
Deploy git push bash scripts/deploy-hf.sh

Run it yourself

Use it now (zero install)

Open MedOS

Just click. No account. No install. Free.

Run locally

git clone https://github.com/ruslanmv/ai-medical-chatbot.git
cd ai-medical-chatbot/web
npm install && npm run dev

Open http://localhost:3000. Done.

Deploy your own

# Deploy to HuggingFace Spaces (free)
HF_TOKEN=hf_xxx bash 9-HuggingFace-Global/scripts/deploy-hf.sh

# Deploy to Vercel (free tier)
# Root Directory = web, Framework = Next.js
# Env: NEXT_PUBLIC_BACKEND_URL = your HF Space URL

Train your own medical model

cd 6-FineTunning
# Follow the notebooks to fine-tune Llama3 or Mixtral
# on 250K medical Q&A pairs

Contributing

This project exists because people like you contribute. Every fix, every translation, every idea makes healthcare more accessible for someone, somewhere.

PRs Welcome License Python TypeScript Next.js

Ways to help:

  • Add a language translation (we support 20, the world has 7,000)
  • Improve medical knowledge accuracy
  • Report bugs or suggest features
  • Share the project with someone who needs it
  • Star the repo so others find it
git clone https://github.com/ruslanmv/ai-medical-chatbot.git
cd ai-medical-chatbot
git checkout -b my-improvement
# Make your changes, then open a Pull Request

Stargazers over time


Support the project

MedOS is free for users forever. It runs on free-tier cloud and gets better only because people contribute time, translations, clinical review, and — increasingly — sponsorship to keep the lights on.

If MedOS has helped you understand a symptom, prepare for a doctor's visit, or just felt like a calm voice on a rough day, please consider supporting it.

Sponsor on GitHub   Star the repo

Both help. Sponsorship pays for hosting beyond the free tiers, the LLM provider keys that keep the chat fast in every language, and the clinician review hours that keep the safety floor honest. Stars help the next person who needs MedOS actually find it.

You can also help without spending anything:

  • Translate one screen into a language we don't fully cover.
  • Add one safety test case to tests/safety/golden_prompts.jsonl.
  • Tell a friend who could use this.

Thank you. Every form of support, including a star, keeps this open.


License

Apache 2.0 — use it, modify it, deploy it, share it. Free forever.


The future of healthcare



Made with care by Ruslan Magana Vsevolodovna and the open source community

Website GitHub HuggingFace


The best technology in the world should serve everyone — not just those who can pay for it.

Let us use it to heal.


Sponsor MedOS

About

Free Doctor Consultation with Artificial Intelligence by using Generative AI

Resources

Contributing

Security policy

Stars

112 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages