Credential Access
High
- Category
- Privilege Escalation
- Content
- User runs `claude setup-token` in terminal to generate a `sk-ant-oat01-...` token - Pastes token into UI - Validated by `validateAnthropicSetupToken()`, stored via `buildTokenProfileId()` + `upsertAuthProfile()` - **Auto-detect button**: Reads existing `accessToken` from `~/.claude/.credentials.json` (under `claudeAiOauth`) and stores it via `auth.login.anthropic-auto` RPC - **⚠️ Important**: Anthropic has blocked some subscription usage outside Claude Code. The docs warn: *"This credential is only authorized for use with Claude Code."* Setup-token support is "technical compatibility only" with policy risk. If you get a "not authorized" error, an API key is required. ### API Keys (all providers)
- Confidence
- 91% confidence
- Finding
- credentials.json
