Files
hermes-agent/hermes_cli/data
Teknium 1ca3abd431 feat(credential-pool): agent-CLI providers can pool several logins per profile
A model-provider plugin that runs an agent CLI (auth_type external_process,
e.g. the Claude Subscription DirectSDK plugin running Claude Code) keeps its
login outside Hermes, so a profile could hold only one. Pool rows for such a
provider half-worked: the main runtime came from the generic pool rung, which
dropped the launch command and args (background review reads rt["command"]
and raised KeyError; a generic ACP client launched with no command), the
auxiliary client (titles, compression, vision) was handed the placeholder key
and so ran on the CLI's default login - another account, or none - and a row
the pool had taken out of rotation for good (DEAD) printed as healthy in
`hermes auth list`.

- resolve_external_process_provider_credentials() hands the row the pool is
  on as api_key (new public agent.credential_pool_plugin.
  external_process_pool_key), so the main runtime, its rotation rebuild and
  the auxiliary client all spawn the CLI with the same login; the
  external-process rung carries the pool for usage-limit rotation and keeps
  command/args. An empty pool keeps the placeholder: nothing changes.
- The generic pool rung skips external-process providers (their rung owns it).
- `hermes auth list` shows a dead row as "signed out (left rotation; sign in
  again)".
- Docs: model-provider plugin guide section for pooled agent-CLI logins,
  user-guide credential-pools note, public-api table.

For NousResearch/hermes-official-plugins#441, #499 and #37.
2026-11-29 14:06:50 -08:00
..