Skip to main content
Hermes Agent connects directly to LithosAI through the OpenAI Chat Completions API. You do not need a local proxy or protocol adapter.
This setup uses a named custom provider, so you can keep LithosAI alongside any other providers already configured in Hermes Agent.

Before you begin

Create a key on the API Keys page and confirm the model ID you want to use on the Models page.
1

Install Hermes Agent

Install Hermes Agent with any method on the official installation page, then confirm the installation.
2

Add your LithosAI key

Hermes Agent reads provider keys from ~/.hermes/.env. Add your key there.
~/.hermes/.env
Exporting LITHOSAI_API_KEY in the shell that starts Hermes Agent also works.
3

Add LithosAI as a custom provider

LithosAI is a named custom provider. Merge the following into ~/.hermes/config.yaml, or open the file with hermes config edit.
~/.hermes/config.yaml
key_env names the environment variable that holds the key, so the credential never enters the configuration file. Replace the model ID if you selected a different model in the LithosAI console.
Hermes Agent does not read the context window from LithosAI. If the context meter or compaction looks wrong, add context_length to the lithosai entry with the value from the Models page.
4

Start a session

Start Hermes Agent from the project you want it to inspect. The session opens on LithosAI because model.provider is custom:lithosai.
Auxiliary tasks such as vision, web summarization, and session titles use the main chat model by default, so they run on LithosAI too.

Verify the connection

From a project that contains a README.md, ask Hermes Agent:
Hermes Agent should read the local file and return its heading. This verifies both the model response and a basic local tool call.

Troubleshooting

Issues common to every agent are listed under Common issues.

Resources