All Guides

Integration Guide

Hermes Agent + 9Router: One Local Gateway for Multiple Providers

9Router exposes a local OpenAI-compatible API and can route requests across connected providers, aliases, and fallback combinations. Hermes Agent can consume that endpoint like another model provider, but the network and credential boundary must be configured carefully.

How the connection works

9Router runs as a gateway between clients and upstream model providers. Its documented local API is OpenAI-compatible and commonly listens at http://127.0.0.1:20128/v1. Hermes Agent sends requests to that base URL; 9Router selects an account, model, alias, or fallback combo and translates the request when needed.

Hermes Agent -> http://127.0.0.1:20128/v1 -> 9Router -> provider

Install and secure 9Router

  1. Install 9Router from its official repository or package instructions.
  2. Replace the default first-login password before connecting accounts.
  3. Enable endpoint API-key enforcement.
  4. Keep it on localhost, a private Docker network, or a private tunnel whenever possible.
  5. Connect only providers whose terms permit your intended workflow.

Configure the Hermes provider

In Hermes Agent, add an OpenAI-compatible provider using the 9Router base URL, the API key copied from its dashboard, and the exact model or combo ID shown by 9Router. If Hermes and 9Router run in different containers, 127.0.0.1 points to the wrong container; use a private service name or network address instead.

Important: never bake upstream OAuth tokens or platform-owned keys into a user image. Store secrets in the intended credential store and restrict access to the gateway.

When 9Router is useful

  • Fallback: move to another approved model when a provider is unavailable.
  • Aliases: give Hermes Agent a stable model name while changing the route behind it.
  • Usage visibility: inspect request and cost records in one dashboard.
  • Format translation: bridge compatible request formats when supported.

When to keep the setup simpler

If you only use one provider, a direct BYOK connection has fewer moving parts and a smaller credential surface. Add 9Router because you need routing, visibility, or fallback—not because an extra proxy automatically improves answer quality.

OpenClaw Launch manages the Hermes Agent service itself. A private 9Router deployment remains your responsibility, including its updates, provider accounts, security, and compliance.

Hermes Agent and 9Router FAQ

Can Hermes Agent connect to 9Router?

Yes. 9Router exposes an OpenAI-compatible endpoint, and its release notes include a Hermes preset. Use the endpoint and key generated by your own 9Router installation.

Should 9Router be exposed publicly?

Prefer a private network or same-host connection. If it must be internet-accessible, enable API-key enforcement, HTTPS, firewall rules, and a strong dashboard password.

Does 9Router make model usage free?

No guarantee. Costs and terms depend on each connected provider or subscription. Review provider policies before routing subscription credentials.

Related integration guides

Deploy Hermes Agent first

Launch a managed Hermes Agent, then connect your own private 9Router endpoint if you need custom routing.

Deploy Hermes Agent