Hermes Agent
Set up Hermes Agent by Nous Research with the llmbox API as a Custom endpoint in Chat Completions mode — the hermes model wizard and config.yaml.
Hermes Agent is a terminal agent by Nous Research: it reads and edits files,
runs commands and uses tools. Connect it to the llmbox API as a Custom endpoint
in Chat Completions mode — requests go to /v1/chat/completions, and you pick
the model by its ID from the catalog.
For an overview and model pricing, see Hermes Agent on llmbox.
Quick start
Install Hermes:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
- Outside a session, run
hermes modeland choose Custom endpoint (self-hosted / VLLM / etc.). - API base URL:
https://llmbox.cc/v1 - API key — your key from the cabinet.
- Model name — an ID from the model catalog, e.g.
openai/gpt-6.1-sol. - When asked for the API mode, choose Chat Completions.
- Run
hermesand ask your first question.
The model needs a context window of at least 64 000 tokens and tool calling: Hermes refuses to start with a smaller window.
Configure with a file
The wizard saves the provider to ~/.hermes/config.yaml, and you can write it
by hand as well. Put the key in ~/.hermes/.env:
LLMBOX_API_KEY=your-key
providers:
llmbox:
api: https://llmbox.cc/v1
key_env: LLMBOX_API_KEY
transport: chat_completions
model:
default: openai/gpt-6.1-sol
provider: custom:llmbox
llmbox is an arbitrary provider name; the rest of the config refers to it as
custom:llmbox. transport: chat_completions sets the request format; the
wizard writes the same line when you choose Chat Completions.
Changing the model
Inside a session, change the model with /model custom:llmbox:<ID>, e.g.
/model custom:llmbox:deepseek/deepseek-v4-pro.
The /model command only works with providers that are already configured.
To add a new one, run hermes model outside a session or edit
config.yaml.
How it works
- Hermes sends requests to
/v1/chat/completionswith streaming and your key; usage shows up in the cabinet. - The agent's tools (files, terminal, project search) are your functions; the gateway passes them to the model as is.
- Auxiliary tasks — history compression, session titles, image analysis — also go to the main model by default and use tokens too.
- Every agent step is a separate request with the full session history, so long tasks use noticeably more input tokens than a chat.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
401 invalid_api_key | ~/.hermes/.env has no LLMBOX_API_KEY line, the key was pasted with a stray space, or it is revoked — check it in the cabinet. |
404 model_not_found | A typo in the model ID — check against GET/v1/models. |
| Hermes will not start and complains about the context window | The model's window is under 64 000 tokens — pick a model with a larger one in the catalog. |
| The agent replies in text but never calls tools | The model does not support tool calling — pick another one from the catalog. |
llmbox is missing from /model | The provider is not configured yet — leave the session and run hermes model. |