Hermes 配置方法
Hermes 是 Nous Research 推出的命令行 Agent,可以通过 OpenAI 兼容 协议接入模型。
1. 安装
适用于 Linux / macOS / WSL2。你只需要预先安装 Git,安装脚本会自动处理其余依赖。
# macOS(Homebrew)
brew install git
# Ubuntu / Debian
sudo apt update
sudo apt install -y git
# Windows(PowerShell / winget)
winget install Git.Git
安装 Git 后,运行 Hermes 安装脚本:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
安装完成后,重新加载 shell(或重开终端)。
2. 运行配置向导
hermes setup
按提示依次操作:
- 选择配置模式:选择
Quick Setup; - 模型供应商:选择
自定义 / OpenAI 兼容(Custom / OpenAI-compatible)选项; - Base URL:填写
https://api.wylon.cn/v1; - API Key:粘贴
<你的_wylon_API_Key>; - 模型名:填写要使用的模型 ID,例如
moonshotai/Kimi-K2.6或deepseek-ai/DeepSeek-V4-Flash; - 完成其余配置项。
tips_and_updates
Hermes 默认会列出若干预设厂商,但不包含 wylon。需在供应商一步选择「自定义 / OpenAI 兼容」,并手动填写配置。
3. 使用
配置完成后,按 Hermes 提示运行相应命令即可开始使用,例如运行 hermes 进入交互会话。