Claude setup-token is now only requesting user interface scope
Resolved 💬 3 comments Opened Feb 6, 2026 by geongeorge Closed Feb 10, 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?
Claude setup-token is now only requesting user interface scope? this is making it impossible to use it for openclaw.
<img width="1357" height="867" alt="Image" src="https://github.com/user-attachments/assets/a420c0fc-3c8e-4698-aeb6-4cbdffc7eadd" />
<img width="992" height="255" alt="Image" src="https://github.com/user-attachments/assets/f87e0595-154c-495e-b2b7-deb6587ceafe" />
We get this error:
Error: Your OAuth token is restricted to Claude Code and can't be used for external API calls.
What Should Happen?
I should be able to use the token to run my agent
Error Messages/Logs
Steps to Reproduce
- Run
claude setup-token - the token it returns is unusable now
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗