# NousResearch/hermes-agent · Callable api_key breaks custom provider resolution

## Open now

- Nothing open on GitHub.

A bug where a callable api_key causes an AttributeError during custom provider resolution, along with fixes to guard against this in auth and agent code paths.

## TL;DR

- 7 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 4 PR(s) closed without merging.
- A fix was merged to main in PR #113969. Verify it addresses your case.
- **Recommended:** read PR #113969 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-114333`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.29`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #88667: \[Bug\]: callable api_key from key_cmd crashes custom-provider resolution with AttributeError

## Prior & competing PRs

- **#113969: fix(aux): async aux calls to named custom providers keep their key_cmd bearer and extra_headers (#109595, salvage #109626)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/auxiliary_async_rebuild.py`, `agent/auxiliary_client.py`, `tests/agent/test_auxiliary_named_custom_providers.py`
- **#114333: A callable key_cmd credential survives every auxiliary custom-provider branch (#88667, credit #107344)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/auxiliary_client.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_command_token_source.py`
- **#88668: fix(auth): keep callable api_key intact when resolving a custom provider**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#88667`, `#114333`, `#114333`
- **#89106: fix(agent): guard callable api_key in resolve_provider_client (#88667)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#88668`, `#88668`
- **#105595: fix(auth): keep a callable key_cmd credential in the api_key branch**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#114333`
- **#107344: fix(aux): keep callable key_cmd credentials intact in all custom-provider resolution branches**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#114333`, `#113969`, `#113969`, `#114333`

## Fix status

- Merged to main in PR #113969 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-17`.
- Subsystem: `agent`
