Hermes
Run the Hermes agent through OpenLLM per session with openllm hermes, or install a sticky openllm profile and remove it with openllm hermes uninstall.
| Command | openllm hermes |
| Mode | Per session, or a sticky profile after openllm hermes install |
| Talks to | OpenAI-compatible Chat Completions at <gateway>/v1 |
| Default model | ultra |
| Skip approvals | openllm -d hermes (adds --yolo) |
| Remove | openllm hermes uninstall (only after install) |
Before you begin
- Install the OpenLLM CLI. See Install.
- Install Hermes so that
hermesis on yourPATH. If it is missing,openllm hermesprints the official installer,https://hermes-agent.nousresearch.com/install.sh. - Have at least one model available. See Providers.
Set up with openllm hermes
openllm hermesWith no arguments, this opens the Hermes TUI. Every other argument goes to Hermes unchanged, except OpenLLM's verbs install, uninstall, status, and the --no-persist flag. For a one-shot prompt, run openllm hermes -z "…".
At launch, OpenLLM picks a gateway: your local daemon at http://127.0.0.1:8787 if it answers, otherwise https://www.openllm.sh. For the session, it sets HERMES_HOME to ~/.openllm/run/hermes/<pid>/, a directory that links to everything in your real ~/.hermes. In it, OpenLLM writes a config.yaml that merges your active profile's config with:
- an
openllmprovider withapiset to<gateway>/v1,transport: chat_completions, and the key read fromOPENLLM_API_KEY; model.default: ultrawithprovider: custom:openllm;- the
openllmMCP server.
OPENAI_API_KEY and OPENAI_BASE_URL are removed from the Hermes environment. The directory is deleted when Hermes exits.
Make it sticky
To route Hermes through OpenLLM outside the TUI too, for example its gateway or scheduled jobs, install a profile:
openllm hermes installThis:
- Creates the profile
~/.hermes/profiles/openllm(oropenllm-gatewayifopenllmalready exists), copyingconfig.yaml,.env,SOUL.md, andskills/from your active profile. - Merges the OpenLLM settings into that profile's
config.yamland writesOPENLLM_API_KEYto its.env. - Makes it the active profile and restarts the Hermes gateway.
openllm hermes install writes your sk-llm key in plain text to the profile's .env, for example ~/.hermes/profiles/openllm/.env. When OpenLLM creates that file, only your user can read it; a .env copied from your active profile keeps its permissions. If the file is ever exposed, revoke the key. See If a key leaks.
After that, openllm hermes and plain hermes both use the profile. Your default ~/.hermes/config.yaml is never edited. The gateway URL is fixed when you install; run openllm hermes install again after you start or stop the daemon. To skip the profile for one launch, add --no-persist.
Choose models
The default model is ultra. The provider also declares plus and lite. To switch, use /model in Hermes. To change what the aliases resolve to, edit the chains in Configuration. See Routing and fallback.
Who pays for a request
The model that serves the request decides. A subscription hop runs on your own login through the daemon on one of your devices. An API-key hop bills your provider account. Included openllm/ models count against your plan's allowance. See Providers and Plans and limits.
Check that it works
openllm hermes -z "Reply with OK"
openllm hermes statusstatus prints one JSON line; "installed": true means the sticky profile is wired. Open Overview in the app to see the request.
Common problems
| Symptom | Cause | Fix |
|---|---|---|
Hermes is not installed | hermes is not on your PATH | Install Hermes, then run the command again |
Hermes already has profiles named openllm and openllm-gateway | Both names are taken | Rename one profile, then run openllm hermes install again |
| Requests fail after you stop the daemon | The sticky profile still points at 127.0.0.1:8787 | Run openllm hermes install again |
No models are available for your OpenLLM account. | Nothing in your model list | Connect a provider on Providers |
For anything else, see Troubleshooting.
Remove it
If you only used openllm hermes, there is nothing to remove. After openllm hermes install, run:
openllm hermes uninstallThis restores the profile that was active before, deletes the openllm profile if OpenLLM created it, and restarts the Hermes gateway.
Last updated on
Grok Build
Run Grok Build through OpenLLM with openllm grok, choose from your OpenLLM models in each session, and keep your ~/.grok config and auth.json unchanged.
Raycast
Add your OpenLLM models and the ultra, plus and lite aliases to Raycast AI on macOS with openllm raycast, and remove them with openllm raycast uninstall.