准备一台安装好智能体的主机 · 不用重装系统
右键开始菜单,以管理员身份打开 PowerShell,执行:
wsl --install
📋 点击复制
该命令会自动启用 WSL2 并安装默认的 Ubuntu。完成后重启电脑。
重启后在管理员 PowerShell 中执行(默认发行版可选):
wsl --install -d Ubuntu
📋 点击复制
也可以从 Microsoft Store 搜索「Ubuntu」直接安装。
从开始菜单启动 Ubuntu,或在终端输入 wsl 进入。首次进入会提示设置用户名和密码(输入密码时屏幕不显示,属正常现象)。
在 WSL 的 Linux 终端里执行官方一键安装脚本:
curl -fsSL https://hermes-agent.nousresearch.com/install | bash
📋 点击复制
如果该地址不可用,可改用 GitHub 官方脚本:
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
📋 点击复制
如果 GitHub 地址也不可用(国内网络环境),可改用官方中文镜像站点的安装命令:
curl -fsSL https://res1.hermesagent.org.cn/install.sh | bash
📋 点击复制
Windows 用户可用:irm https://res1.hermesagent.org.cn/install.ps1 | iex。安装教程与文档见 hermesagent.org.cn 中文官方文档。
先在 platform.deepseek.com 申请 API Key,然后在 WSL 终端执行:
hermes config set model.default deepseek-v4-flash
📋 点击复制
hermes config set model.provider custom
📋 点击复制
hermes config set model.base_url https://api.deepseek.com
📋 点击复制
hermes config set model.api_key sk-你的Key
📋 点击复制
验证:运行 hermes config show,检查 model 段是否已正确写入。也可以直接运行 hermes model,按向导选择 DeepSeek 供应商并粘贴 API Key。