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))) -SkipSetupmacOS / 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-setupOnce the installation finishes, reopen your terminal and verify it:
Terminal:
hermes --versionWhen you see a version number, continue with the OpenAI or Claude setup below.
OpenAI setup
- Run this in the terminal:
hermes model- Choose Custom endpoint (enter URL manually). If the terminal shows a numbered menu, type the matching number and press Enter.

Fill in the following:
| Prompt | Value to enter |
|---|---|
| API base URL | https://api.himodels.ai/v1 |
| API key | The API Key you just created |
| API compatibility mode | Responses / Codex |
| Select model / Model name | gpt-6.1-sol |
| Context length in tokens | Just press Enter, it is detected automatically |
| Display name | HiModels 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.
When Reasoning effort appears, press Enter to keep the default and finish the setup:
Once the setup is done, continue with Verify the connection below.
Claude setup
- Run this in the terminal:
hermes model- Choose Custom endpoint (enter URL manually). If the terminal shows a numbered menu, type the matching number and press Enter.

Fill in the following:
| Prompt | Value to enter |
|---|---|
| API base URL | https://api.himodels.ai |
| API key | The API Key you just created |
| API compatibility mode | Anthropic Messages |
| Select model / Model name | claude-fable-5 |
| Context length in tokens | Just press Enter, it is detected automatically |
| Display name | HiModels 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:
hermesType 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:
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.