clawcu 文档 繁 EN ID

文档 / 工具接入 / Hermes Agent

在 Hermes Agent 里使用 clawcu

Hermes 用「自定义端点(Custom endpoint)」接 clawcu。下面四条命令等价于在 hermes model 向导里选 Custom endpoint 后填写地址、模型和 Key。

协议OpenAI 兼容(/v1/chat/completions)
地址https://token.clawcu.ai/v1
配置文件~/.hermes/config.yaml

可用模型:kimi-k3(编码综合最强,本页默认)、glm-5.3、deepseek-flash(最便宜、最快)。完整清单与价格以控制台 模型 页或 GET /v1/models 为准。

准备

在控制台 API Keys 页创建一把 Key(明文只显示一次),设成环境变量 CLAWCU_LLM_KEY,下面的配置都从这里读取:

export CLAWCU_LLM_KEY=sk-你的Key

Windows(PowerShell)

$env:CLAWCU_LLM_KEY="sk-你的Key"

想长期生效,把这一行加进 ~/.zshrc / ~/.bashrc;Windows 用 setx CLAWCU_LLM_KEY sk-… 后重开终端。

安装

官方安装脚本(只需要 Git;Windows 用户建议在 WSL2 里按下面的步骤操作):

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"

配置

Key 写成 '${CLAWCU_LLM_KEY}'(单引号,原样保存),Hermes 运行时从环境变量读取,配置文件里不出现明文:

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}'

验证

看到回复 OK 就说明已经连上 clawcu:

hermes -z "Reply with exactly: OK"

日常使用

运行 hermes 进入对话;换默认模型:hermes config set model.default glm-5.3。

hermes

常见问题

安装时提示 cua-driver 安装失败(缺 libXi 等)?

那是「电脑操作」组件,在没有桌面的 Linux 服务器上会跳过,不影响对话与编码。

提示 401 API Key 无效?

运行 Hermes 的终端里要有 CLAWCU_LLM_KEY;用 hermes config get model.api_key 确认存的是 ${CLAWCU_LLM_KEY} 而不是空值。

视觉、网页摘要等辅助任务用哪个模型?

默认跟随主模型(auxiliary.*.provider: auto);需要的话可在 config.yaml 里单独指定。

其他工具:Claude Code · Codex CLI · OpenCode · OpenClaw