快速手动安装

发布时间:2026-04-10 / 查看:3
这份 Hermes Agent 快速安装指南,核心步骤为:先通过 curl 安装 uv,克隆项目代码并进入目录;用 uv 创建 Python3.11 虚拟环境,安装项目依赖及可选 npm 包;完成配置目录、配置文件与 API 密钥设置;将 hermes 命令软链接至全局路径,最后通过验证命令检查安装状态,即可快速完成部署。

适合命令行:

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone & enter
git clone --recurse-submodules https://github.com/NousResearch/hermes-agent.git
cd hermes-agent

# Create venv with Python 3.11
uv venv venv --python 3.11
export VIRTUAL_ENV="$(pwd)/venv"

# Install everything
uv pip install -e ".[all]"
uv pip install -e "./tinker-atropos"
npm install  # optional, for browser tools and WhatsApp

# Configure
mkdir -p ~/.hermes/{cron,sessions,logs,memories,skills,pairing,hooks,image_cache,audio_cache,whatsapp/session}
cp cli-config.yaml.example ~/.hermes/config.yaml
touch ~/.hermes/.env
echo 'OPENROUTER_API_KEY=sk-or-v1-your-key' >> ~/.hermes/.env

# Make hermes available globally
mkdir -p ~/.local/bin
ln -sf "$(pwd)/venv/bin/hermes" ~/.local/bin/hermes

# Verify
hermes doctor
hermes

©比奥学堂(BIAOOO)版权所有