Skip to main content

OpenMed Agent — AI-powered medical assistant with TUI, agentic workflows, and remote NLP inference.

Project description

OpenMed Agent

AI-powered medical assistant with interactive TUI, agentic workflows, and remote NLP inference

OpenMed Agent provides an intelligent terminal interface for clinical workflows — entity extraction, PII de-identification, and medical reasoning — powered by LLMs and remote NLP inference.

License Python 3.10+


Quick Start

Installation

# Recommended: install the latest binary release
curl -fsSL https://github.com/openmed-labs/openmed-agent/releases/latest/download/install.sh | bash

# Install a pinned binary release
VERSION=0.0.1
curl -fsSL "https://github.com/openmed-labs/openmed-agent/releases/download/v${VERSION}/install.sh" | bash -s -- "${VERSION}"

Python Installation

# Install with TUI support
pip install openmed-agent[tui]

# Or install everything
pip install openmed-agent[all]

Launch the Agent TUI

openmed            # Launch interactive agent TUI
openmed agent      # Explicit agent command

Authenticate (for Codex models)

openmed login      # OAuth flow for Codex authentication

Features

  • Interactive Agent TUI — Rich terminal interface for clinical analysis and medical reasoning
  • Remote NLP Inference — NER and PII tools connect to remote inference endpoints via Docker
  • MCP Server Integration — Connect to medical data sources (PubMed, ICD-10, NPI, CMS)
  • Agentic Workflows — Plan-based execution with skill-driven task automation
  • Configuration Profilesdev/prod/test/fast presets with flexible overrides
  • PHI Handling Modesfull, deid, strict modes for HIPAA-aware workflows

CLI Commands

openmed                    # Launch agent TUI (default)
openmed agent              # Launch agent TUI with options
openmed config show        # Show current configuration
openmed config profiles    # List available profiles
openmed mcp list           # List MCP server configuration
openmed mcp enable         # Enable MCP servers
openmed mcp doctor         # Check MCP server connectivity
openmed login              # Authenticate via OAuth
openmed oauth status       # Check authentication status

Remote Inference

NER and PII tools require a remote inference endpoint. Set the environment variable:

export OPENMED_INFERENCE_URL=http://localhost:8000

See services/inference/ for the Docker-based inference server.


Binary Releases

Standalone release archives are built by binary-release.yml and published with:

  • platform tarballs such as openmed-0.0.1-darwin-arm64.tar.gz
  • openmed-manifest.json for install.sh
  • openmed-checksums.txt for manual verification

To build a release artifact locally:

uv sync --extra all --extra build
uv run --no-sync python scripts/release/build_binary.py

Contributing

We welcome contributions! Whether it's bug reports, feature requests, or pull requests.


License

OpenMed is released under the Apache-2.0 License.


Citation

If you use OpenMed in your research, please cite:

@misc{panahi2025openmedneropensourcedomainadapted,
      title={OpenMed NER: Open-Source, Domain-Adapted State-of-the-Art Transformers for Biomedical NER Across 12 Public Datasets},
      author={Maziyar Panahi},
      year={2025},
      eprint={2508.01630},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2508.01630},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openmed_agent-0.0.1.tar.gz (258.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openmed_agent-0.0.1-py3-none-any.whl (320.7 kB view details)

Uploaded Python 3

File details

Details for the file openmed_agent-0.0.1.tar.gz.

File metadata

  • Download URL: openmed_agent-0.0.1.tar.gz
  • Upload date:
  • Size: 258.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for openmed_agent-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d771085b65394411da6f7dea58c2aca94d9c4b7a4f77e00a2f22159dc38c367f
MD5 c99776be263213d6d7e4560535d8c04c
BLAKE2b-256 ecf79ca343cf9b7fcb6521f119c837ef398544cb7de1c270434d7735868791ea

See more details on using hashes here.

File details

Details for the file openmed_agent-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: openmed_agent-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 320.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for openmed_agent-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b64c3d5e3cbbc2998493203fe9f200e1829f135aa582822b42355ddf8c45014a
MD5 afd0d61ee098b84bff4b417d6df12984
BLAKE2b-256 ffffbe55a33fe55bb660125069ee1e7f8ea8239e27c5fdd5060fbe677b1e8a9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page