Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.234 ·

claude setup-token rejects extra arguments

claude setup-token now errors on extra arguments instead of ignoring them.

You'll notice Improvements
JSON All of v2.1.234
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.234,
ImprovementsSection of the release
What

The command now errors on excess arguments instead of silently ignoring them.

Usage
claude setup-token
Evidence

Set up a long-lived authentication token (requires Claude subscription)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundleclaude setup-token
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Test self-hosted environments end to end touched a line naming claude setup-token after this was published. There is no long-lived CI token for this today. The scope that grants cloud-session control, `user:sessions:claude_code`, is capped server-side at 30 days, so `claude setup-token`, which mints a one-year inference-only token, doesn't cover… self-hosted-environments-testing see the edit
Confirmed since Anthropic's documentation has since written up claude setup-token, on CLI reference. | `claude setup-token` | Generate a long-lived OAuth token for CI and scripts. Prints the token to the terminal without saving it. Requires a Claude subscription. See [Generate a long-lived token](/docs/en/authentication#generate-a-long-li… cli-reference see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up claude setup-token, on CLI reference.
Anthropic's release notes agreeclaude setup-token now rejects unexpected extra arguments instead of silently ignoring them

See this entry in the whole of v2.1.234 →

Feedback