WebRouter for Hermes Agent
A web search and extraction backend for Hermes Agent that serves the
built-in web_search and web_extract tools through WebRouter, an
open-source (Apache-2.0) library that puts one interface in front of many search and extraction APIs. Each call goes
to one backend and falls back to the next if that backend fails or returns nothing.
It works with no API key. With no key set, calls go to the backends' free tiers. Every key you add puts that
backend first in line, and the calls it serves are billed to that key.
Install
hermes plugins install webrouter --enable
Then select it for both tools in ~/.hermes/config.yaml:
web:
backend: webrouter
or for one tool only, with web.search_backend: webrouter or web.extract_backend: webrouter.
The plugin registers no tools of its own. It needs Python 3.11 or newer and installs the
webrouter package.
API keys (optional)
Add any of these to ~/.hermes/.env (or your profile's .env) and WebRouter uses that backend, billed to that key,
before the free tiers:
| Backend | Variable | Serves |
|---|---|---|
| Nimble | NIMBLE_API_KEY | search, extract |
| Tavily | TAVILY_API_KEY | search, extract |
| Exa | EXA_API_KEY | search, extract |
| Firecrawl | FIRECRAWL_API_KEY | search, extract |
| Linkup | LINKUP_API_KEY | search, extract |
| Brave | BRAVE_SEARCH_API_KEY | search |
| Parallel | PARALLEL_API_KEY | search |
| Perplexity | PERPLEXITY_API_KEY | search |
| You.com | YOU_API_KEY | search |
The full list, with where to get each key, is in the
WebRouter configuration guide. Keys are read through Hermes's
profile-aware lookup and handed to WebRouter for the call. Both routers use use_environment=False, so backend
keys and settings never fall back to the gateway process environment. A profile with no backend key uses the
keyless backends. Requires WebRouter 0.17 or newer.
A DEEPSEEK_API_KEY or PERPLEXITY_API_KEY the profile holds for chat models is also used, and billed, for search.
What it does
web_search: ranked results (title, URL, description), up to 20 per call.web_extract: each page as Markdown (or HTML or text when asked), in the order given. A page no backend could read
comes back with anerrorsaying why; the others are still returned. Pages are fetched concurrently, with one
WebRouter call per URL so redirected pages stay associated with their request. This uses separate backend
requests even when a vendor supports batching.
Hermes checks every URL against its private-address and website policies before the plugin sees it.
Disclosure
- Network calls to third parties. Search queries and the URLs passed to
web_extractare sent to whichever
backend WebRouter picks for the call: with no key, the free tiers of Nimble, Tavily, You.com, Exa, Parallel,
Firecrawl, Jina and Keenable; with keys, the services those keys belong to. Each backend runs the search or
fetches the page on its own servers. - Credentials. Keys come only from Hermes (
get_provider_env). The plugin stores nothing, and sends each key only
to its own backend. WebRouter does not read backend keys from the process environment. - Nothing else. No telemetry, no files written, no shell commands, no background processes, no self-update.
Development
uv sync --dev
uv run ruff check . && uv run ruff format --check .
uv run pytest # unit tests, offline
uv run pytest -m live # one keyless search and one keyless extract against real backends
License
Apache-2.0
README from the reviewed commit 17b13f7; it updates when the author re-pins.

yogev-nimble