# NousResearch/hermes-agent · macOS Keychain sync for Claude Code OAuth refresh tokens

## Open now

- Nothing open on GitHub.

These items address a bug where OAuth token refreshes update a credentials file but leave the macOS Keychain holding a stale or spent refresh token, causing login failures. Related work includes fixes to mirror token rotation into the Keychain and an opt-out environment variable for the behavior.

## TL;DR

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

- #98334: \[Bug\]: macOS OAuth refresh writes only ~/.claude/.credentials.json, never the Keychain — stale Keychain refresh token expires the Claude Code login

## Prior & competing PRs

- **#115690: macOS: a Hermes OAuth refresh no longer leaves Claude Code's Keychain holding a spent refresh token (#98334, salvage #109584)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_credentials.py`, `agent/credential_pool.py`, `tests/agent/test_anthropic_borrowed_row_authority.py`, `tests/agent/test_anthropic_keychain.py`, `tests/agent/test_auxiliary_client.py`, `tests/conftest.py`
- **#98343: fix(agent): mirror Claude Code OAuth rotation to the macOS Keychain**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#55051`
- **#104006: feat(auth): add HERMES_DISABLE_CLAUDE_CODE_CREDENTIALS opt-out env var**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#103978`, `#98334`
- **#109584: fix(agent): mirror Claude Code OAuth refresh into the macOS Keychain (#98334)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `14a3463454`, `#115690`, `#98334`

## Fix status

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