What
If CLAUDE_CODE_OAUTH_TOKEN is set without a refresh token, Claude Code now deletes any CLAUDE_CODE_OAUTH_SCOPES value it inherited. CLAUDE_CODE_OAUTH_SCOPES lists the permissions a sign-in token was issued with. The check ignores letter case.
Why
Scopes left over from another setup are no longer applied to a bare access token.
Names in the bundleCLAUDE_CODE_OAUTH_TOKENCLAUDE_CODE_OAUTH_SCOPES
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up CLAUDE_CODE_OAUTH_TOKEN, on Claude Code GitHub Actions.
By default, Claude Code saves the credential as a repository secret, named `ANTHROPIC_API_KEY` for an API key or `CLAUDE_CODE_OAUTH_TOKEN` for a subscription token.github-actions see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up CLAUDE_CODE_OAUTH_TOKEN, on Claude Code GitHub Actions.
Anthropic's release notes agree
Fixed a nested claude with its own token being refused by forceLoginOrgUUID: commands that don't get the session's token no longer get its…