OAuth token missing user:profile scope - /usage fails on Linux
Resolved 💬 3 comments Opened Feb 11, 2026 by hoagdoag Closed Feb 15, 2026
Description
The /usage command fails with a permission error on Linux. The OAuth flow does not request the user:profile scope, but /usage requires it.
Steps to Reproduce
- Install Claude Code 2.1.39 on Linux (Ubuntu 24.04)
- Authenticate with
claude(completes OAuth flow in browser) - Run
/usageinside a session
Expected Behavior
/usage displays usage data.
Actual Behavior
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_011CY2LhjcE9MA43E3asVXeo"}
Notes
- Same version (2.1.39) works fine on macOS — the macOS Keychain credential has the correct scopes
- Logging out and re-authenticating on Linux does not fix it — the new token still lacks the scope
- All other functionality works correctly; only
/usageis affected
Environment
- Claude Code: 2.1.39
- OS: Ubuntu 24.04 (GCP VM)
- Auth: OAuth (not API key)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗