OpenMed
Apache-2.0 Python SDK and model catalog for local clinical NLP, offering entity extraction and PII de-identification across many languages.
At a Glance
About OpenMed
OpenMed is a local-first healthcare AI toolkit created by Maziyar Panahi. It reads clinical text, extracts medical entities, and detects and removes PII on hardware the user controls. The SDK is Apache-2.0 licensed and installable from PyPI; version 4.0.0 is the current release listed on the project site and GitHub.
What It Is
OpenMed bundles a curated registry of biomedical models (hosted on Hugging Face), de-identification pipelines, and one-call orchestration helpers. Per the README, the core runtime processes text locally once the required model artifacts are available. Model downloads, remote adapters, telemetry-enabled paths and user-configured integrations may use a network. The README states that deployment owners must validate model and dataset terms, privacy behavior and clinical fitness, and that SDK use alone does not establish HIPAA compliance.
The typical workflow is to pass clinical text to analyze_text, extract_pii or deidentify. Outputs are entities with labels, offsets and confidence scores, or de-identified text. Redaction methods are mask, redact, hash, date shifting and Faker-backed surrogates.
PII De-identification and Languages
The project documents a 50-type PII entity catalog covering the 18 HIPAA Safe Harbor identifiers. It supports 42 PII language codes, 35 of them model-backed. Features include smart entity merging, context-aware keyword scoring, checksum validators for national IDs, policy-aware pipelines, and signed audit reports. Passing a local directory as the model path allows air-gapped use.
Runtimes and Interfaces
OpenMed runs through several paths:
- Python with Hugging Face PyTorch on CPU or CUDA.
- Apple Silicon via MLX.
- Swift and iOS via OpenMedKit.
- Android via Kotlin and ONNX Runtime Mobile.
- Browsers via Transformers.js and WebGPU.
- A FastAPI REST service with gRPC, authentication and no-PHI logging.
Inputs beyond plain text include PDFs, DOCX, images via OCR, DICOM, HL7 v2, CDA and FHIR. The repository also ships agent skills and an MCP server for coding agents.
Model Catalog
The vendor says the catalog holds 2,200+ models across biomedical domains such as chemicals, diseases, genes, proteins and oncology. These are compact encoder transformers fine-tuned for token classification, not generative models. The accompanying arXiv paper (2508.01630) describes the domain-adaptive training approach.
Update: OpenMed 4.0.0
The docs describe 4.0.0 as adding recoverable service jobs, production configuration checks and verified model bundles for portable inference. A 3.3-to-4.0 migration guide covers changes for service deployments, decision requests, and Swift and Android apps.
Collections
Popular collections
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
- Harness Setup
Collection by @joemseifi
- Code Knowledge Graphs
Collection by @evtuff
- Obsidian Agentic & AI plugins
Collection by @samofcode
Add OpenMed to one of your collections.
Community Discussions
Be the first to start a conversation about OpenMed
Share your experience with OpenMed, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
OpenMed SDK source released under Apache-2.0; free forever, runs locally on hardware you control. Model and dataset terms vary by model.
- Apache-2.0 SDK source
- Local clinical NER and PII de-identification
- 35 model-backed PII languages
- 2,200+ models (model and dataset terms vary)
- Python, MLX, Android, browser runtimes
Capabilities
Key Features
- Clinical NER with a curated biomedical model registry
- PII detection and de-identification across 42 language codes (35 model-backed)
- 50 PII entity types covering the 18 HIPAA Safe Harbor identifiers
- Five redaction methods: mask, redact, hash, date shifting, surrogates
- Smart entity merging and checksum/format validators
- Signed audit reports and policy-aware pipelines
- Batch processing
- FastAPI REST and gRPC service
- Apple Silicon MLX backend
- Android ONNX Runtime Mobile and Swift OpenMedKit
- Browser inference via Transformers.js and WebGPU
- Multimodal and structured inputs (PDF, DOCX, DICOM, HL7 v2, FHIR)
- Offline and air-gapped operation
- Agent skills and MCP server
