While using it, API 401 errors appear. Even after I log out and log in, the same errors pop up.

Status Fixed / completed
Maintainer reply None cached
Activity 30 comments · opened Jul 10, 2025 · closed Jul 10, 2025

Bug Description
while using it, API Error appears

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid OAuth token. The provided token was not found or is malformed."}}

Environment Info

  • Platform: darwin
  • Terminal: intellij
  • Version: 1.0.44
  • Feedback ID: ca60401a-8d5d-4df1-95cb-f73f6ba82f24

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at wD (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:702:3921)\n    at file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:9350\n    at Q (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:13327)\n    at uC (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:8496)\n    at hC (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:7361)\n    at wB (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:623:11970)","timestamp":"2025-07-10T00:59:20.028Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"Invalid OAuth token. The provided token was not found or is malformed.\"}}\n    at D6.generate (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1304:12612)\n    at gq.makeStatusError (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:2100)\n    at gq.makeRequest (file:///Users/hyunchul/.nvm/versions/node/v22.13.1/lib/node_modules/@anthropic-ai/claude-code/cli.js:1321:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-10T01:00:03.570Z"}]

View original on GitHub ↗

30 Comments

AndresBena19 · 1 year ago

+1, experimenting same issue

x1957 · 1 year ago

+1, experimenting same issue

Flamenco · 1 year ago

Seems systemwide...

mfridson · 1 year ago

same

Taylor0819 · 1 year ago

+1, experimenting same issue

Nickkim128 · 1 year ago

+1

trevware · 1 year ago

Yep, same issue here.

charles-liang · 1 year ago

Yep, same issue here.

nathangemis · 1 year ago

same

shankar-gpio · 1 year ago

Same issue here.

Can't live without Claude Code nowadays. Please fix.

IsraelAraujo70 · 1 year ago

yep same issue

tviniciusas · 1 year ago

same issue here

awktavian · 1 year ago

Me too. :(

gsrat1 · 1 year ago

same issue

Groceat · 1 year ago

same issue seems like its down right now lol

efraimrodrigues · 1 year ago

same

cliph · 1 year ago
% claude doctor

 Claude CLI Diagnostic
 Currently running: npm-local (1.0.44)
 Path: /opt/homebrew/Cellar/node/24.3.0/bin/node
 Invoked: /Users/<user>/.claude/local/node_modules/.bin/claude
 Auto-updates: Yes
 Config install method: local
 Config auto-updates: true
 Press Enter to continue…
efraimrodrigues · 1 year ago

Do we agree this is worse than the CrowdStrike issue?

d3v1an7 · 1 year ago

claude gently telling us all it's time to touch some grass

chenkaitech · 1 year ago

same

mhso-dev · 1 year ago

same issue

rhenz · 1 year ago

samedt

vivekanand30 · 1 year ago

+1

loveguag · 1 year ago

+1

khashii · 1 year ago

same issue

Flamenco · 1 year ago
claude -c do a health check on the oauth server every 30 seconds if the oauth server does not respond, reboot it and send a text to the engineers

OOOH, its back up!

AndresBena19 · 1 year ago

seems like it's back friends, go back to vibe code 😄

chenkaitech · 1 year ago

back

hchbae1001 · 1 year ago

Thank you for letting me know

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.