[BUG] Invalid OAuth Request: Unknown scope: org%3Acreate_api_key

Resolved 💬 6 comments Opened Jan 23, 2026 by konard Closed Mar 1, 2026

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:

https://claude.ai/oauth/authorize?code=true&client_id=9d1c250a-e61b-44d9-88ed-5944d1962f5e&response_type=code&redirect_uri=https%253A%252F%252Fplatform.claude.com%252Foauth%252Fcode%252Fcallback&scope=org%253Acreate_api_key+user%253Aprofile+user%253Ainference+u%0Aser%253Asessions%253Aclaude_code+user%253Amcp_servers&code_challenge=GsKgSkLFXV0id31Q8Tl-3T9_yr_YdPrnAbrWI_EuqKU&code_challenge_method=S256&state=S95plf_YqXr0hqmPKBrNh3x1k0hSNJVRILeP4vQqw-I

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

  1. Execute claude command
  2. Use /login command
  3. Select MAX subscription
  4. Try (c to copy), it does not work
  5. Select link text and CTRL+C, to copy
  6. Paste (CTRL+V) the link provided by claude application 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

View original on GitHub ↗

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