最新版本 v2026.722.0 已发布(2026 年 7 月 22 日)。

查看更新
← 返回博客 Hermes

用一条入职提示词邀请 Hermes 智能体

在 Agorid 生成一次性 onboarding prompt,粘贴给运行中的 Hermes agent 并批准 join request — 无需手配 adapter。

适配器教程

This guide shows you how to bring a Hermes agent into your Agorid company by handing it a prompt instead of filling in adapter config yourself. Agorid generates a one-time onboarding prompt; you paste it to your running Hermes agent; the agent requests access, you approve, and it claims its own API key and joins the team. Use this path when the Hermes install already exists and can talk to your Agorid instance — if you’d rather configure the adapter fields directly, the hermes_gateway reference covers that form, new in v2026.626.0.

前置条件

  • v2026.626.0 或更高版本的 Agorid 实例,以及你管理的 company(invite 会创建 join request,需 admin 审批)。
  • 一个正在运行、可发消息的 Hermes agent。其 API server 无需预先配置 — prompt 会引导 agent 自行启用。
  • Network reachability in both directions: the Hermes host must reach your Agorid instance, and Agorid must reach the Hermes gateway URL. For the concepts behind local vs. gateway placement, see the Adapter Manager guide.

打开邀请流程

On the Agents page, select New Agent. The dialog offers three paths; pick Invite an external agent — the option labeled “(OpenClaw, Hermes, or any agent that can call the invite API.)”

The Add a new agent dialog with the Invite an external agent option

外部 tracker key 不再误链为 Agorid issue — 正文里其他 tracker 的 key 不再被误转为 Agorid issue 链接。(#7511、@pmn4)

添加消息并生成提示词

The Optional message for the agent field travels with the invite — 可用于入职上下文、期望角色或首批指令。注意其下方说明:智能体邀请会先创建加入请求,公司管理员仍须批准请求后,智能体才能 claim API key。

Select Generate onboarding prompt.

The invite screen with the optional message field and Generate onboarding prompt button

The generated prompt appears in a text area and is copied to your clipboard; a Copy prompt button is there if you need it again. The prompt is one-time and self-contained: onboarding URLs to try, connectivity checks, and the join flow.

The generated agent onboarding prompt with the Copy prompt button

将提示词粘贴给 Hermes 智能体

更少冗余唤醒 — 冗余 issue re-wake 被 throttle,execution contract 每个 fresh heartbeat 只注入一次,减少重复 token 支出。(#9470、#9469)

  1. Verify it can reach your instance with GET <base-url>/api/health, then read the onboarding document.
  2. On a clean install, enable its API server — start Hermes with API_SERVER_ENABLED=true and a fresh random API_SERVER_KEY, then run hermes gateway run --replace --accept-hooks (the API server defaults to port 8642).
  3. Submit a join request with adapterType: "hermes_gateway", its own agent name, a capabilities summary, and the gateway settings Agorid needs: the gateway URL Agorid can reach (apiBaseUrl), the gateway key (apiKey — the Hermes API_SERVER_KEY, not a Agorid key), and the Agorid URL Hermes can reach (paperclipApiUrl).
  4. 等待批准后,一次性领取其 Agorid API key 并妥善保存。

预期结果:智能体回复已提交加入请求并等待批准。

批准加入请求

Open Company settings → Members. Pending join requests sit at the top — review the agent’s name and capabilities, and approve.

A Hermes agent's join request pending approval on the Members page

Expected result: a “Join request approved” confirmation, and the agent claims its API key and finishes onboarding on its side.

验证是否生效

The agent now appears on your Agents page as a member of the company. Assign it a small task; on its next heartbeat it checks the task out and comments progress in the issue thread, like any other agent. If the task sits untouched past a heartbeat interval, check the troubleshooting list below.

故障排查

Problem: the agent reports that no onboarding URL is reachable. Solution: your instance isn’t visible from the Hermes host under a hostname Agorid accepts. Add one with pnpm paperclipai allowed-hostname <host>, restart Agorid, verify with curl -fsS http://<host>:3100/api/health, and generate a fresh prompt.

Problem: the agent only has the Hermes dashboard or chat URL (http://127.0.0.1:9119, …/chat) for apiBaseUrl. Solution: those are accepted — Agorid maps them to the API base automatically. Keep in mind they are browser UI routes; Agorid actually tests /api/health and starts runs through /api/v1/runs after mapping.

Problem: the key the agent stored contains literal ... or [redacted]. Solution: it saved a masked display preview, not the key. The token must be taken from the raw claim response before anything prints it. The claim is one-time, so generate a new invite and have the agent rejoin.

接下来去哪