Authentication changedauthentication
Nearest release: v2.1.327, published 2 hours after 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 17 Nov 2026 18:13 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 17 Nov 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+12added
Lines−9removed
From line
229
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits39to this page, all time
#### After the login expires
The whole hunk
from line 229, old and new numbered
/
from line 229
229229
230230When 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`.
231231
232Run `/login` to renew. The warning is informational and never blocks a request: authentication keeps working until the login actually expires.
232Run `/login` to renew. The warning appears only when a claude.ai login is the active credential.
233233
234Once the stored login expires and can't be refreshed, each model request fails with [`Login expired · Please run /login`](https://code.claude.com/docs/en/errors#login-expired) until you sign in again.
234#### After the login expires
235235
236You can check for this state before a request fails: [`/status`](https://code.claude.com/docs/en/commands) shows a `Login` row reading `Expired — log in again`, plus the organization and email it has saved for the expired login. The row appears only when the saved claude.ai login is the active credential. The row requires Claude Code v2.1.210 or later.
236Once the stored login expires and can't be refreshed, run `/login` to sign in again. Until you do, requests either fail or use another credential you saved:
237237
238The warning appears only when a claude.ai login is the active credential, and not when a cloud provider, `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` supplies the credential.
238* **No other credential**: model requests fail with [`Login reached its time limit` or `Login expired`](https://code.claude.com/docs/en/errors#login-expired).
239* **Another credential**, such as an [`ant auth login` profile](#anthropic-profiles-and-federation-credentials): requests can use that credential instead, billed to its organization.
239240
240Renewing early matters most for sessions that run unattended. A [background session in agent view](https://code.claude.com/docs/en/agent-view.md) or a [Remote Control](https://code.claude.com/docs/en/remote-control.md) session that outlives the login stops making progress once the credential expires and can't recover until you sign in again.
241You can check for an expired login before a request fails: [`/status`](https://code.claude.com/docs/en/commands) shows a `Login` row reading `Expired — log in again`.
242
243Renewing early matters most for sessions that run unattended. A [Remote Control](https://code.claude.com/docs/en/remote-control.md) session that outlives the login disconnects until you sign in again. A [background session in agent view](https://code.claude.com/docs/en/agent-view.md) stops making progress if you have no other saved credential.
241244
242245### Authentication precedence
243246
No line in this hunk matches that.