---
title: Connect Hermes Agent to RouterHub
description: Use Hermes’s custom endpoint wizard. No config-file editing needed. Get configuration, exact save locations, launch instructions, troubleshooting, and common questions.
canonical: https://routerhub.si/docs/tools/hermes-agent
---

# Connect Hermes Agent to RouterHub
Use Hermes’s custom endpoint wizard. No config-file editing needed.
[Try it in web chat](https://routerhub.si/)or choose a tool below
Current models, rates, availability, and limits: [Models & pricing](https://routerhub.si/models)

-
## Step 1: Add RouterHub as a custom endpoint
Outside an active chat, run:
Open the provider wizard

```
hermes model
```

        Choose Custom endpoint (self-hosted / VLLM / etc.) and enter:
| Setting | Value |
| API base URL | https://routerhub.si/v1 |
| API key | Your RouterHub API key |
| API mode, if asked | chat_completions |
| Model name | Copy a Chat Completions model ID from the models and pricing page |
| Context length, if asked | Use that model’s current limit from the models and pricing page |

Choose a model with at least 64K context. The wizard saves your settings automatically.

### macOS / Linux
Saved in `~/.hermes/config.yaml`.

### Windows
Saved in `%USERPROFILE%/.hermes/config.yaml`.

-
## Step 2: Set request timers and start Hermes
Before launching Hermes, set the ten-minute API and stale-response limits in this terminal. Hermes uses seconds here, not milliseconds:

### macOS / Linux
macOS / Linux

```
export HERMES_API_TIMEOUT=600
export HERMES_API_CALL_STALE_TIMEOUT=600
export HERMES_STREAM_STALE_TIMEOUT=600
export HERMES_STREAM_READ_TIMEOUT=600
hermes
```

### Windows (PowerShell)
Windows (PowerShell)

```
$env:HERMES_API_TIMEOUT = "600"
$env:HERMES_API_CALL_STALE_TIMEOUT = "600"
$env:HERMES_STREAM_STALE_TIMEOUT = "600"
$env:HERMES_STREAM_READ_TIMEOUT = "600"
hermes
```

These affect this terminal session, not sandboxed tool execution. Existing provider/model `request_timeout_seconds`, `timeout_seconds`, or `stale_timeout_seconds` overrides take precedence; merge or adjust those entries rather than duplicating the provider. For Desktop, use those provider settings in the wizard-saved `~/.hermes/config.yaml`; terminal environment changes do not update an already-running Desktop app. To change models later, exit the chat and run `hermes model` again.

**Need to install Hermes Agent?**
Get [Hermes Desktop](https://hermes-agent.nousresearch.com/) on macOS/Windows (CLI included), or follow the [Linux quickstart](https://hermes-agent.nousresearch.com/docs/getting-started/quickstart). Open a new terminal after installing.

**Check the connection (optional)**

  When you’re ready to use credits, open an empty project and send this short test:

  Reply with OK. Do not read files, run commands, or make edits.
  Open [RouterHub usage](https://routerhub.si/dashboard/usage) and check that the request appears under the right model. Keep auto-approval off while testing. A text reply checks the connection, not all coding features.

## Troubleshooting

**A request or stream times out**
Confirm the four `HERMES_*TIMEOUT` values are `600` seconds in the terminal used to launch Hermes. Check for provider/model overrides in `~/.hermes/config.yaml`. A stale timer measures a silent pause, not the full task duration. Check Usage before retrying; do not disable sandbox or terminal deadlines to change API timeouts.

**I only see my old provider**
Exit the chat and run `hermes model`. In-chat `/model` only switches between configured providers.

**Invalid key, model, or URL**
Reopen the wizard. Check your RouterHub key, `https://routerhub.si/v1`, `chat_completions`, and the exact catalogue ID. Do not add an OpenRouter author prefix.

**Context or tool errors**
Recheck the selected model’s current limits. Run `hermes doctor` for local setup issues; redact keys and private paths before sharing logs.

Still stuck? [Contact support](https://routerhub.si/dashboard/support).

## Common questions

**Which models should I choose?**
Use a Chat Completions model with a published context window of at least 64K. Check the current models page; if the limit is missing, confirm it with support. A missing limit is not proof of incompatibility.

**Does this cover Desktop too?**
The official installer includes both interfaces. These steps use the CLI wizard; neither interface has been tested end to end with RouterHub. Other tools or providers can have separate charges.

[Browse setup guides](https://routerhub.si/guides) · [API reference](https://routerhub.si/docs#api-reference)
