setup-token missing user:profile scope — Usage tab in /status broken
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?
Long-lived tokens created via claude setup-token don't include the user:profile scope. This causes the Usage tab in /status to fail with a permission error.
This is not about using the token for external tools — this is Claude Code's own /status feature being broken with its own token.
What Should Happen?
A token created by claude setup-token should be able to access all features within Claude Code itself, including the Usage tab in /status.
Error Messages/Logs
Error: Failed to load usage data:
{"type":"error","error":{"type":"permission_error","message":"OAuth token does not
meet scope requirement user:profile","details":{"error_visibility":"user_facing"}
},"request_id":"req_011CXvn96q1wAxo21NzFokzU"}
Steps to Reproduce
claude setup-token— create long-lived token- Set
CLAUDE_CODE_OAUTH_TOKENwith the generated token - Start Claude Code
/status→ switch to Usage tab- Permission error
Claude Model
Opus
Is this a regression?
Unknown
Claude Code Version
2.1.12 (Version was used to call claude setup-token)
2..1.37 (Version was used to call claude and use skill /status and check the Usage tab with Permission error.)
Platform
Anthropic API
Operating System
Linux (Debian, arm64)
Terminal/Shell
zsh (Oh My Zsh)
Additional Information
The token works fine for all other Claude Code features (chat, tools, etc.). Only the Usage tab is affected due to the missing user:profile scope.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗