Preflight Checklist
What's Wrong?
OAuth login fails with "Invalid OAuth Request - Missing code_challenge parameter"
when using /login with Max subscription on Ubuntu Linux.
The URL generated by Claude Code contains invalid parameters that cause
claude.com to reject the request.
Workaround: manually edit the OAuth URL before opening in browser:
- Remove "code=true&" from the beginning of query params
- Remove "org%3Acreate_api_key+" from the scope parameter
This works correctly after editing.
What Should Happen?
Browser opens the OAuth authorization page, user logs in,
receives a code to paste back into the terminal, and Claude Code
authenticates successfully with the Max subscription.
Error Messages/Logs
Invalid OAuth Request - Missing code_challenge parameter
Steps to Reproduce
- Run /login in Claude Code
- Press "c" to copy the OAuth URL
- Paste URL in browser without modification
- Browser shows "Invalid OAuth Request - Missing code_challenge parameter"
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
Claude Code 2.1.96.
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information

Preflight Checklist
What's Wrong?
OAuth login fails with "Invalid OAuth Request - Missing code_challenge parameter"
when using /login with Max subscription on Ubuntu Linux.
The URL generated by Claude Code contains invalid parameters that cause
claude.com to reject the request.
Workaround: manually edit the OAuth URL before opening in browser:
This works correctly after editing.
What Should Happen?
Browser opens the OAuth authorization page, user logs in,
receives a code to paste back into the terminal, and Claude Code
authenticates successfully with the Max subscription.
Error Messages/Logs
Steps to Reproduce
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
Claude Code 2.1.96.
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information