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:
i got some code once pasted in cli and still got an oauth error 400
Error Messages/Logs
Steps to Reproduce
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_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗