Run clinical NER and HIPAA PII de-identification on-device with openmed, a local-first solution for founders in healthcare, backed by 4.7k+ GitHub stars.
4,680 stars573 forksPythonQuality 9/10Updated 7/23/2026100% free ยท open source
What it does
Openmed is a local-first solution that performs clinical named entity recognition (NER) and HIPAA protected health information (PHI) de-identification on-device, without sending patient data to the cloud.
Install / run
pip install openmed
When to use it
โขYou're building a healthcare application that requires analyzing medical text data while keeping patient information secure and compliant with HIPAA regulations.
โขYour startup needs to process large volumes of medical records or clinical notes without relying on cloud services for data processing.
โขYou want to leverage the power of AI in medical text analysis but are restricted by data privacy concerns or limited internet connectivity.
Quick start
1Clone the openmed repository from GitHub using the command `git clone https://github.com/maziyarpanahi/openmed.git`.
2Navigate into the cloned repository with `cd openmed`.
3Review the list of available medical models by checking the `models` directory, which contains over 1,000 models across 12 languages.
4Use the `openmed` command-line tool to perform clinical NER and PHI de-identification on a sample medical text file, referencing the tool's documentation for specific command-line arguments and options.
5Explore the Apple MLX integration by examining the `mlx` directory and its contents, which facilitate on-device machine learning for iOS applications.
Ready-to-paste prompt
python openmed/cli.py --text "The patient, John Doe, was diagnosed with diabetes." --model models/en_ner_bc5cdr_md
Heads up: Ensure your development environment has the necessary dependencies installed, including Python and the Apple MLX framework if you plan to integrate openmed with iOS applications, as the tool leverages these frameworks for on-device processing.
Saves to your device
Topics
clinical-nlp
healthcare
hipaa
ios
llm
local-llm
mlx
ner
nlp
on-device
on-premise
pii
pii-detection
python
skills
sovereign-ai
swift
swiftui
What's inside โ free to inspect
No purchase needed
Read the entire source before you build โ unlike paid marketplaces that hide it behind a buy button.