【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
相关推荐
醉城夜风~12 小时前
(超详细)C++ STL list容器详解:从使用方法到双向链表底层原理全面解析
c++·windows
凤山老林13 小时前
在 Apple 芯片的 Mac 上通过 VMware Fusion 使用 Windows 11
windows·macos·vmware·虚拟机
不弃君13 小时前
在 Windows 上用 MinGW 搭建 lwIP 调试环境:方法与踩坑实录
windows·网络协议·tcp/ip·嵌入式·mingw·lwip
ITHAOGE1514 小时前
下载 | Win11 24H2 正式版更新!(系统ISO映像、多合一版本、26100.8973、Windows 11)
windows·科技·微软·电脑
来日方长。。。。long18 小时前
Hermes Agent橙皮书共读|第三篇:保姆级实战部署|本地/VPS从零搭建Hermes
ide·git·hermes
lzhdim18 小时前
C# 通过 Windows API 实现进程内存读写操作
开发语言·windows·c#
CIAS20 小时前
Windows powershell下实现空间释放
windows
AxureMost21 小时前
NeeView图像查看
windows
赵广陆1 天前
Model I/O进阶
windows
问商十三载1 天前
RAG 检索效果差怎么排查?2026 五层诊断法完整指南
开发语言·人工智能·windows·python·算法