OAuth authentication fails with 400 error for Pro subscription

Resolved 💬 5 comments Opened Oct 31, 2025 by apet6426 Closed Oct 31, 2025

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 ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗