Switch to Claude Code OAuth token auth (Pro subscription) - #6
Merged
Merged
Conversation
The Anthropic Console account behind ANTHROPIC_API_KEY is out of credits and blocked on a payment-processing error, so drop that input from both workflows and rely solely on CLAUDE_CODE_OAUTH_TOKEN, which bills against the Claude.ai subscription's usage allowance instead of pay-per-token API credits.
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.
Summary
ANTHROPIC_API_KEYis out of credits and currently blocked from purchasing more (a payment-processing error on Anthropic's billing page).anthropic_api_keyandclaude_code_oauth_tokentogether, with no certainty which oneclaude-code-actionprioritizes. Droppedanthropic_api_keyfrom both so they rely solely onclaude_code_oauth_token, which authenticates against a Claude.ai subscription's usage allowance instead of pay-per-token API billing.Prerequisite (outside this PR)
This requires a
CLAUDE_CODE_OAUTH_TOKENrepo secret, generated by runningclaude setup-token(Claude Code CLI) while logged into a Pro/Max/Team/Enterprise Claude.ai account, then added under Settings → Secrets and variables → Actions.Test plan
CLAUDE_CODE_OAUTH_TOKENsecret@claudeon issue Build complete Market Data backend #2 and confirm it authenticates via the subscription and actually runsGenerated with Claude Code
Generated by Claude Code