WSL安裝使用Ubuntu
# 场景1:新电脑,第一次配置 WSL
wsl --install -d Ubuntu # 安装 Ubuntu
# 重启电脑
wsl # 重启后,直接 wsl 就能进入# 场景2:电脑里有 Ubuntu 和 Debian 两个系统
wsl -l -v # 查看:Ubuntu (默认),Debian (未默认)
wsl # 进入 Ubuntu(因为是默认)
wsl -d Ubuntu # 进入 Debian等其他系统(进入其他指定名称的系统)# 场景3:日常使用 Hermes
wsl # 进入 Ubuntu
hermes chat # 直接运行 chat 命令,进入对话界面
hermes -z "你是什么模型" chat # 使用 -z 参数传递提示词
exit # 退出回到 Windows PowerShell
安裝Hermes
# 安装必要工具
sudo apt update && sudo apt install -y git curl# 一键安装 Hermes
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash# 刷新环境
source ~/.bashrc# 配置并启动
hermes
安装Hermes超时问题
# 1. 获取 Windows 宿主机的 IP 地址(在 WSL2 中执行)
# 这个命令会返回类似 "192.168.x.x" 的地址
host_ip=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}')# 2. 验证获取到的 IP 地址
echo $host_ip# 3. 使用宿主机 IP 和正确的端口(10809)设置代理
export http_proxy="http://${host_ip}:10809"
export https_proxy="http://${host_ip}:10809"# 4. (可选)如果代理还需要 SOCK5 支持
# export all_proxy="socks5://${host_ip}:10809"# 5. 验证代理是否生效
curl -I https://github.com# 6. 代理生效后,重新运行 Hermes 安装脚本
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

配置Model及key

配置Channel

安装完成

测试

安装WebUI
hermes dashboard

打开网页即可

安装有chat对话的webui
https://github.com/nesquena/hermes-webui
hermes chat #进入交互式终端
"查看仓库并安装运行: https://github.com/nesquena/hermes-webui"

成功启动8787端口并访问

重新配置channel
hermes gateway setup

高级技巧:把 wsl hermes 做成 Windows 右键菜单,或者用 Windows Terminal 固定一个 Hermes 标签页,效率加倍。
