Docs / Tool setup / Hermes Agent
Use clawcu with Hermes Agent
Hermes connects to clawcu as a custom endpoint. The four commands below do the same as choosing Custom endpoint in the hermes model wizard and filling in the URL, model and key.
| Protocol | OpenAI-compatible (/v1/chat/completions) |
|---|---|
| Base URL | https://token.clawcu.ai/v1 |
| Config file | ~/.hermes/config.yaml |
Models: kimi-k3 (strongest for coding, used on this page), glm-5.3, deepseek-flash (cheapest and fastest). See the Models page in the console or GET /v1/models for the full list and prices.
Before you start
Create a key on the API Keys page of the console (the plaintext is shown once), then put it in the CLAWCU_LLM_KEY environment variable — every step below reads it from there:
export CLAWCU_LLM_KEY=sk-your-key
Windows (PowerShell)
$env:CLAWCU_LLM_KEY="sk-your-key"
To keep it, add the line to ~/.zshrc / ~/.bashrc; on Windows run setx CLAWCU_LLM_KEY sk-… and open a new terminal.
Install
Official install script (only Git is required; on Windows, follow these steps inside WSL2):
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"
Configure
Write the key as '${CLAWCU_LLM_KEY}' (single quotes, stored as-is); Hermes reads the environment variable at runtime, so the plaintext never lands in the config file:
hermes config set model.provider custom
hermes config set model.base_url https://token.clawcu.ai/v1
hermes config set model.default kimi-k3
hermes config set model.api_key '${CLAWCU_LLM_KEY}'
Verify
If it replies OK, you are connected to clawcu:
hermes -z "Reply with exactly: OK"
Everyday use
Run hermes to start chatting; change the default model with hermes config set model.default glm-5.3.
hermes
FAQ
The installer says cua-driver failed (missing libXi etc.)?
That's the computer-use component; it is skipped on Linux servers without a desktop and doesn't affect chat or coding.
401 invalid API key?
CLAWCU_LLM_KEY must be set in the terminal that runs Hermes; check with hermes config get model.api_key that it stores ${CLAWCU_LLM_KEY}, not an empty value.
Which model handles auxiliary tasks (vision, web summaries)?
By default they follow the main model (auxiliary.*.provider: auto); override them in config.yaml if needed.
Other tools:Claude Code · Codex CLI · OpenCode · OpenClaw