[BUG] Invalid OAuth Request: Unknown scope: org%3Acreate_api_key
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?
I'm trying to login as I did it before on my server:
<img width="934" height="553" alt="Image" src="https://github.com/user-attachments/assets/00fecc2a-d11e-4522-8bdd-0d646b1655e3" />
As (c to copy) didn't work, a was forced to select and copy the link (as a usually did, like yesterday).
I get that link:
If I go to that link, I get error:
<img width="1240" height="849" alt="Image" src="https://github.com/user-attachments/assets/861a5ebc-b7a3-4412-9693-49585e8be4c3" />
It was not like this yesterday.
What Should Happen?
It should just give me select account, and give me the code for auth on the server.
Error Messages/Logs
Invalid OAuth Request
Unknown scope: org%3Acreate_api_key
Steps to Reproduce
- Execute
claudecommand - Use
/logincommand - Select MAX subscription
- Try
(c to copy), it does not work - Select link text and CTRL+C, to copy
- Paste (CTRL+V) the link provided by
claudeapplication to the browser address bar
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.12
Claude Code Version
2.1.17
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Non-interactive/CI environment
Additional Information
It is bash terminal, it was not in a list of Terminal/Shell
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗