Prerequisites
- Git
- A CometAPI account with an active API key
- A terminal on macOS, Linux, or WSL2
Installation
Get your CometAPI API key
Configuration
Store your CometAPI key
Open Hermes uses
~/.hermes/.env and add the following line:OPENAI_API_KEY as the auth fallback for custom OpenAI-compatible endpoints.Configure the CometAPI endpoint
Open Replace
~/.hermes/config.yaml and make sure the model section looks like this:your-model-id with a current text model ID from the CometAPI Models page.Keep the API key in
~/.hermes/.env. Do not hardcode secrets in config.yaml.This setup configures the main chat model. Hermes can use separate auxiliary models for tasks such as vision or web extraction.
Verification
Check the configuration
The following commands confirm that Hermes can read the config and the API key:If
hermes config check reports missing options after an update, run hermes config migrate and check again.Optional configuration
Clean reinstall (optional)
Clean reinstall (optional)
If you are replacing an older Hermes install, use the built-in uninstaller first:In the uninstaller, choose Full uninstall to remove the CLI, PATH entry, and
~/.hermes/ data. Then rerun the install step and continue with the same CometAPI configuration.Use hermes model instead (optional)
Use hermes model instead (optional)
If you prefer the interactive flow, run
hermes model and choose Custom endpoint.Then enter the following values:- Base URL:
https://api.cometapi.com/v1 - API key: your CometAPI API key
- Model: a current CometAPI text model ID
config.yaml.
