Skip to main content

Connect Hermes Agent with Zeldoc.ai

Hermes Agent is Nous Research's open source agent, which runs in the terminal, as a desktop app, and in messaging apps. It works with any OpenAI-compatible endpoint, so Zeldoc.ai connects as a custom endpoint.

Prerequisites​

Add Zeldoc.ai with the setup wizard​

Run the wizard from your terminal, outside a chat session:

hermes model

Choose Custom endpoint (self-hosted / VLLM / etc.) and enter:

PromptValue
API base URLhttps://api.zeldoc.ai/v1
API keyYour Zeldoc.ai API key
Model namezdev
Context length1000000

When the wizard asks for a reasoning effort, pick high. ZDev has three levels: low, high, and max. Hermes defaults to medium, and ZDev runs any level it doesn't have, medium included, at max.

The wizard saves everything to ~/.hermes/config.yaml.

Or edit the config file​

To skip the wizard, add this to ~/.hermes/config.yaml:

model:
provider: custom
default: zdev
base_url: https://api.zeldoc.ai/v1
key_env: ZELDOC_API_KEY
context_length: 1000000

agent:
reasoning_effort: high

key_env reads the key from an environment variable. Put it in ~/.hermes/.env, which Hermes loads at startup:

ZELDOC_API_KEY=your-api-key

context_length tells Hermes when to compress the conversation. Without it, Hermes may guess a much smaller window for a model it doesn't know.

Verify the connection​

Run a one-off prompt:

hermes -z "Reply with the single word OK."

A reply from the model confirms Zeldoc.ai is connected. In a chat session, change the thinking level with /reasoning, for example /reasoning max. Add --global to save it as the default.

Use other Zeldoc.ai models​

Inside a chat session, switch to another model on the same endpoint with /model:

/model custom:zdev-2

Use the model ID exactly as Zeldoc.ai reports it (see list your available models). Context windows and reasoning levels differ between models, so check them before reusing ZDev's settings.