Skip to content

Hermes Agent

Hermes Agent is an open-source autonomous AI agent from Nous Research with built-in tool use, memory, and multi-step reasoning. It can connect directly to any OpenAI-compatible inference provider, including CompactifAI.

You need a CompactifAI API key and the model id for each model you plan to use (for example hypernova-60b or glm-5-2). Use CompactifAI API https://api.compactif.ai/v1 unless you are explicitly targeting another environment.

Hermes Agent --> CompactifAI API

Hermes sends requests in OpenAI chat-completion format directly to CompactifAI’s /v1/chat/completions endpoint and streams the response back — no intermediate proxy or translation layer required.

macOS / Linux:

Terminal window
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash

Windows (WSL2 recommended):

Terminal window
iex (irm https://hermes-agent.nousresearch.com/install.ps1)

Once installed, Hermes will ask how you want to set up. Choose:

Full setup — configure every provider, tool & option yourself (bring your own keys)

This option lets you configure a custom OpenAI-compatible endpoint. Do not choose Quick Setup (Nous Portal) — that routes through Nous’s own hosted models.

When Hermes asks you to configure an LLM provider, choose the option for a Custom endpoint (enter URL manually) (exact wording varies slightly by Hermes version).

Enter the following details when prompted:

FieldValue
API Base URLhttps://api.compactif.ai/v1
API KeyYour CompactifAI API key
API compatibility modeChat Completions
Available ModelA model id from the models catalog (e.g. hypernova-60b, glm-5-2, or carina-60b)
Context length in tokensLeave Blank
Display nameCompactifAI

Hermes saves the configuration automatically and uses your CompactifAI model for all future sessions.

Hermes allows you to set up tools including Messaging, Web Search & Scraping, Browser Automation, Terminal & Processes (terminal, process), Browser, Image Generation etc.

Reload the terminal after finishing the setup.

Terminal window
source ~/.zshrc
Terminal window
hermes

You should see a startup banner confirming the connection to selected model, example carina-60b.

Try a simple prompt in the Hermes session:

Hello! Which model are you using?

or

Write a Python function that calculates Fibonacci numbers.

If the model responds, your CompactifAI endpoint is configured correctly. Requests use the same /v1/chat/completions flow described in Chat Completion.

If your CompactifAI account has access to multiple models, you can switch between them inside an active Hermes session:

/model custom:glm-5-2

To make the change permanent:

/model custom:glm-5-2 --global

You can discover the full list of available model IDs programmatically via GET /v1/models (see API reference).

IssueSolution
401 UnauthorizedVerify your CompactifAI API key is correct and matches the key from your MultiverseIAM dashboard
404 Model Not FoundCheck that the model name exactly matches an id from the models catalog
Connection RefusedEnsure the API endpoint is reachable and includes the /v1 suffix
No response from HermesConfirm the endpoint implements the OpenAI Chat Completions API (POST /v1/chat/completions) — see Chat Completion
Context window errorsHermes expects models with at least a 64K context window for reliable agent workflows

For request and response fields, see Chat Completion and the API reference.