CanalAPI
Community tools

Hermes Agent setup

Connect Nous Research Hermes Agent to CanalAPI with a custom endpoint and environment-key reference, then verify chat and tools.

Hermes Agent is Nous Research's general-purpose agent, combining tools, memory, skills and messaging for ongoing tasks. See choosing and using agents for the distinction between model access and tool configuration.

Checked on 2026-11-03 against v0.22.6. Official configuration was reviewed; real CanalAPI tasks have not been tested.

1. Install and select a model

Follow the official installation guide. Current options include desktop installers for Windows / macOS, CLI installation for Linux / macOS / WSL2, and native Windows CLI installation. Older claims that Windows requires WSL no longer describe all options.

Prepare a CanalAPI key and full model ID. Choose a model with Chat Completions, tool support and at least 64,000 context tokens. If setting model.context_length, use the actual supported window; this field cannot increase server capacity.

For initial setup, use hermes setup, then run this in the terminal:

hermes model

Choose Custom endpoint:

FieldValue
API base URLhttps://api.canalapi.com/v1
API keyYour CanalAPI key
Model nameFull model ID; replace YOUR_MODEL_ID

Use a custom endpoint for CanalAPI, rather than Nous Portal or ChatGPT / Codex subscription login. In-chat /model switches configured models; exit the chat and run hermes model to add a provider.

2. Configure files and key references

Back up existing settings. Store the dedicated key in ~/.hermes/.env; ~ is your home directory. With custom HERMES_HOME or profiles, edit the directory actually in use:

CANALAPI_API_KEY=YOUR_CANALAPI_KEY

Merge into config.yaml in the same directory, keeping other settings:

model:
  provider: custom
  base_url: https://api.canalapi.com/v1
  default: YOUR_MODEL_ID
  key_env: CANALAPI_API_KEY
approvals:
  mode: manual

Replace the model and key placeholders. Never commit or screenshot .env. When using key_env, check for and remove a stale inline model.api_key so credential sources are unambiguous.

Current versions use config.yaml for the model, provider and URL. Legacy LLM_MODEL was removed; OPENAI_BASE_URL applies only to the openai-api provider. Custom endpoints should set model.base_url, not rely only on old environment variables.

approvals.mode: manual asks about policy-flagged commands; it does not prompt for every file operation. Select needed toolsets with hermes tools. The local terminal backend executes on your computer; configure another backend when your task requires it.

3. Verify chat, then a read-only task

hermes doctor
hermes
  1. hermes doctor performs diagnostics, not proof of inference. Start chat, check the provider and model, and ask “Reply only OK; do not call tools”.
  2. Confirm the model and request in CanalAPI usage logs.
  3. Put a fictional README in a test directory and ask Hermes to read and summarize it in three points. Check tool records and the working directory.
  4. Only then configure memory, skills, browsing or messaging through hermes gateway setup and the official guides. A model key does not replace platform credentials.

Title, compression, vision and other auxiliary tasks may use a different model or provider and incur extra costs. Check each effective configuration if these tasks should also use CanalAPI.

Common issues

  • Old provider still used: check the active config directory, model.provider, model.base_url, CLI arguments and session. Start a new session after saving.
  • Cannot add a provider: use terminal hermes model, not in-chat /model.
  • Small context or failed tools: select a model meeting both requirements; catalog access does not prove capability.
  • Chat works but search or a bot fails: diagnose the separate tool or channel and its credentials rather than repeatedly changing the model key.

Official references: quickstart, v0.22.6 providers, v0.22.6 configuration and approvals. API errors: troubleshooting.

On this page