AI Skill Hub 强烈推荐:OpenMed开源医疗AI 是一款优质的AI工具。已获得 1.3k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
专业的开源医疗AI工具集,整合DeepSeek、GPT、Llama等大模型,提供BERT医学自然语言处理能力。适合医疗AI开发者、医学NLP研究人员和健康科技创业团队使用。
OpenMed开源医疗AI 是一款基于 Python 开发的开源工具,专注于 医疗AI、自然语言处理、开源工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
专业的开源医疗AI工具集,整合DeepSeek、GPT、Llama等大模型,提供BERT医学自然语言处理能力。适合医疗AI开发者、医学NLP研究人员和健康科技创业团队使用。
OpenMed开源医疗AI 是一款基于 Python 开发的开源工具,专注于 医疗AI、自然语言处理、开源工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install openmed
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install openmed
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/maziyarpanahi/openmed
cd openmed
pip install -e .
# 验证安装
python -c "import openmed; print('安装成功')"
# 命令行使用
openmed --help
# 基本用法
openmed input_file -o output_file
# Python 代码中调用
import openmed
# 示例
result = openmed.process("input")
print(result)
# openmed 配置文件示例(config.yml) app: name: "openmed" debug: false log_level: "INFO" # 运行时指定配置文件 openmed --config config.yml # 或通过环境变量配置 export OPENMED_API_KEY="your-key" export OPENMED_OUTPUT_DIR="./output"
<img src="docs/brand/openmed-readme-banner.png" alt="OpenMed README banner with the cat mascot, lowercase wordmark, Open Cross, and the text Open-source healthcare AI, 340M+ downloads, and 10M+ installs" width="1280" />
<p><b>Turn clinical text into structured, de-identified insight on hardware you control.</b><br/> OpenMed's core local runtime performs extraction and de-identification after required model artifacts are available. Model downloads, remote-provider adapters, telemetry-enabled paths, and user-configured integrations may use a network; review each model and dataset's terms.</p>
<p> <a href="https://pypi.org/project/openmed/">PyPI package</a> · <a href="https://www.python.org/downloads/">Python 3.10+</a> · <a href="https://huggingface.co/OpenMed">Model catalog</a> · <a href="https://arxiv.org/abs/2508.01630">Research paper</a> · <a href="LICENSE">Apache-2.0 SDK source</a> </p>
<p> <a href="swift/OpenMedKit">OpenMedKit</a> · <a href="docs/mlx-backend.md">Apple Silicon / MLX</a> · <a href="docs/export-onnx-android.md">Android / ONNX Runtime Mobile</a> · <a href="docs/export-transformersjs.md">Browser / Transformers.js</a> · <a href="https://openmed.life/docs">Documentation</a> </p>
<p> <b>2,266 manifest entries</b> · <b>33 model-backed PII languages</b> · <b>Apache-2.0 SDK</b> </p>
<p> <b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.es.md">Español</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.it.md">Italiano</a> · <a href="README.pt.md">Português</a> · <a href="README.nl.md">Nederlands</a> · <a href="README.ar.md">العربية</a> · <a href="README.hi.md">हिन्दी</a> · <a href="README.te.md">తెలుగు</a> · <a href="README.ja.md">日本語</a> · <a href="README.tr.md">Türkçe</a> · <a href="README.fa.md">فارسی</a> · <a href="README.sw.md">Kiswahili</a> </p>
</div>
---
Start with the consumer agent-usage guide, or load the curated llms.txt documentation index. For callable local interfaces, use the MCP server, the typed tool registry, or the command-line interface. Ready-made cross-tool procedures live in the repository skills catalog.
---
The skills/ catalog ships portable Agent Skills for on-device de-identification, clinical NER, FHIR export, evaluation, and the healthcare workflows around them. The same SKILL.md folders work in Claude Code, OpenAI Codex, OpenCode, and compatible agents; the installer uses each client's skills directory plus the cross-client ~/.agents/skills convention.
git clone https://github.com/maziyarpanahi/openmed && cd openmed
./install-skills.sh # installs for Claude Code, Codex, OpenCode, and ~/.agents/skills
Then ask your agent for the pipeline using synthetic placeholders:
Build a local OpenMed pipeline that de-identifies a synthetic discharge note and extracts medication entities.
It loads the right skills and produces an on-device pipeline (openmed.deidentify(...) → openmed.analyze_text(...)). After the one-time model download, run that pipeline locally on real notes; do not paste real PHI into a cloud-hosted agent prompt. See the skills catalog and 30-second example.
---
docker build -t openmed:local . docker run --rm -p 8080:8080 -e OPENMED_PROFILE=prod openmed:local
Example output:
text INFO: Uvicorn running on http://0.0.0.0:8080 bash curl -X POST http://127.0.0.1:8080/pii/extract \ -H "Content-Type: application/json" \ -d '{"text":"Paciente: Maria Garcia, DNI: 12345678Z","lang":"es"}'
Abbreviated example response:
json { "text": "Paciente: Maria Garcia, DNI: 12345678Z", "entities": [ {"text": "Maria Garcia", "label": "NAME", "confidence": 0.99, "start": 10, "end": 22}, {"text": "12345678Z", "label": "ID", "confidence": 0.98, "start": 29, "end": 38} ], "model_name": "OpenMed/privacy-filter-multilingual" }
**Model lifecycle and service controls:** free memory on demand with
`GET /models/loaded`, `POST /models/unload`, and a `keep_alive` idle window;
v1.8 also includes API-key/JWT auth, no-PHI request logging, tracing, gRPC,
async jobs, webhooks, warm pools, dynamic batching, request coalescing, rate
and concurrency limits, `/livez`, `/readyz`, and opt-in metrics:
bash OPENMED_SERVICE_KEEP_ALIVE=10m uvicorn openmed.service.app:app --host 0.0.0.0 --port 8080 curl -X POST http://127.0.0.1:8080/models/unload -H "Content-Type: application/json" -d '{"all":true}'
Example response:
json { "unloaded": true, "released": {"models": 1, "tokenizers": 1, "pipelines": 1}, "active_models": {} } ```
See the full REST service guide.
---
```python from openmed import analyze_text
result = analyze_text( "Patient started on imatinib for chronic myeloid leukemia.", model_name="disease_detection_superclinical", )
for entity in result.entities: print(f"{entity.label:<12} {entity.text:<28} {entity.confidence:.2f}")
```bash
A Docker-friendly FastAPI service with request validation, shared pipeline preload, and unified error envelopes.
```bash pip install --upgrade "openmed[hf,service]" uvicorn openmed.service.app:app --host 0.0.0.0 --port 8080
OpenMed 是一个生产级医学自然语言处理工具包,基于最先进的 Transformer 模型构建。它能将临床文本转换为结构化洞察,仅需一行代码即可实现。OpenMed 提供企业级的实体提取、断言检测和医学推理能力,无供应商锁定,精度无妥协。
核心功能包括:精选模型注册表(12+ 专业医学 NER 模型)、HIPAA 合规的 PII 检测与去识别、医学感知分词(支持 COVID-19、CAR-T、IL-6 等临床模式)、高级 NER 处理(置信度过滤、实体分组、跨度对齐)、多种输出格式支持。
支持多种安装方式:基础 Hugging Face 支持、REST 服务依赖、Apple Silicon 加速。Swift 应用可使用 OpenMedKit,版本 1.5.1+ 支持 MLX 在 Apple Silicon macOS 及真实 iPhone/iPad 硬件上的加速。
通过 uv pip 安装:`uv pip install -e ".[hf]"`(Hugging Face 支持)或 `uv pip install -e ".[hf,service]"`(REST 服务)。Docker 部署:构建镜像 `docker build -t openmed:1.5.1 .`,运行容器 `docker run --rm -p 8080:8080 -e OPENMED_PROFILE=prod openmed:1.5.1`。
快速开始示例:通过 curl 向 REST API 发送 POST 请求到 `/pii/extract` 端点,传入 JSON 格式的文本和语言参数。详细服务指南见 REST Service 文档。API 响应采用统一信封格式,非 2xx 响应包含错误代码、消息和详细信息。
支持配置文件管理,可通过 `analyze_text` 函数调用。支持多个配置文件(如 prod 生产环境配置),通过环境变量 `OPENMED_PROFILE` 指定。
OpenMed 包含 Docker 友好的 FastAPI 服务,具有可靠性加固。提供的端点包括:`GET /health`(健康检查)、`POST /analyze`(文本分析)、`POST /pii/extract`(PII 提取)、`POST /pii/deidentify`(去识别)。
医疗AI领域优质开源项目,模型集成度高、文档完善。Stars持续增长体现市场认可,适合专业开发。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,OpenMed开源医疗AI 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | openmed |
| 原始描述 | 开源AI工具:open-source healthcare ai。⭐1.3k · Python |
| Topics | 医疗AI自然语言处理开源工具大模型集成深度学习 |
| GitHub | https://github.com/maziyarpanahi/openmed |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-24 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。