不用纠结选哪个模型
Hermes Agent 完全配置指南
一键安装 + 自主配置
10 分钟装好 · 4 条命令接入任意模型
Hermes Agent · 晴天 AI
📦 8 Parts
👉 滑动
方式一:一键安装(推荐)
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
方式二:Homebrew 安装
brew install nousresearch/tap/hermes-agent
方式三:源码安装
git clone https://github.com/NousResearch/hermes-agent.git
cd hermes-agent
pip install -e .
安装完成后启动:
hermes
Hermes 内置了多个模型提供商插件,安装后自动可用。查看支持的模型:
hermes provider list
以 Agnes 为例:
# 1. 选择提供商
hermes config set model.provider custom
# 2. 设置 API 地址
hermes config set model.base_url https://api.agnes-ai.cn/v1
# 3. 设置 API Key
hermes config set model.api_key YOUR_API_KEY
# 4. 选择模型
hermes config set model.default agnes-2.5-flash
一键执行:
hermes config set model.provider custom && \
hermes config set model.base_url https://api.agnes-ai.cn/v1 && \
hermes config set model.api_key YOUR_API_KEY && \
hermes config set model.default agnes-2.5-flash
Hermes 内置的 provider 不需要手动设置 base_url,直接可用:
DeepSeek:
hermes config set model.provider deepseek
hermes config set model.api_key YOUR_KEY
hermes config set model.default deepseek-v4-flash
通义千问:
hermes config set model.provider alibaba
hermes config set model.api_key YOUR_KEY
hermes config set model.default qwen-plus
智谱 GLM:
hermes config set model.provider zai
hermes config set model.api_key YOUR_KEY
hermes config set model.default glm-4.5-flash
Kimi 需要手动配置 base_url:
hermes config set model.provider custom
hermes config set model.base_url https://api.moonshot.cn/v1
hermes config set model.api_key YOUR_KEY
hermes config set model.default kimi-k3
本地模型适合隐私敏感、不想付 API 费用的用户。无需联网、数据完全可控,但需要一定的硬件配置。
硬件配置要求
| 最低配置 | phi3.5(2.5GB) | ||
| 推荐配置 | qwen2.5:7b | ||
| 流畅配置 | deepseek-r1:7b |
安装 Ollama
# macOS
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows:下载运行安装程序
下载并测试模型
ollama serve
ollama pull qwen2.5:7b
ollama run qwen2.5:7b
配置 Hermes 使用本地模型
hermes config set model.provider openai
hermes config set model.base_url http://localhost:11434/v1
hermes config set model.api_key ollama
hermes config set model.default qwen2.5:7b
# 查看已下载模型
ollama list
# 测试运行
ollama run qwen2.5:7b
显存不足就下载更小的模型(如 phi3.5)。
我的建议:
配置好之后,你就可以让 Hermes 帮你写代码、调试、整理文档、跑自动化任务了。
如果觉得有用,欢迎点赞、在看、转发给同样需要的朋友。
参考链接:
- [Hermes Agent 文档](https://hermes-agent.nousresearch.com/docs)
- [Hermes GitHub](https://github.com/NousResearch/hermes-agent)- [Agnes AI](https://platform.agnes-ai.com)
- [DeepSeek](https://platform.deepseek.com)
- [Ollama](https://ollama.com)
夜雨聆风