## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work
> - The subsystem is the Hermes gateway adapter onboarding doc
(`doc/HERMES_GATEWAY_ONBOARDING.md`)
> - The doc does not mention Hermes profiles at all
> - Users who run one Hermes profile per role (coder, reviewer,
researcher) cannot see that one Paperclip agent per profile is possible
> - This pull request adds a "Multiple Hermes Profiles" section to the
onboarding doc
> - It documents the `/p/<profile>` base-URL route, the shared-listener
auth rule, and the dashboard-port gotcha
> - The benefit is that users can wire one Paperclip agent per Hermes
profile from the doc alone
## Linked Issues or Issue Description
- Fixes: #18697 (docs: document routing to a specific Hermes profile via
the `/p/<profile>` base URL)
## What Changed
- Add a "Multiple Hermes Profiles" section to
`doc/HERMES_GATEWAY_ONBOARDING.md`.
- The section covers the four points from #18697: enable
`gateway.multiplex_profiles`, one agent per profile with `apiBaseUrl`
set to `<gateway>/p/<profile>`, the API key rule, and the port `9119`
path-rewrite gotcha.
- The section also documents the two routing outcomes: unknown prefix
returns `404`, no prefix runs as the default profile.
## Verification
- The `/p/<profile>` route contract is verified against the Hermes
gateway source (`gateway/platforms/api_server.py`: the module docstring
lists `GET /p/<profile>/v1/models`; `_resolve_request_profile` returns
the reject sentinel for unknown profiles; the profile-prefix middleware
answers `404 {"error": "Unknown or unconfigured profile"}`).
- The base-URL claim is verified against
`packages/adapters/hermes/src/gateway/server/execute.ts`: `apiUrl()`
appends `/v1/runs...` to the configured URL and keeps its path;
`normalizeBaseUrl()` rewrites the path to `/api` only when the port is
the Hermes dashboard port.
- One correction to #18697: the issue says each multiplexed profile has
its own `API_SERVER_KEY`. The source shows one listener with one key
(`self._api_key` is set once in the api_server platform init from
`API_SERVER_KEY`). The profile prefix scopes the request home; it does
not change the auth key. The doc text follows the source. Please correct
me if a per-profile key path exists that I missed.
- The issue asks for a maintainer smoke test (a full Paperclip run
against a `/p/` URL) before documenting. I did not run that smoke test.
The doc describes static source behavior only. If you prefer, switch the
link to `Refs: #18697` and run `doc/HERMES_GATEWAY_SMOKE.md` first.
- Docs-only change. No tests apply. No code paths change.
## Risks
Low risk. Docs only. The new section is additive and isolated.
## Model Used
- Hermes Agent (Nous Research) with mimo-v2.6-pro (Xiaomi), 2026-11-03
- Tool-assisted: `gh` CLI for API reads; local Hermes source
(`/usr/local/lib/hermes-agent`) for the verification above
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above (open PRs scanned; none touches profile routing docs)
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (`docs/hermes-profiles`)
- [x] I have run tests locally and they pass (docs-only; no test suite
applies)
- [x] I have added or updated tests where applicable (no tests apply to
markdown docs)