Skip to main content

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


Download files

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

Source Distribution

hermes_model_router-1.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

hermes_model_router-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

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

Hashes for hermes_model_router-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a577930a8b33cce840c4aa8ab7e48de8220eff99a7197ba811550f1d68d225e
MD5 76ffddaa8884da4f99bd0f0761731ba6
BLAKE2b-256 d0416f061f691741ae0f1abfb5c6fb0953ae166f25ec0950c9072ed28f4c8b65

See more details on using hashes here.

Provenance

The following attestation bundles were made for hermes_model_router-1.0.0.tar.gz:

Publisher: publish.yml on GiangHoang9912/model-router

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hermes_model_router-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_model_router-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0676aef53cf7c0e73d4d35a90331ebb5462dee9fccdbf5b742eb610a4042e34
MD5 950b6dcd10adc0b47a9275064b02d7b6
BLAKE2b-256 ec8cce67638425d7ac3f480c8f7e1b8c8a425b458120060be3acf1770ccedbc8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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