0 前言

vps (ubuntu2404) 安装配置 hermes agent 的备忘

1 安装

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

eval "$(hermes completion bash)"

2 profile

NAME="chat-lvbibir"
NAME="chat-serious"
mkdir -p "/root/hermes/${NAME}"

hermes profile create "${NAME}" --clone

hermes -p "${NAME}" config set terminal.cwd "/root/hermes/${NAME}"
hermes -p "${NAME}" config set terminal.home "/root/hermes/${NAME}"
hermes -p "${NAME}" config set gateway.media_delivery_allow_dirs "/root/hermes/${NAME}"
hermes -p "${NAME}" config set cron.wrap_response false


hermes -p "${NAME}" config set delegation.model gpt-5.5
hermes -p "${NAME}" config set delegation.provider custom
hermes -p "${NAME}" config set delegation.base_url http://127.0.0.1:3000/v1
hermes -p "${NAME}" config set delegation.api_key sk-*******
hermes -p "${NAME}" config set delegation.api_mode codex_responses
hermes -p "${NAME}" config set delegation.reasoning_effort high

hermes -p "${NAME}" config set agent.service_tier priority

# 关闭不需要的 tools, 主要是 browser, 在低内存的 vps 中会导致问题
hermes -p "${NAME}"  tools

rm -rf /root/.hermes/profiles/${NAME}/skills/*
# 手动修改 /root/.hermes/profiles/${NAME}/config.yaml
# skills:
#   external_dirs:
#     - /root/.agents/skills
#     - /root/.hermes/skills

cat >> "/root/.hermes/profiles/${NAME}/.env" <<EOF
MESSAGING_CWD=/root/hermes/${NAME}
SMART_SEARCH_CONFIG_DIR=/root/.config/smart-search
ALL_PROXY="${proxy}"
all_proxy="${proxy}"
http_proxy="${proxy}"
https_proxy="${proxy}"
EOF

hermes -p "${NAME}" setup gateway
hermes -p "${NAME}" gateway restart

skills 安装 参考