本文最后更新于 2026-05-13,文章内容可能已经过时。

爱马仕安装

# 使用国内加速脚本一键安装
curl -fsSL https://res1.hermesagent.org.cn/install.sh | bash

文件目录(均位于 ~/.hermes/ 下)

  • 配置:~/.hermes/config.yaml

  • 密钥:~/.hermes/.env

  • 数据:~/.hermes/cron/sessions/logs/ -代码:~/.hermes/hermes-agent/


常用命令-

hermes:开始聊天-

hermes setup:配置 API Key 和相关设置-

hermes config:查看或编辑配置-

hermes gateway install:安装网关服务

设置pip 清华源:

pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

[root@localhost ~]# hermes config set model.base_url http://192.168.215.104:11434/v1
✓ Set model.base_url = http://192.168.215.104:11434/v1 in /root/.hermes/config.yaml
[root@localhost ~]# hermes config set OPENAI_API_KEY "ollama"
✓ Set OPENAI_API_KEY in /root/.hermes/.env
[root@localhost ~]# hermes config set model.default qwen3.6:35b-a3b
✓ Set model.default = qwen3.6:35b-a3b in /root/.hermes/config.yaml
[root@localhost ~]# hermes config set model.provider openai
✓ Set model.provider = openai in /root/.hermes/config.yaml
[root@localhost ~]# 

开始聊天

hermes chat

进入虚拟环境并查看日志

source /root/.hermes/hermes-agent/venv/bin/activate

journalctl -u hermes-gateway -f

安装 Hermes WebUI

npm install -g hermes-web-ui && hermes-web-ui start
  • Hermes WebUI 地址:http://192.168.215.110:8648/#/?token=bbd1c1fXXXXXXXXXXXXXXXXXX9489