fix(web): point to claude setup-token for Anthropic OAuth tokens - #460
Open
gabriel-accetta wants to merge 1 commit into
Open
fix(web): point to claude setup-token for Anthropic OAuth tokens#460gabriel-accetta wants to merge 1 commit into
gabriel-accetta wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Bug fix (web/UX). Closes #459. Follow-up to #322.
What is the current behavior?
The Anthropic secret form says "Paste your API key or OAuth token from the Anthropic Console." Two different OAuth tokens share the
sk-ant-oatprefix, the one Claude Code rotates internally every few hours, and the long-lived one fromclaude setup-tokenand nothing distinguishes them. Pasting the former means 401s a few hours later, which is what #322 hit. The doc note promised there was never added (grep -rn "setup-token"→ no hits). The current copy also misattributes the OAuth token to the Console, which isn't where it comes from.What is the new behavior?
The helper text now names
claude setup-token, and when the entered value is detected as OAuth (detectAnthropicAuthMode(value) === "oauth") it warns that Claude Code's own token rotates every few hours and points at the long-lived one. Styling matches the existing Codex OAuth hint.Feel free to include screenshots if it includes visual changes.
Additional context
Screenshots of both states:

