# NousResearch/hermes-agent · API key inheritance scoped to exact origin match

## Open now

- Nothing open on GitHub.

A bug was identified where the auxiliary client incorrectly inherits the main API key based on hostname alone, ignoring scheme and port. Fixes narrow the inheritance logic to require a full origin match instead.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #130508. Verify it addresses your case.
- **Recommended:** read PR #130508 (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-130508`. 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.50`: 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

- #126104: \[Bug\]: auxiliary client inherits the main API key on a hostname match, ignoring scheme and port

## Prior & competing PRs

- **#130508: Auxiliary clients and the OpenRouter mirror send the main or OPENAI_BASE_URL-bound API key only to its exact origin (#126104, #126218, salvage #126108, #126222)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `hermes_cli/runtime_provider_backends.py`, `tests/agent/test_auxiliary_client.py`, `tests/agent/test_auxiliary_ollama_local_provider.py`, `tests/hermes_cli/test_runtime_provider_resolution.py`, `website/docs/reference/environment-variables.md`, `website/docs/user-guide/configuration.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md`, `website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/configuration.md`
- **#126108: fix(auxiliary): inherit the main API key only on the identical origin**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `de64070452`, `#130508`
- **#127663: fix(agent): inherit the main API key for aux endpoints on origin match, not hostname**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `de64070452`, `#130508`

## Fix status

- Merged to main in PR #130508 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-03`.
