Skip to main content

Hermes Model Router

Auto-route Hermes Agent tasks to the best model based on task type.

Task code/debug  → Claude Sonnet    (delegate_task — full tools)
Task research    → DeepSeek Pro     (delegate_task — deep analysis)
Task creative    → Gemini Flash     (model_dispatch — 1-shot)
Task plan/review → Claude Opus      (delegate_task — reasoning)
Chat thường      → reply thẳng      (tiết kiệm)

Install

pip install hermes-model-router

# Hoặc dev mode:
pip install -e .

Setup

# 1. Cài skill vào Hermes
model-router init

# 2. Set provider URL của bạn (ai cũng dùng được, không chỉ 9router)
model-router url https://openrouter.ai/api/v1 -n custom:openrouter

# 3. Xem config
model-router show

# 4. Xem model khả dụng
model-router list-models

Commands

Command Mô tả
model-router init Cài skill vào Hermes
model-router show Xem config hiện tại
model-router url <url> Set provider API URL
model-router set <cat> <model> Set model cho category
model-router list-models Liệt kê model từ provider
model-router route <text> Test phân loại task
model-router reset Reset về mặc định

Config file

~/.hermes/model-router/config.yaml

provider:
  name: custom:openrouter
  api_url: https://openrouter.ai/api/v1

routing:
  code: openai/gpt-4o
  research: anthropic/claude-sonnet-4
  creative: google/gemini-2.5-flash
  plan: anthropic/claude-opus-4
  review: anthropic/claude-sonnet-4
  default: openai/gpt-4o

keywords:
  code: [fix, bug, implement, refactor, ...]
  ...

Requirements

  • Python >= 3.10
  • Hermes Agent
  • Provider API (9router, OpenRouter, or any OpenAI-compatible endpoint)

model-router

model-router

model-router

model-router

model-router

model-router

Metadata

Release files for hermes-model-router 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hermes-model-router 1.0.0
File Size Uploaded Provenance Actions
hermes_model_router-1.0.0.tar.gz 7.4 kB With provenance Details for hermes_model_router-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hermes-model-router 1.0.0
File Interpreter ABI Platform Actions
hermes_model_router-1.0.0-py3-none-any.whl Python 3 none any Details for hermes_model_router-1.0.0-py3-none-any.whl

Total release size: 16.0 kB

Release files / hermes_model_router-1.0.0.tar.gz

Download URL hermes_model_router-1.0.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1a577930a8b33cce840c4aa8ab7e48de8220eff99a7197ba811550f1d68d225e
BLAKE2b-256 checksum
How to use checksums
d0416f061f691741ae0f1abfb5c6fb0953ae166f25ec0950c9072ed28f4c8b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Release files / hermes_model_router-1.0.0-py3-none-any.whl

Download URL hermes_model_router-1.0.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0676aef53cf7c0e73d4d35a90331ebb5462dee9fccdbf5b742eb610a4042e34
BLAKE2b-256 checksum
How to use checksums
ec8cce67638425d7ac3f480c8f7e1b8c8a425b458120060be3acf1770ccedbc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

Security for hermes-model-router 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hermes_model_router-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page