# NousResearch/hermes-agent · Anthropic credential leak fix: env token sent to third-party endpoints

## Open now

- Nothing open on GitHub.

These items address a bug where the ANTHROPIC_AUTH_TOKEN environment variable could be forwarded to non-Anthropic compatible endpoints alongside an api_key, resulting in unintended dual-credential exposure. The fixes ensure only one credential is sent and that the env-derived token is cleared on api-key-style clients.

## 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 #107978. Verify it addresses your case.
- **Recommended:** read PR #107978 (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-107978`. 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

- #105774: \`ANTHROPIC_AUTH_TOKEN\` from the environment is sent to third-party Anthropic-compatible endpoints (dual-auth credential leak)

## Prior & competing PRs

- **#107978: fix(anthropic): a client sends exactly one credential, on copies too (#105774, salvage #105778)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_adapter.py`, `contributors/emails/0genlab@users.noreply.github.com`, `tests/agent/test_anthropic_adapter.py`, `tests/agent/test_anthropic_client_auth.py`, `tests/agent/test_auxiliary_client_azure_foundry.py`, `tests/agent/test_nous_portal_anthropic_wire.py`
- **#105778: fix(anthropic): clear SDK env-derived auth_token on api-key-style clients**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#105819: fix(agent): clear auth_token when authenticating via api_key (#105774)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#105778`, `#105774`

## Fix status

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