# Run Hermes Agent on AnyRouter

> Install the AnyRouter provider plugin, add one key, and Hermes lists only the models that can call tools.

Install the AnyRouter plugin and pick a model

**Slug**: `hermes-agent`  
**URL**: https://anyrouter.dev/use-cases/hermes-agent  
**Markdown**: https://anyrouter.dev/use-cases/hermes-agent.md  
**Short link**: https://anyrouter.dev/u/hermes-agent  

## Why use this

Hermes Agent runs long tool loops, and a single upstream model means you eat that provider's outages and rate limits. Picking a model that cannot call tools breaks the loop.

## Set it up

1. Install the plugin with hermes plugins install anyrouter, then check it with hermes plugins list.
2. Add the key to ~/.hermes/.env as ANYROUTER_API_KEY=sk-.... Get one at anyrouter.dev; the same key also works against the OpenAI-compatible endpoint anyrouter.dev/api/v1.
3. Pick a model: run hermes model and choose anyrouter, or launch with hermes --provider anyrouter -m anyrouter/hermes. anyrouter/hermes auto-routes across the top tool-calling models with fallback, a good default for agentic work.

## Code

### Install the plugin

```bash
hermes plugins install anyrouter
hermes plugins list
```

### ~/.hermes/.env

```bash
ANYROUTER_API_KEY=sk-...
```

### Run Hermes on AnyRouter

```bash
hermes --provider anyrouter -m anyrouter/hermes
```

### Optional settings

```bash
# Point Hermes at a proxy or self-hosted relay
ANYROUTER_BASE_URL=https://relay.example.com/api/v1
# Credit Hermes traffic in the public app rankings
ANYROUTER_APP_ATTRIBUTION=1
```

## Links

- [hermes-provider-anyrouter (plugin)](https://github.com/AnyRouterHQ/hermes-provider-anyrouter)
- [Hermes Agent (NousResearch)](https://github.com/NousResearch/hermes-agent)

## Related

- [claude-agent-sdk](https://anyrouter.dev/use-cases/claude-agent-sdk)
- [coding-agents](https://anyrouter.dev/use-cases/coding-agents)
- [mcp-for-agents](https://anyrouter.dev/use-cases/mcp-for-agents)
