windows下通过WSL2部署Hermes AI助手全攻略
1.安装打开ubuntu下面运行指令都在这里操作curl -fsSL -o install.sh https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh上面步骤没有报错可以继续进行如出现网络问题可切换网络重试上面步骤重试安装使用bash install.sh指令即可bash install.sh安装完成后直接出现配置向导也可以通过命令配置hermes setup2.配置选择Quick setup点击enter选中选择模型下一步会出现输入APIkey即从阿里云获取到的APIKey阿里云账号申请输入即可。之后会出现输入BaseUrl即阿里云的国内访问地址输入https://dashscope.aliyuncs.com/compatible-mode/v1选择模型选择通信平台这里跳过就可以输入Y输入内容就可以对话了3.网关在.env文件中加入API_SERVER_ENABLEDtrue API_SERVER_KEYyour-secret-key路径一般是\\wsl.localhost\Ubuntu\home\administrator\.hermes启动网关hermes gateway run -vv出现API server listening on http://127.0.0.1:8642就是起来了4.Web UI面板网关必须开着4.1EKKOLearnAI/hermes-web-ui —— 全能控制台npm install -g hermes-web-uihermes-web-ui startctrl鼠标左键打开网页http://localhost:8648/停止命令hermes-web-ui stop4.2nesquena/hermes-webui —— 极简聊天面板git clone https://github.com/nesquena/hermes-webui.git hermes-webuicd hermes-webuipython3 bootstrap.py下载不下来多试几次成功后打开网页http://localhost:8787关闭的话杀掉占用8787端口的所有进程lsof -t -i:8787 | xargs kill -9然后重启的话依次执行cd hermes-webui python bootstrap.py4.3itq5/OpenClaw-Admin ——多智能体管理平台git config --global http.sslVerify falsegit clone https://github.com/itq5/OpenClaw-Admin.gitcd OpenClaw-Admin直接npm install会报错所以用的下面这个npm install node-pty --build-from-sourcecp .env.example .envnpm run dev:all打开网页http://localhost:3001默认登录用户名和密码都是admin选择在线对话右上角选择hermes新开一个终端hermes dashboard右上角变成已连接可以正常对话了关闭的话直接ctrlC停下重启执行cd OpenClaw-Adminnpm run dev:all4.4 open-webui/open-webui —— 通用AI平台执行下面的命令注意将黄色部分换成自己的key下载过程很长需要耐心等待docker run -d -p 3000:8080 \ -e OPENAI_API_BASE_URLhttp://host.docker.internal:8642/v1 \ -e OPENAI_API_KEYyour-secret-key \ --add-hosthost.docker.internal:host-gateway \ -v open-webui:/app/backend/data \ --name open-webui \ --restart always \ ghcr.io/open-webui/open-webui:main