You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.318,
ImprovementsSection of the release
Unclear It is not clear when, or whether, Claude Code shows this warning in practice.
What
Some sign-ins to Claude Code have a fixed end date, and renewing them does not move that date. Claude Code now tells you about this before and after it happens:
A warning appears when your sign-in is about to end or may already have ended. It says: "Renewing it does not move those dates. Run claude auth login before then, or use claude setup-token for unattended jobs."
New error messages appear once the limit is reached, such as "Login reached its time limit · Please run /login". They say the login cannot be renewed and point to claude auth login.
For unattended jobs, such as scripts or CI pipelines (automated build systems), the messages point to claude setup-token together with the CLAUDE_CODE_OAUTH_TOKEN environment variable. An environment variable is a named value set outside Claude Code that it reads when it starts.
The sign-in's end date, credential_expires_at, is now included in data that Claude Code passes along, and a warning event is reported to Anthropic.
The finding that found the error messages showed only their text, so what exactly triggers each message was not traced.
Why
Long-running sessions and automated jobs get advance notice and a clear next step instead of a sudden, unexplained sign-in failure. If you run Claude Code unattended, a long-lived token from claude setup-token avoids this time limit.
Read from
Names in the bundleclaude setup-token
What the documentation says
claude setup-tokenAuthenticationmodified, medium confidence5. `CLAUDE_CODE_OAUTH_TOKEN` environment variable. A long-lived OAuth token generated by [`claude setup-token`](#generate-a-long-lived-token). Use this for CI pipelines and scripts where browser login isn't available. If you run `/login` w…see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear when, or whether, Claude Code shows this warning in practice.
Anthropic's documentation agreesclaude setup-token on Authentication
Anthropic's release notes agreeFixed tokens from setup-token being refused at start on machines with forceLoginOrgUUID, when the token belongs to a permitted organization