{"name":"setup-token","slug":"setup-token","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Setup tokens can now carry any lifetime, but everything still hands over the 365-day maximum.","description_source":"entry","described_by":{"version":"2.1.234","anchor":"setup-token-lifetime-is-plumbed-through-but-always-365-days"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.234","released_at":"2026-08-17 18:19:13","spans":2}},"aliases":[],"entries":[{"version":"2.1.288","anchor":"login-shows-a-dedicated-screen-when-credentials-cannot-be-sa","heading":"Login now tells you when your sign-in worked but could not be saved","line":"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","released_at":"2026-10-02 18:30:40","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"allowedproviders-policy-enforced-on-login-and-setup-token","heading":"Admins can restrict sign-in providers with a new allowedProviders setting","line":"A new `allowedProviders` managed setting can block `claude auth login` and `setup-token` when the policy disallows Anthropic's own sign-in","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.234","anchor":"setup-token-lifetime-is-plumbed-through-but-always-365-days","heading":"Setup-token lifetime is plumbed through but always 365 days","line":"Setup tokens can now carry any lifetime, but everything still hands over the 365-day maximum.","released_at":"2026-08-17 18:19:13","reason":"found in this entry's text"},{"version":"2.1.234","anchor":"setup-token-login-result-carries-the-expiry","heading":"Setup-token login result carries the expiry","line":"A successful setup-token login now also returns when that token expires.","released_at":"2026-08-17 18:19:13","reason":"found in this entry's text"},{"version":"2.1.234","anchor":"claude-setup-token-rejects-extra-arguments","heading":"claude setup-token rejects extra arguments","line":"`claude setup-token` now errors on extra arguments instead of ignoring them.","released_at":"2026-08-17 18:19:13","reason":"named in this entry, found in this entry's text"},{"version":"2.1.84","anchor":"improved-remote-control-error-messages","heading":"Improved Remote Control Error Messages","line":null,"released_at":"2026-03-25 23:50:13","reason":"found in this entry's text"}],"entries_total":6,"docs":[{"source":"claude-code","path":"admin-setup","title":"Set up Claude Code for your organization","documented":false},{"source":"claude-code","path":"agent-sdk\/claude-code-features","title":"Use Claude Code features in the SDK","documented":false},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"authentication","title":"Authentication","documented":false},{"source":"claude-code","path":"chrome","title":"Use Claude Code with Chrome","documented":false},{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":false},{"source":"claude-code","path":"devcontainer","title":"Development containers","documented":false},{"source":"claude-code","path":"errors","title":"Error reference","documented":false},{"source":"claude-code","path":"github-actions","title":"Claude Code GitHub Actions","documented":false},{"source":"claude-code","path":"mcp","title":"Connect Claude Code to tools via MCP","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/setup-token","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}