Auto route Hermes Agent tasks to the best model — code, research, creative, plan, review
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hermes_model_router-1.0.0.tar.gz.
File metadata
- Download URL: hermes_model_router-1.0.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a577930a8b33cce840c4aa8ab7e48de8220eff99a7197ba811550f1d68d225e
|
|
| MD5 |
76ffddaa8884da4f99bd0f0761731ba6
|
|
| BLAKE2b-256 |
d0416f061f691741ae0f1abfb5c6fb0953ae166f25ec0950c9072ed28f4c8b65
|
Provenance
The following attestation bundles were made for hermes_model_router-1.0.0.tar.gz:
Publisher:
publish.yml on GiangHoang9912/model-router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_model_router-1.0.0.tar.gz -
Subject digest:
1a577930a8b33cce840c4aa8ab7e48de8220eff99a7197ba811550f1d68d225e - Sigstore transparency entry: 1632804994
- Sigstore integration time:
-
Permalink:
GiangHoang9912/model-router@9b7351ff8b2a97da238b3d88dd69374a32e05e3d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/GiangHoang9912
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b7351ff8b2a97da238b3d88dd69374a32e05e3d -
Trigger Event:
push
-
Statement type:
File details
Details for the file hermes_model_router-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hermes_model_router-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0676aef53cf7c0e73d4d35a90331ebb5462dee9fccdbf5b742eb610a4042e34
|
|
| MD5 |
950b6dcd10adc0b47a9275064b02d7b6
|
|
| BLAKE2b-256 |
ec8cce67638425d7ac3f480c8f7e1b8c8a425b458120060be3acf1770ccedbc8
|
Provenance
The following attestation bundles were made for hermes_model_router-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on GiangHoang9912/model-router
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_model_router-1.0.0-py3-none-any.whl -
Subject digest:
f0676aef53cf7c0e73d4d35a90331ebb5462dee9fccdbf5b742eb610a4042e34 - Sigstore transparency entry: 1632805001
- Sigstore integration time:
-
Permalink:
GiangHoang9912/model-router@9b7351ff8b2a97da238b3d88dd69374a32e05e3d -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/GiangHoang9912
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9b7351ff8b2a97da238b3d88dd69374a32e05e3d -
Trigger Event:
push
-
Statement type: