【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
相关推荐
原创小甜甜34 分钟前
Windows 蓝屏自救手册:从紧急记录到硬件排查的完整指南
windows·stm32·单片机
万粉变现经纪人1 小时前
2026最新Windows11系统CMD安装Claude Code 快速接入DeepSeek V4 Pro在VSCode编程工具中使用保姆级入门教程指南
linux·运维·ide·windows·vscode·macos·编辑器
jike88ai1 小时前
Windows版Claude Code安装与API对接教程(附常见问题解决)
windows·gpt·node.js·claude·claudecode·88api
2601_955781982 小时前
Windows 环境快速部署 Hermes 智能 Agent,规避环境配置各类坑点
人工智能·本地部署·教程分享·hermes·hermes部署
段智华2 小时前
Hermes架构全景图:从入口到交付的完整数据流
ai-native·hermes·自进化智能体
love530love3 小时前
【笔记】ComfyUI 源码部署版更新后一键修复:从手动补丁到自动化工作流
运维·人工智能·windows·笔记·python·自动化·comfyui
PieroPc3 小时前
AirDisk NAS Viewer 通过 HTTP 服务或 Windows 网络驱动器
网络·windows·http
爱和冰阔落3 小时前
Linux/Windows 双平台通关:YOLOv8 目标检测从模型选型到跨平台部署实战
linux·windows·yolo
七仔啊4 小时前
windows server服务器验机流程
运维·服务器·windows