Unable to login to Claude Code - authentication_error

Status Fixed / completed
Maintainer reply None cached
Activity 4 comments · opened Aug 16, 2025 · closed Aug 16, 2025

⎿ API Error: 401
{"type":"error","error":{"type":"authentication_error","message":"OAuth
authentication is currently not supported."}}

I have tried all options I can find on the internet from:
rm -rf ~/.claude
rm ~/.claude.json

to reinstalling claude, or configuring ANTHROPIC_API_KEY in .env file, it just doesn't work. I tried with another account but same problem.

So frustrating. It was working fine, I just logged out and try to login again.

View original on GitHub ↗

4 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5893
  2. https://github.com/anthropics/claude-code/issues/2542
  3. https://github.com/anthropics/claude-code/issues/4138

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

yesunesun · 1 year ago

I tried everything but didn't work. Then finally I did /exit and claude again and it worked. Thanks

swoopsus · 1 year ago

Kinda crazy, its been reported as a bug 17 times stretching back 5 days, and there have been 4 new versions released in that timeframe with no comment of fix in sight.

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.