# maziyarpanahi/openmed

Local-first healthcare AI: clinical NER & HIPAA PII de-identification that runs 100% on-device. 2,200+ medical models, 21 languages, Apple MLX + Python, no cloud, no patient data leaving your network. Apache-2.0

Repository: https://github.com/maziyarpanahi/openmed
Canonical: https://ross.abutalabs.com/products/openmed
Homepage: https://openmed.life/
Language: Python
License: Apache-2.0
License Family: permissive
Topics: healthcare, llm, on-device, on-premise, sovereign-ai, mlx, swift, ios, swiftui, ner, pii, pii-detection, clinical-nlp, hipaa, local-llm, nlp, python, skills, android, javascript
Last push: 2026-08-26T22:58:40+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 23
- inputs: {"age_days": 333, "days_push": 7, "days_rel": 12, "gap_med": 7, "n_releases_24m": 42}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5166, forks 650 (observed 2026-08-28T04:09:11.533417+00:00)

## What it is
OpenMed is a local-first healthcare AI SDK for clinical named-entity recognition and HIPAA PII/PHI de-identification that runs entirely on-device with no cloud dependency. It ships 2,000+ Apache-2.0 medical models across 35 languages, with runtimes for Python, Apple MLX/CoreML (Swift), Android ONNX, and browser Transformers.js.

## Use cases
- de-identify patient notes for HIPAA compliance without sending data to a cloud API
- extract clinical entities like medications, diseases, and anatomy from medical text
- redact names, MRNs, phone numbers, and SSNs from clinical documents
- run medical NER models on an iPhone or iPad with Apple MLX
- run PII detection in the browser with Transformers.js
- deploy clinical NLP on-premise in a hospital network
- convert HuggingFace medical models to ONNX for mobile inference

## When to choose
- you need HIPAA-compliant PHI de-identification where patient data must never leave the device or network
- you want on-device clinical NER across many languages with pre-trained medical models
- you build iOS, Android, or browser apps that need local medical text processing
- you need an on-premise alternative to cloud clinical NLP vendors

## When to avoid
- you need general-purpose (non-medical) NER or PII detection with broader domain coverage
- you want a fully managed cloud service with no local model management
- you need generative clinical LLM features rather than token classification and de-identification
- your target platform is unsupported by the MLX, CoreML, or ONNX runtimes

## Facets
- artifact type: library
- maturity: active
- function: nlp, machine-learning, llm-inference, security, privacy, ocr, pdf, sdk
- domain: healthcare, privacy, machine-learning, self-hosted
- platform: python, browser, cross-platform, wasm, self-hosted
- tags: clinical-nlp, ner, pii-deidentification, hipaa, on-device-ai, apple-mlx, healthcare-ai, sovereign-ai, on-premise, multilingual, natural-language-processing, localization, macos, ios, android, swift

## Member repositories
- maziyarpanahi/openmed (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:11.533417+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:01:52.602396+00:00, confidence not recorded.
  - readme: https://github.com/maziyarpanahi/openmed (fetched 2026-08-28T04:09:11.533417+00:00, sha 7223105682de)
  - homepage: https://openmed.life/ (fetched 2026-08-29T08:56:01.607519+00:00, sha 3513df2915bb)
  - site_page: https://openmed.life/docs (fetched 2026-08-29T08:56:01.610168+00:00, sha 79112b647c39)
  - site_page: https://openmed.life/docs/api-reference (fetched 2026-08-29T08:56:01.612018+00:00, sha fcb99ca7f761)
  - site_page: https://openmed.life/docs/mlx-backend (fetched 2026-08-29T08:56:01.614917+00:00, sha 4acec1810fa5)
  - site_page: https://openmed.life/docs/swift-openmedkit (fetched 2026-08-29T08:56:01.616800+00:00, sha ed914fc86c7d)
  - site_page: https://openmed.life/docs/export-transformersjs (fetched 2026-08-29T08:56:01.618714+00:00, sha 00e6f1fcadbf)
  - site_page: https://openmed.life/docs/export-onnx-android (fetched 2026-08-29T08:56:01.620344+00:00, sha 78851ffa47f8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
