【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
相关推荐
大模型码小白3 小时前
JAVA 集合框架进阶:List 与 Set 的深度解析与实战
java·开发语言·人工智能·windows·语言模型·list·ai编程
XUHUOJUN5 小时前
AKS 不是安装在 Windows Server 上,而是运行在 Windows Server 之上的 Azure 平台能力
windows·架构·k8s·azure local·azure stack
Wild_Pointer.6 小时前
高效工具实战指南:Procexp64进程资源管理器
c++·windows
这是柠檬君8 小时前
Microsoft Activation Scripts(MAS)最新版!
windows·office
xinhuanjieyi8 小时前
cargo在windows系统下编译成exe,用everything搜索路径
windows·everything
IT曙光10 小时前
OpenClaw 安装与初始化指南windows
windows·openclaw
tinygone10 小时前
在Windows上部署Unlimited-ocr并提供给大模型使用
人工智能·windows·经验分享
WangWei_CM10 小时前
[原创][Windows C++]Winlogon 登录相关注册表值与 Notify 子键解析
windows
一路向北North12 小时前
windows如何部署deepseek
windows
之歆12 小时前
从 Mac 回到 Windows:用 PowerToys + AutoHotkey 找回熟悉手感
windows·macos