brain-circuitRunning Hermes Agent with FastRouter


Hermes Agent is an open-source, terminal-based AI agent built by Nous Researcharrow-up-right. It brings a powerful, agentic assistant directly into your command line — capable of browsing the web, writing and running code, managing files, calling APIs, and orchestrating complex multi-step tasks, all without leaving your terminal.

FastRouter routes each call to the best backend model behind one OpenAI-compatible API. One key, every major model, unified billing.


Prerequisites

Three ways to install

Pick the one that matches where you're starting from. Please make sure you have hermes installed as listed in the prerequisites. Then chose any one of the below paths.

Path
Best for

A. One-line script

Fresh install . Fastest. Fastrouter api key is the argument to the script.

B. Manual hermes config set

Explicit, CI-friendly, scriptable.

C. Skill inside Hermes chat

You already use Hermes with another provider.

A. One-line install script

In the below commands, replace $API_KEY with your actual fastrouter api key.

curl -fsSL https://fastrouter.ai/hermes/install-fastrouter.sh | sh -s -- $API_KEY

Or download, inspect, then run

The script registers the provider, sets fastrouter/auto as your default model, enables cost display, and verifies the result.

B. Manual hermes config set

Verify:

You should see both base_url and api_key under providers.fastrouter.

C. Install FastRouter via Hermes Skill inside Hermes chat

Drive the FastRouter setup from a Hermes chat session. Install the skill once, then ask the agent to wire it up — and have it fetch and summarize available models on demand.


1. Install the Skill ( one time)

Run this once in the terminal to register the FastRouter skill with Hermes:


While installing, when prompted to pick a category of the skill , enter gateway or router or any other custom category that you want to put this skill into.

2. Ask Hermes to Install FastRouter

In a terminal, start a Hermes chat session by typing

hermes

Next, replace $API_KEY with your fastrouter api key and type the following in the hermes chat

The agent will load the skill, register FastRouter under providers.fastrouter, and confirm the setup. You can also ask it to list available models, group them by provider, or recommend one for your use case.

Heads up — secret redaction. Hermes has an optional setting (security.redact_secrets) that masks API keys before the model sees them. It's off by default, so most users can ignore this. If you have it enabled, your key might be stripped before reaching the model and the skill won't be able to write it to config.


3. Switch the Active Session to FastRouter

Custom providers are picked up at session start, so reset the session first:

Once the session restarts, open the model picker:

Select fastrouter or custom:fastrouter from the provider list, then choose the FastRouter model you want to use. The session is now routing through FastRouter.


Troubleshooting

  • Skill not triggering? Type /reload-skills in the Hermes session, or restart the CLI.

  • Config changes not taking effect? Custom providers load on session start. Run /reset in chat or relaunch hermes.

  • Script reports "hermes not found"? Install Hermes first: hermes-agent.nousresearch.comarrow-up-right.

  • Getting invalid key error ? check if the api key was redacted by hermes.


Reference

You can find the skill.md file:

Need help? FastRouter docsarrow-up-right · Hermes docsarrow-up-right

Last updated