hermes-infer
Infer model-provider plugin for Hermes Agent.
Infer by Flow7 serves GPT, Claude, Gemini, Grok and other models through one OpenAI-compatible
API at https://infer.flow7.org/v1. A model ID picks the model and one of up to four routes:
infer/<model>:low-cost, :balanced, :stable or :official. The
models page shows what each route costs now, next to the lab's
list price.
Install
hermes plugins install infer --enable
That installs the commit the Hermes plugin catalog pins. To install from GitHub instead:
hermes plugins install tarunspandit/hermes-infer --enable
Requires Hermes 0.23.0 or newer.
Configure
- Create an account at infer.flow7.org, create an API key on the
API keys page, and add wallet credit (every top-up is $5
or more). - Give Hermes the key: pick Infer in
hermes model, or setINFER_API_KEYin your
environment. - Choose a model:
hermes chat --provider infer -m infer/claude-opus-5-5:low-cost
INFER_BASE_URL overrides the endpoint; you only need it for a proxy in front of Infer.
What the plugin does
-
Registers one provider profile,
infer, on Hermes' Chat Completions transport. -
Fills the model picker from
GET /v1/modelswith the key Hermes passes to it, leaving out the
image and video generation models that list also returns. These six come first, and Hermes
falls back to them if the list request fails:infer/claude-opus-5-5:low-costinfer/claude-sonnet-5-5:low-costinfer/claude-fable-5-2:low-costinfer/gpt-6.2-astra:low-costinfer/gpt-6.2-sol:low-costinfer/grok-4.7:low-cost
On 2026-12-03 Infer's public catalog showed each of these routes available, taking tool calls,
and priced below the lab's list price. Hermes always lists them first, even when one is
unavailable for a while. Any other Infer model ID works with-m. -
Declares each model's published context window for all of its routes, and tool calling and
image input (text only on these Low cost routes) for the six above, from the public catalog of
2026-12-03. -
Sends a reasoning level as
reasoning_effortonly when you set one (--reasoning high,
/reasoning,agent.reasoning_effort). With nothing set, or with reasoning turned off (none,
which Hermes also asks for on its own title requests), no reasoning field is sent and the
route's own default applies: Infer documents no off switch on this wire. -
Sends the
reasoning_detailsrecord a thinking model returns back on the assistant message, as
Infer's docs ask clients to do across tool calls. -
Sends
relay.session_id, a hash of the conversation's cache scope, so Infer keeps the
conversation on the same route while that route stays healthy.
It registers no tools, hooks, middleware or commands, has no Python dependencies, and does not
change Hermes' own code.
Known limits
- Not tested against Infer itself. The checks ran inside Hermes, with network access blocked
or against a local stand-in for Infer's chat endpoint. No request reached Infer. - Reasoning across tool calls. The record goes back because the profile declares
native_reasoning_details_type. Hermes sendsreasoning_detailsto a provider that declares
one; otherwise it sends only the reasoning text, which Infer does not read, and a thinking model
can then reject the request that follows a tool call. If a Hermes release changes this, that
limit returns;tests/test_hermes_integration.pychecks it. - Switching models mid-session. After
/modelswitches to another model, the earlier
model's records are sent too. Whether Infer accepts them was not tested. If requests fail after
a switch, start a new session. - Several reasoning blocks in one reply. Hermes joins consecutive reasoning text blocks while
it streams, so a reply with more than one goes back as one block. - Gemini models are in the picker when your key can call them, but not among the six above:
their tool calls depend on the record coming back, and that was not tested.
Disclosures
- Network: Hermes sends prompts, conversation history, tool definitions, tool results and
INFER_API_KEYtohttps://infer.flow7.org/v1(orINFER_BASE_URL). The plugin's own
request isGET /v1/modelson the same host, with the key Hermes passes to it, to fill the
picker. Each chat request also carriesrelay.session_id(a SHA-256 hash of Hermes' cache
scope, not the scope itself). - Data handling: per Infer's Privacy Notice and
Subprocessor Notice, requests reach the selected model
through model-access gateway providers under contract with Infer, and a supplier or underlying
model provider may process or retain content according to the route, privacy setting and
provider terms. Infer does not intentionally store prompts in its inference database; a
generated response may be kept for up to about 24 hours so a retried request can be replayed. - Billing: pay per token from a prepaid Infer wallet. Before each request Infer holds the
maximum estimated cost and returns the rest when it finishes; the hold covers the output cap,
which Infer sets to at most 32,768 tokens when Hermes sends none. The plugin makes no payments. - Credentials:
INFER_API_KEYthrough Hermes' own provider credential handling. The plugin
never reads.env,auth.jsonor any other credential store. - At runtime, no telemetry, shell commands, background work, file access or self-updating code.
Development
python3 -m unittest discover -s tests -v # unit tests, any Python 3.11+
<hermes python> -m unittest discover -s tests -v # also runs tests/test_hermes_integration.py
The integration tests copy the plugin into a temporary HERMES_HOME, let Hermes discover it, and
check the request Hermes builds, the picker list and the context windows, with network access
blocked. They passed against Hermes source trees at v0.23.0, v0.23.6 and main (2026-12-03).
GitHub CI runs only the unit tests, on Python 3.11 to 3.14; the integration tests need a Hermes
install and skip there.
The catalog data at the top of __init__.py is generated:
curl -sS https://infer.flow7.org/api/public/catalog -o catalog.json
python3 scripts/update_catalog.py catalog.json
The script reads only that file and refuses a featured route that is unavailable, takes no tool
calls, or is not priced below the lab's list price.
Support
infer.flow7.org/support. This plugin is maintained by the
Infer team. License: MIT.
README from the reviewed commit f2a5f79; it updates when the author re-pins.

tarunspandit