setup-token
A Claude Code CLI flag, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Setup tokens can now carry any lifetime, but everything still hands over the 365-day maximum.
Not Anthropic's. This is the line from the earliest changelog entry here that named it, v2.1.234.
In the changelogs
6Releases whose published page names setup-token.
-
v2.1.288
Login now tells you when your sign-in worked but could not be saved
If sign-in succeeds in the browser but your credentials cannot be stored, login now shows a dedicated screen explaining what happened and what to do
found in this entry's text
-
v2.1.285
Admins can restrict sign-in providers with a new allowedProviders setting
A new
allowedProvidersmanaged setting can blockclaude auth loginandsetup-tokenwhen the policy disallows Anthropic's own sign-infound in this entry's text
-
v2.1.234
Setup-token lifetime is plumbed through but always 365 days
Setup tokens can now carry any lifetime, but everything still hands over the 365-day maximum.
found in this entry's text
-
v2.1.234
Setup-token login result carries the expiry
A successful setup-token login now also returns when that token expires.
found in this entry's text
-
v2.1.234
claude setup-tokenrejects extra argumentsclaude setup-tokennow errors on extra arguments instead of ignoring them.named in this entry, found in this entry's text
-
v2.1.84
Improved Remote Control Error Messages
found in this entry's text
First cited
2The earliest release whose published evidence quoted setup-token was v2.1.234, 17 Aug 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the CLI flag does. All CLI flags.