setup-token missing user:profile scope — Usage tab in /status broken

Resolved 💬 3 comments Opened Feb 8, 2026 by jasjisdo Closed Feb 8, 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?

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

  1. claude setup-token — create long-lived token
  2. Set CLAUDE_CODE_OAUTH_TOKEN with the generated token
  3. Start Claude Code
  4. /status → switch to Usage tab
  5. 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.

View original on GitHub ↗

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