Authentication changedauthentication
Nearest release: v2.1.329, published 4 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 19 Nov 2026 22:58 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 19 Nov 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+13added
Lines−1removed
From line
225
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits39to this page, all time
### Check when a stored login ends
The whole hunk
from line 225, old and new numbered
/
from line 225
225225
226226`apiKeyHelper`, `ANTHROPIC_API_KEY`, and `ANTHROPIC_AUTH_TOKEN` apply to the CLI and the surfaces that wrap it, including the VS Code extension, the Agent SDK, and GitHub Actions. Claude Desktop and cloud sessions do not call `apiKeyHelper` or read these environment variables: they use OAuth, except desktop sessions running a [third-party inference configuration](https://code.claude.com/docs/en/llm-gateway-connect.md#desktop-app), which authenticate with that configuration's credential.
227227
228### Check when a stored login ends
229
230To see when the claude.ai login you're using ends, run `claude auth status --text` in your shell. In Claude Code v2.1.318 or later, look for a line that starts with `Sign-in`:
231
232```text theme={null}
233Sign-in ends: between 2026-11-20 and 2026-11-23 (2026-11-23T17:04:11.000Z)
234```
235
236Before the earlier date, sign in again in the browser with `/login` or `claude auth login`. Using Claude Code doesn't extend the login. If the line says `any day now` or `may have ended`, sign in now. The line is absent for other credentials or when no date is known.
237
238When the later date is under 10 days away, a `claude -p` run with text output prints `Warning: this sign-in` on stderr, so sign in again before the earlier date.
239
228240### Renew an expiring login
229241
230When the login you created with `/login` is within three days of expiring, Claude Code shows a warning at startup: `Your login expires in 3 days · run /login to renew`.
242Starting on the earlier of your login's [two end dates](#check-when-a-stored-login-ends), Claude Code shows a warning at startup: `Your login expires in 3 days · run /login to renew`.
231243
232244Run `/login` to renew. The warning appears only when a claude.ai login is the active credential.
233245
No line in this hunk matches that.