【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
相关推荐
中二骚年10 小时前
Windows 安全中心 / 防火墙故障,calc和Microsoft Store,终端(管理员)无法正常打开。 原因 + 修复方案
windows·安全·microsoft
万联WANFLOW11 小时前
CVE-2026-98432 等漏洞自查:AI 查出的 Linux、Windows 漏洞,运维怎么确认受不受影响
linux·运维·windows·网络安全
AlanAshley12 小时前
Windows 中导致延迟的软硬件及协议比重
windows
yuezhilangniao12 小时前
win10中文 以及 PowerShell 开发日常
windows·powershell
共享家95271 天前
408 操作系统第一章
服务器·数据库·windows
Sakura_j_h_1 天前
GitHub Actions 打包 Windows exe:中文编码与产物上传
windows·ci/cd·打包发布·github·pyinstaller·github actions
xixiaoyunya1 天前
搭一个浏览器即用的二进制文件分发点:目录规范与权限边界实践
网络·windows
麻瓜code1 天前
Spring AI 全模块 API 字典一览(1.1.0 版)
人工智能·windows·spring
zrc0070071 天前
steam无法登录 steam错误 登录时出现错误。请稍后再试。解决办法 steam无法登录解决办法 湖南地区steam DNS问题解决办法
windows·经验分享·游戏·缓存·游戏程序·创业创新·玩游戏
BK贝壳2 天前
布尔队列 BHA_Queue:入队出队均摊 O(1);附 BHA_Dict
windows