AnonRouter for Hermes Agent
An AnonRouter-maintained model provider for Hermes Agent. Connect a compatibility-enabled inference key, discover agent-capable models, and use Hermes's local tools through AnonRouter.
Requires Hermes Agent 0.23.5 or newer. This version uses Chat Completions and compatibility mode. Native private tickets and client-side E2EE are not implemented.
Install
Install directly from the AnonRouter-maintained repository:
hermes plugins install anonrouter/hermes-anonrouter-plugin#src/hermes_provider_anonrouter
The plugin declares ANONROUTER_API_KEY. Let Hermes prompt for it, or configure it using Hermes's credential settings. Create a dedicated inference key at AnonRouter with OpenAI-compatible access enabled. A management key cannot run inference. Consider a total credit limit for an unattended agent.
Run hermes model, select AnonRouter, then choose a model from the live catalog. Restart an existing Hermes session after installation if its provider picker has not refreshed.
Once the catalog submission is accepted, the short install command will be:
hermes plugins install anonrouter
That short command is not available until the Hermes maintainers merge the listing. This repository does not claim a Hermes Official or Verified badge.
Behavior
- Uses
https://api.anonrouter.ai/v1for model discovery and Chat Completions. - Lists models whose primary advertised route supports streaming, tools, and at least 64,000 context tokens. Excludes embeddings, media, routers and E2EE routes. It conservatively excludes a model when its primary route is E2EE, even if other routes might work.
- Reports model-advertised context, vision, tools and reasoning capabilities. Vision images belong in user messages; images in tool-result messages are not declared supported.
- Passes supported reasoning controls through the documented
reasoningobject. Unsupported controls are omitted, leaving the route's default behavior. It does not invent a reasoning capability or escalate an effort level. - Uses the selected model for auxiliary tasks unless the user configures another one. There is no hardcoded cheap-model fallback.
- Defaults to at most 4,096 output tokens, reduced to the advertised model limit. An explicit Hermes output budget takes precedence.
- Warms metadata when constructing a client, including startup without a picker visit. Metadata is isolated by Hermes profile, API root and credential fingerprint. After five minutes, client construction revalidates it; the last good metadata remains available during a transient catalog outage. Authentication failures clear that credential's cached metadata.
live_context_lengthmay also fetch the catalog when cold. Per-request reasoning/output hooks read memory only. No unverified static fallback catalog is supplied. - Disables SDK retries and redirects, and classifies non-4xx failures as terminal for Hermes's outer recovery and auxiliary clients. Hermes-controlled lifetime retries are described below.
- Rejects a successful non-SSE response to a streaming request and requires the SSE
data: [DONE]settlement marker. Both a completion finish reason and the settlement marker are required. A dropped stream is reported as incomplete. Canceling a stream closes it without issuing a replacement request.
The provider preserves a supplied HTTPX client's TLS/CA, keepalive, proxy mounts and existing hooks. It installs a response hook without replacing transports or pools; newly created clients honor HTTPX environment proxy settings.
Hermes lifetime timeout and retries
The plugin supports Hermes's optional agent.stream_max_lifetime feature. When enabled, Hermes may stop a slow stream and retry according to its internal retry setting. Each generation request that starts can incur a separate charge. This is Hermes-controlled behavior, and the plugin does not disable it or promise an unconditional no-retry guarantee.
The lifetime cap is off by default. Users who want the cap without automatic stream retries can set HERMES_STREAM_RETRIES=0 in the Hermes process environment. Tests verify both configurations: a two-retry budget allows three POSTs, while retries disabled produces one POST. No Hermes core change is required to support this feature.
Run hermes doctor to check connectivity. If authentication fails, confirm the key has compatibility access. For an uncertain request outcome, check AnonRouter usage before manually trying again. Normal account, rate-limit and invalid-request errors retain their status codes for Hermes's standard handling.
The optional ANONROUTER_BASE_URL override changes the destination for both the key and content. Use only an endpoint you trust. HTTPS is required; literal loopback addresses and localhost may use HTTP for local development. Endpoint overrides are intended for trusted testing and self-hosted deployments.
Privacy and network disclosure
Hermes sends prompts, tool definitions, tool results, selected file contents, image inputs and the inference key to api.anonrouter.ai, or the configured API root. The plugin also makes authenticated GET /models requests there. AnonRouter forwards inference to the serving provider according to its routing and privacy policy.
Compatibility mode's broker receives the API-key identity and plaintext content together in memory. This is not the native ticket flow's identity/content separation and not client-side E2EE. Route privacy labels describe the selected serving route; they do not change this client connection mode. See compatibility mode.
The plugin has no telemetry, background workers, shell commands, self-updater, or file reads/writes. It obtains credentials through Hermes's provider interfaces and does not open credential files. Model metadata is cached in memory, isolated by Hermes profile and API root. Hermes itself manages credentials, logs and local conversation history; installing this plugin does not make that history private or disable Hermes's own persistence.
Update and remove
hermes plugins update anonrouter
hermes plugins remove anonrouter
Catalog updates use the maintainer-reviewed commit pin. A direct Git install follows Hermes's Git-install update policy. To pin a direct install, add --ref <full-40-character-commit> to the installation command.
Development
See DEVELOPMENT.md for tests, packaging and catalog validation, and SECURITY.md for reporting issues. AnonRouter is independent of Nous Research.
README from the reviewed commit a97d78a; it updates when the author re-pins.

anonrouter