Hermes
Install Nous Research Hermes Agent and configure a compatible UniRoute protocol.
Hermes Agent · pay-as-you-go API
Add UniRoute as a custom Hermes provider and keep the key in its environment file. The setup tool selects Messages, Responses, or Chat Completions for the chosen model.
Best for: Persistent agent workflows, terminal tasks, and Hermes messaging channels.
Quick setup
Sign in to create a key and fill it in automatically Sign in
UNIROUTE_API_KEY=YOUR_UNIROUTE_API_KEY npx -y uniroute-setup@latest configure hermes --model claude-sonnet-5-5$env:UNIROUTE_API_KEY="YOUR_UNIROUTE_API_KEY"; npx -y uniroute-setup@latest configure hermes --model claude-sonnet-5-5Requires Node.js 22+ for the setup tool. Add --dry-run to preview the file changes without writing; --home /path/to/test-home uses an isolated home. Existing changed files are backed up and unrelated settings are preserved.
Manual configuration
1. Locate and back up the files
macOS / Linux: ~/.hermes/config.yaml and ~/.hermes/.env. Windows native paths: $HOME\.hermes\config.yaml and $HOME\.hermes\.env; inside WSL2 use the Linux home. Run the setup tool in the environment where Hermes runs.
2. Merge the provider settings
providers:
uniroute-anthropic:
name: UniRoute
api: https://api.uniroute.app
key_env: UNIROUTE_API_KEY
transport: anthropic_messages
default_model: claude-sonnet-5-5
model:
provider: uniroute-anthropic
default: claude-sonnet-5-53. Put the key in the environment file
UNIROUTE_API_KEY=YOUR_UNIROUTE_API_KEYMerge the YAML into config.yaml and the key into .env. Remove conflicting direct key and base-URL fields from the active model block. The tool supports Messages, Responses, and Chat Completions for Hermes; native Gemini is not a Hermes adapter in this setup flow.
4. Start Hermes and configure other surfaces
hermes
For messaging channels, run hermes gateway setup and follow the messaging guide. Use hermes desktop for the desktop interface. Configure each channel credential separately.
What these fields do
| Field | Purpose |
|---|---|
| providers.<name>.api | The API address for the provider transport. |
| transport | anthropic_messages, codex_responses, or chat_completions selects the request format. |
| key_env | Names the variable containing the key. |
| model.provider / default | Selects the custom provider and model ID. |
Choose a model
Confirm the connection
Check status with hermes to inspect the active model and service.
Send a short test: Send: Reply only: hello
Open usage logs to review the model, request status and charge. The test is a real, billed API request.
Match its time, model, and actual charge in the usage log. Keep the key in private configuration and out of repositories.
Switch back / restore a backup
Exit Hermes and restore both config.yaml and .env from the private backups printed by setup. Restart the CLI, desktop, or messaging gateway that uses these files. Preserve channel configuration and later unrelated changes.
If a file was new and has no backup, remove only the fields added by this setup and preserve settings added later.
Not installed yet?
Use the official Hermes installation guide. On macOS / Linux, or inside WSL2 on Windows:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh -o hermes-install.sh
bash hermes-install.sh
Delete the downloaded script after installation. For Windows native installation, follow the official guide.
FAQ
Does the key also configure Telegram or WeChat?
The UniRoute key authenticates model requests. Messaging accounts and gateway credentials are configured separately in Hermes.
Can I use native Gemini here?
Use one of this setup adapter’s Messages, Responses, or Chat Completions routes. Use Gemini CLI for native Gemini.
Troubleshooting
401 / authentication failed
The active credential is incomplete, revoked, or still points to another provider.
Paste a valid UniRoute key and check the active authentication method.
404 / wrong endpoint
The base URL and adapter path do not match.
Use the address shown above and remove duplicated /v1 or /v1beta segments.
Model missing / 403
The selected model, key permissions, or wallet funds need attention.
Check the model ID, key restrictions, and wallet in the console, then restart the client.
Changes did not take effect
A running process or a different config directory is still in use.
Quit the client completely, check its effective configuration path, then reopen.
Related links
Truncated response troubleshooting · Hermes vs OpenClaw
Manage API keys
Model prices
