OAuth authentication fails with 400 error for Pro subscription

Status Fixed / completed
Maintainer reply ✓ Yes — dltn
Activity 5 comments · opened Oct 31, 2025 · closed Oct 31, 2025
💡 Likely answer: A maintainer (dltn, contributor) responded on this thread — see the highlighted reply below.

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Cannot get claude code to authenticate fails with 400 error for Pro subscription

What Should Happen?

Your setup: Linux, Claude Code 2.0.30, Pro subscription
Steps you've tried

Clear authentication and retry:
rm -rf ~/.config/claude-code/auth.json
claude

npm uninstall -g @anthropic-ai/claude-code
npm cache clean --force
npm install -g @anthropic-ai/claude-code

Browser didn't open? Use the url below to sign in:

https://claude.ai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1962f5e&response_type=code&redirect_uri=https%3A%2F%2Fconsole.anthropic.com%2Foauth%2Fcode%2Fcallback&scope=org%3Acreate_api_key+user%3Aprofile+user%3Ainference&code_challenge=GB_zaFg__lDbLQ4GeDHoyPNaGps-U2nSYSwkoM7QVsA&code_challenge_method=S256&state=r4Xa93Mw2JqJ2daEwWB7Njf9_gi5o8R_vzQsiMauiG8

i got some code once pasted in cli and still got an oauth error 400

Error Messages/Logs

Steps to Reproduce

claude /login
https://claude.ai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1962f5e&response_type=code&redirect_uri=https%3A%2F%2Fconsole.anthropic.com%2Foauth%2Fcode%2Fcallback&scope=org%3Acreate_api_key+user%3Aprofile+user%3Ainference&code_challenge=GB_zaFg__lDbLQ4GeDHoyPNaGps-U2nSYSwkoM7QVsA&code_challenge_method=S256&state=r4Xa93Mw2JqJ2daEwWB7Njf9_gi5o8R_vzQsiMauiG8

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

v2.0.30

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] · 11 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/10718
  2. https://github.com/anthropics/claude-code/issues/10705
  3. https://github.com/anthropics/claude-code/issues/10715

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

poqudrof · 11 months ago

I have the same issue, probably the OAUTH server is down, I have either OAUTH error or 500, both are internal server errors.
I guess we have to wait it out. I tried downgrading claude / updating my browser without success.

roy-law · 11 months ago

same here.

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired.
    Please obtain a new token or refresh your existing token."},"request_id":"req_011CUfQVnzGjvTSYMbgKuPVT"} ·
    Please run /login
dltn contributor · 11 months ago

OAuth should be recovering now – https://status.claude.com/incidents/s5f75jhwjs6g

github-actions[bot] · 11 months 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.