Skip to content
All posts

Run Hermes Agent on AnyRouter

Install the official AnyRouter plugin for Hermes Agent, add one key, and pick from tool-capable models, including the anyrouter/hermes meta-model with automatic fallback.

What you'll set up

Hermes Agent is Nous Research's terminal coding agent. The official AnyRouter provider plugin, listed on the Hermes plugin marketplace, connects it to any AnyRouter model with one key.

The /model picker lists only routes that can call tools, read live from the model catalog, so the agent loop does not break on a model that cannot use tools. anyrouter/hermes is AnyRouter's own routing meta-model, not a Nous model: it sends each request to the best available tool-calling model and falls back automatically. It bills at the underlying model's rate.

1. Install the plugin

From a terminal, install the plugin from the marketplace catalog:

terminal
hermes plugins install anyrouter
hermes plugins list

hermes plugins list should show anyrouter enabled. Prefer clicking? The marketplace listing has an Install in Hermes button, and the plugin source is on GitHub.

2. Add your key

Get a key at anyrouter.dev. It starts with sk-ar-. Add it to ~/.hermes/.env:

terminal
ANYROUTER_API_KEY=sk-ar-your-anyrouter-key

The same key also works against the OpenAI-compatible endpoint https://anyrouter.dev/api/v1, so you can drive Hermes from any other OpenAI client too.

3. Pick a model

Pick interactively with hermes model and choose anyrouter, or set it per run:

terminal
hermes --provider anyrouter -m anyrouter/hermes
ModelNotes
anyrouter/hermesBest tool-calling models, with automatic fallback. The agentic default.
anyrouter/autoTop platform models. Tools optional. Not for agent loops.
anyrouter/latestLatest stable chat model.
moonshotai/kimi-k31M context, agentic.
deepseek/deepseek-v4-flashFast, reasoning-capable.

The picker reads the live model list, so new tool-capable routes show up without updating the plugin. Switch mid-session with /model. This resets the prompt cache.

4. Check it works

hermes plugins list shows anyrouter enabled, and your next hermes chat message appears in your request logs. If the picker is empty, the key is missing or wrong, re-check ANYROUTER_API_KEY in ~/.hermes/.env.

Optional settings

Set these in ~/.hermes/.env:

  • ANYROUTER_BASE_URL, override https://anyrouter.dev/api/v1 (proxy or relay). The picker then stops filtering by tool support.
  • ANYROUTER_APP_ATTRIBUTION=1, credit Hermes traffic in the public app rankings. Off by default.
  • Hermes forwards a provider_routing block as extra_body.provider: sort: price | throughput | latency, plus only / ignore / data_collection: deny. See Provider Routing.
  • See the Hermes Agent guide for MCP setup, troubleshooting, and the full provider_routing reference.

Everything on this page, as a checklist: the Hermes Agent use case.

Open the use case

FAQ

Is anyrouter/hermes a Nous Research model?

No. anyrouter/hermes is AnyRouter's own routing meta-model. It sends each request to the best available tool-calling model on the AnyRouter catalog and falls back automatically, billed at the underlying model's rate.

Where is the official AnyRouter plugin for Hermes Agent?

On the official Hermes plugin marketplace at hermes-agent.nousresearch.com/marketplace/anyrouter, or install from a terminal with `hermes plugins install anyrouter`.

Do I need a Nous Portal subscription?

No. The plugin authenticates with an AnyRouter API key (`ANYROUTER_API_KEY` in ~/.hermes/.env) and routes through anyrouter.dev, billed in prepaid AnyRouter credits.

Related posts