Skip to content

windowsw 装

1 git

先安 git ,保证 cmd 有 git

2 clash

3 测试网络

curl.exe -I https://github.com
curl.exe -I https://hermes-agent.nousresearch.com
curl.exe -I -x http://127.0.0.1:7897 https://github.com

如果终端无法访问,进行配置


$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"

git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897

4 安装

sh
iex (irm https://hermes-agent.nousresearch.com/install.ps1)
sh
$env:HERMES_HOME="C:\hermes"

# 持久化到当前用户
[System.Environment]::SetEnvironmentVariable(
    "HERMES_HOME",
    "C:\hermes",
    "User"
)

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1))) -HermesHome "C:\hermes"

重新 setup


hermes gateway setup

5 desktop


$env:ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"

hermes desktop

6 开启 hermes api

sh
openssl rand -hex 32

# bc38cba29945aaec4d87245721c7723910e5c2c24ff97c0da195e229e993d3e9
sh
%LOCALAPPDATA%\hermes\.env

# 如果设置了
# $env:HERMES_HOME="C:\hermes"
C:\hermes\.env
sh
API_SERVER_ENABLED=true
API_SERVER_HOST=127.0.0.1
API_SERVER_PORT=8642
API_SERVER_KEY=bc38cba29945aaec4d87245721c7723910e5c2c24ff97c0da195e229e993d3e9
sh
hermes gateway restart

# 验证
curl.exe http://127.0.0.1:8642/v1/capabilities -H "Authorization: Bearer bc38cba29945aaec4d87245721c7723910e5c2c24ff97c0da195e229e993d3e9"

weixin bot


hermes pairing list

hermes pairing approve weixin <配对码>

卸掉 Hermes

sh
hermes uninstall