Skip to content

Document CLAUDE_CODE_OAUTH_TOKEN failure mode in setup docs - #54590

Merged
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-document-claude-code-oauth-token-failu
Aug 21, 2026
Merged

Document CLAUDE_CODE_OAUTH_TOKEN failure mode in setup docs#54590
pelikhan merged 2 commits into
mainfrom
copilot/deep-report-document-claude-code-oauth-token-failu

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Docs stated CLAUDE_CODE_OAUTH_TOKEN "is not supported and is ignored if set" but never described what a user actually sees when they try it — a Claude Code CLI user with this token from claude login had no way to recognize the symptom without debugging blind.

Changes

  • docs/src/content/docs/setup/quick-start.mdx: extended the existing note to state that when the token is set without ANTHROPIC_API_KEY/WIF, the run fails with a generic Claude CLI authentication error that never mentions the token itself.
  • docs/src/content/docs/setup/cli.md: added the same clarification inline after the existing "is not supported" statement.

Both point users to treat that unrelated auth failure as the signal to switch to ANTHROPIC_API_KEY or Anthropic WIF, rather than debugging the reported error at face value.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Document CLAUDE_CODE_OAUTH_TOKEN failure mode Document CLAUDE_CODE_OAUTH_TOKEN failure mode in setup docs Aug 21, 2026
Copilot AI requested a review from pelikhan August 21, 2026 18:38
@pelikhan
pelikhan marked this pull request as ready for review August 21, 2026 18:39
Copilot AI balanced review requested due to automatic review settings August 21, 2026 18:39
@pelikhan
pelikhan merged commit de55470 into main Aug 21, 2026
@pelikhan
pelikhan deleted the copilot/deep-report-document-claude-code-oauth-token-failu branch August 21, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents the failure mode when unsupported Claude OAuth tokens are used.

Changes:

  • Adds troubleshooting guidance to quick-start documentation.
  • Mirrors the guidance in the CLI reference.
Show a summary per file
File Description
docs/src/content/docs/setup/quick-start.mdx Expands the Claude authentication note.
docs/src/content/docs/setup/cli.md Adds unsupported-token failure guidance.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

**Options:** `--repo/-r`, `--value`, `--value-from-env`, `--api-url`

For Claude workflows, set `ANTHROPIC_API_KEY` or configure [Anthropic WIF](/gh-aw/reference/auth/#anthropic-workload-identity-federation-wif). `CLAUDE_CODE_OAUTH_TOKEN`, including a token from `claude login`, is not supported.
For Claude workflows, set `ANTHROPIC_API_KEY` or configure [Anthropic WIF](/gh-aw/reference/auth/#anthropic-workload-identity-federation-wif). `CLAUDE_CODE_OAUTH_TOKEN`, including a token from `claude login`, is not supported; it is silently ignored, so the run instead fails with an authentication error from the Claude CLI that never mentions the token, which is the signal to switch credentials.

:::note
Claude subscription OAuth tokens (`CLAUDE_CODE_OAUTH_TOKEN`) are not supported and are ignored if set. Use `ANTHROPIC_API_KEY` or [Anthropic WIF](/gh-aw/reference/auth/#anthropic-workload-identity-federation-wif).
Claude subscription OAuth tokens (`CLAUDE_CODE_OAUTH_TOKEN`) are not supported and are ignored if set. If it is the only credential configured, the workflow fails with an authentication error from the Claude CLI (for example, a missing/invalid API key error) rather than any message mentioning `CLAUDE_CODE_OAUTH_TOKEN` — treat that failure as a signal to switch to `ANTHROPIC_API_KEY` or [Anthropic WIF](/gh-aw/reference/auth/#anthropic-workload-identity-federation-wif).
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-report] Document CLAUDE_CODE_OAUTH_TOKEN failure mode, not just unsupported status

3 participants