跳转到主要内容

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

高级应用


# 如果需要在windows资源管理器直接访问agent生成的文件

# 创建文件夹
mkdir -p /data/hermes

# 把工作目录的文件移走,并删除 /root/.hermes/ 。注意最终目录文件夹结构
mv /root/.hermes/ /hermes

# 创建一个软连接,这一步其实可以提前做,先创建软连接,然后再安装
ln -s /data/hermes /root/.hermes



# 显示智能体列表
hermes profile list

# 创建一个智能体
hermes profile create first

# 使用某个工作空间
hermes profile use <first>