hermes-agent 智能体
官网 : https://github.com/NousResearch/hermes-agent
安装
windows操作系统需要先安装wsl,mac操作系统可以直接安装
# 显示可用的linux镜像
wsl --list --online
# 安装linux镜像,默认是ubuntu
wsl --install
# 进入系统
wsl
# 以root身份进入
wsl -u root
需要python和nodejs
wget https://nodejs.org/dist/v22.22.2/node-v22.22.2-linux-x64.tar.xz
# 可以先下载完成后解压到 /root/.hermes/node
安装和配置
# 安装
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
# 刷新配置
source ~/.bashrc
# 配置
hermes setup
# 切换模型
hermes model
# 开始对话
hermes
# 卸载
hermes uninstall
高级应用
# 显示智能体列表
hermes profile list
# 创建一个智能体
hermes profile create first
# 使用某个工作空间
hermes profile use <first>
如果需要在windows资源管理器直接访问agent生成的文件
一句话概括就是使用软连接将profiles目录链接到本机磁盘上
# 创建文件夹
mkdir -p /data/mnt/d/hermes-data
# 把工作目录的文件移走,并删除 /root/.hermes/profiles/ 。注意最终目录文件夹结构
mv /root/.hermes/profiles/ /mnt/d/hermes-data/hermes
# 创建一个软连接,这一步其实可以提前做,先创建软连接,然后再安装
ln -s /mnt/d/hermes-data/hermesprofiles/ /root/.hermes
# 给与权限
chmod 755 /data/hermeshermes/profiles