Skip to content

fix(anthropic): add diagnostic output on 401 auth failures#1125

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c877bdeb
Mar 13, 2026
Merged

fix(anthropic): add diagnostic output on 401 auth failures#1125
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c877bdeb

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

When Anthropic returns 401 and credential refresh doesn't help, now prints actionable troubleshooting:

🔐 Anthropic 401 — authentication failed.
   Auth method: x-api-key (API key)
   Token prefix: sk-ant-api03-...
   Troubleshooting:
     • Check ANTHROPIC_API_KEY in ~/.hermes/.env (stale key overrides Claude Code auto-detect)
     • For API keys: verify at https://console.anthropic.com/settings/keys
     • For Claude Code: run 'claude /login' to refresh, then retry
     • Clear stale keys: hermes config set ANTHROPIC_API_KEY ""

Shows which auth method (Bearer vs x-api-key) and token prefix so users can identify the problem.

When Anthropic returns 401 and credential refresh doesn't help,
now prints actionable troubleshooting info:
- Which auth method was used (Bearer vs x-api-key)
- Token prefix for debugging
- Common fixes (stale ANTHROPIC_API_KEY, verify key, refresh login)
- How to clear stale keys
@teknium1 teknium1 merged commit 9dfa81a into main Mar 13, 2026
1 check passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…c877bdeb

fix(anthropic): add diagnostic output on 401 auth failures
thewillhuang pushed a commit to thewillhuang/hermes-agent that referenced this pull request May 11, 2026
…olumn

Add 'review' as a valid task status and extend dispatch_once to
monitor the review column as a second dispatch source (in addition
to the existing ready column).

Changes:
- Add 'review' to VALID_STATUSES in kanban_db.py
- Add claim_review_task() for review->running transitions
- Add review dispatch loop in dispatch_once, sharing max_spawn
- Review agents get sdlc-review skill auto-loaded via task.skills
- Add has_spawnable_review() for health telemetry
- Update gateway _ready_nonempty to also check review tasks
- Add 14 tests covering claim, dispatch, skills, max_spawn, telemetry

Implements NousResearch#1125 / AC NousResearch#2 of epic NousResearch#1122.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…c877bdeb

fix(anthropic): add diagnostic output on 401 auth failures
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…c877bdeb

fix(anthropic): add diagnostic output on 401 auth failures
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…c877bdeb

fix(anthropic): add diagnostic output on 401 auth failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant