Hermes CLI

Install Hermes

Open a terminal and run the official install command for your system. The script handles the dependencies, and the command below skips the full setup wizard so you only have to configure the model afterwards.

Windows PowerShell

& ([scriptblock]::Create((irm https://hermes-agent.nousresearch.com/install.ps1))) -SkipSetup

macOS / Linux

First, make sure Git is installed; Linux also requires curl and xz-utils. Then run:
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash -s -- --skip-setup

Once the installation finishes, reopen your terminal and verify it:

Terminal:
hermes --version

When you see a version number, continue with the OpenAI or Claude setup below.

The hermes --version output

OpenAI setup

  1. Run this in the terminal:
hermes model
  1. Choose Custom endpoint (enter URL manually). If the terminal shows a numbered menu, type the matching number and press Enter.
Hermes: Select Custom endpoint

Fill in the following:

PromptValue to enter
API base URLhttps://api.himodels.ai/v1
API keyThe API Key you just created
API compatibility modeResponses / Codex
Select model / Model namegpt-6.1-sol
Context length in tokensJust press Enter, it is detected automatically
Display nameHiModels OpenAI
Reasoning effort (if it appears)Just press Enter to keep the default

The API Key field hides what you type, or shows it as asterisks; paste it and press Enter. If a model list appears you can pick the matching number, or type the model name from the table above.

Filling in the OpenAI-compatible endpoint in Hermes

When Reasoning effort appears, press Enter to keep the default and finish the setup:

The finished OpenAI setup in Hermes

Once the setup is done, continue with Verify the connection below.

Claude setup

  1. Run this in the terminal:
hermes model
  1. Choose Custom endpoint (enter URL manually). If the terminal shows a numbered menu, type the matching number and press Enter.
Hermes: Select Custom endpoint (Claude configuration)

Fill in the following:

PromptValue to enter
API base URLhttps://api.himodels.ai
API keyThe API Key you just created
API compatibility modeAnthropic Messages
Select model / Model nameclaude-fable-5
Context length in tokensJust press Enter, it is detected automatically
Display nameHiModels Claude
Reasoning effort (if it appears)Just press Enter to keep the default

When Reasoning effort appears, press Enter to keep the default. Once the setup is done, continue with the verification step below.

Verify that the connection works

Run this in the terminal:

hermes

Type a sentence, for example:

Hello, please briefly introduce what you can help me with.

After receiving a normal response, go to HiModels Model Management → API Keys and confirm that Used Credits has increased for the corresponding Key. This indicates that the integration is successful.

What a successful reply looks like:

Hermes replying normally

From now on, just open a terminal and run hermes.

Common problems and troubleshooting

How do I switch to a different setup?

Exit the current conversation, run hermes model again, fill in the new API Key, base URL and model as described above, then restart hermes. Typing /model inside a conversation does not set up a new key or base URL for you.

What if there is no reply or an error appears?

First make sure the API Key is on a group that allows external access, then check the base URL, API mode and model name above. For 401, 403 or 429 errors, see the FAQ.

For installation problems, see the official Hermes installation guide.