【hermes】windows 安装hermes,配置glm

安装hermes

powershell 复制代码
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
    public bool CheckValidationResult(
        ServicePoint srvPoint, X509Certificate certificate,
        WebRequest request, int certificateProblem) {
        return true;
    }
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

前面部分是在配置忽略校验,其实真正的安装命令是 irm https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.ps1 | iex

配置glm

修改配置文件.env

C:\Users\${userName}\AppData\Local\hermes\.env

找到这段注释,分别配置上

env 复制代码
# =============================================================================
# LLM PROVIDER (z.ai / GLM)
# =============================================================================
# z.ai provides access to ZhipuAI GLM models (GLM-4-Plus, etc.)
# Get your key at: https://z.ai or https://open.bigmodel.cn
GLM_API_KEY=你的APIKey

GLM_BASE_URL=https://open.bigmodel.cn/api/anthropic

配置 GLM_API_KEY为你的API key, 配置GLM_BASE_URL为https://open.bigmodel.cn/api/anthropic

修改配置文件 config.yaml

C:\Users\${userName}\AppData\Local\hermes\config.yaml

修改开头的模型配置

yaml 复制代码
model:
  default: anthropic/claude-opus-4.6
  provider: auto
  base_url: https://openrouter.ai/api/v1

为

yaml 复制代码
model:
  default: glm-4.7
  provider: zhipu
  base_url: https://open.bigmodel.cn/api/anthropic
相关推荐
李少兄14 小时前
Windows 11 环境下 BAT 脚本无法执行的排查与修复指南
windows
解道Jdon14 小时前
FigCraft把Figma用Rust从零重写了一遍
ide·windows·git·svn·eclipse·github·visual studio
zh731416 小时前
Docker Desktop on Windows 挂载问题根因分析
windows·docker·容器
Surpass-HC16 小时前
WSL2 windows-ubuntu
linux·windows·ubuntu
遇印记17 小时前
网络安全,数据链路层,物理层
运维·服务器·网络·windows·学习
mx_jun17 小时前
Wireshark 蓝牙 HCI 日志分析常用操作速查
windows·microsoft·hci·bt
艾iYYY18 小时前
思考: C++ 万能引用与完美转发
c++·windows·microsoft
小趴菜一只19 小时前
SIEM-wazuh安装过程
运维·windows·安全·网络安全
MOONICK20 小时前
COM 组件技术(三)
c++·windows
Source.Liu20 小时前
【A11】客户端登录流程笔记
windows·rust