恒美微站
首页
关于我们
建站服务
主题模板
案例展示
资讯中心
联系我们
hermes 安装
首页
资讯中心
/
hermes 安装
hermes 安装
发布时间:2026/9/25 19:35:56
这篇文章主要讲解如何从源码安装hermes请自行解决科学上网的问题Linux / macOS / WSL2这几种系统应该是一致的如果懒得从源码就直接curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash这样安装吧 这是官网推荐的安装方式hermes官网wsl2十分推荐使用wsl2进行hermes的安装 如果你是windows系统如果是linux或者macos采用同样的方式应该也可以完成安装前置条件还是同样要保证git的安装这是前置条件git下载地址还需要nodejs的环境nodejs下载随后安装uv进行python环境的管理 这是官方推荐的形式比conda好在是免费使用蛮好curl-LsSfhttps://astral.sh/uv/install.sh|shuv官方地址安装可以直接复制下面的命令进行自动安装gitclone https://github.com/NousResearch/hermes-agent.gitcdhermes-agent# 使用 Python 3.11 创建虚拟环境uv venv venv--python3.11exportVIRTUAL_ENV$(pwd)/venv# 安装所有扩展messaging、cron、CLI 菜单、开发工具uv pipinstall-e.[all,dev]# 可选浏览器工具npminstall注意npm install的时候别开加速器不然很慢把hermes放到PATH上mkdir-p~/.local/binln-sf$(pwd)/venv/bin/hermes~/.local/bin/hermes随后你就可以在任何路径用hermes调用了这里显示我们缺少tirith直接用npm安装npminstall-gtirith用hermes model进行模型的选择选择你自己使用的模型提供商如果没有就选custom推荐配置建议默认采用tui启动hermes configsetdisplay.interface tui语法解析的skillhermes skillsinstallofficial/software-development/ast-grep如果你嫌默认的压缩上限太低了可以这么调整hermes configsetcompression.threshold0.8hermes configsetcompression.threshold_tokens512000如果想让子agent也可以派生agent可以这么配置hermes configsetdelegation.max_spawn_depth2hermes configsetdelegation.max_concurrent_children20#增加agent的并发上限三次重试可能太少 可以这样增加hermes configsetagent.api_max_retries6hindsight记忆服务商安装直接让hermes看资源即可