Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Leftover OAuth scopes are cleared when you sign in with only an access token

With CLAUDE_CODE_OAUTH_TOKEN set and no refresh token, Claude Code now deletes any inherited CLAUDE_CODE_OAUTH_SCOPES

You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release
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.

Read from
Since it was published

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
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_OAUTH_TOKEN, on Claude Code GitHub Actions.
Anthropic's release notes agreeFixed a nested claude with its own token being refused by forceLoginOrgUUID: commands that don't get the session's token no longer get its…

See this entry in the whole of v2.1.327 →

Feedback