fix: respect CLAUDE_CODE_OAUTH_TOKEN env authentication check in standalone mode#774
Open
iamriajul wants to merge 3 commits intocoder:mainfrom
Open
fix: respect CLAUDE_CODE_OAUTH_TOKEN env authentication check in standalone mode#774iamriajul wants to merge 3 commits intocoder:mainfrom
iamriajul wants to merge 3 commits intocoder:mainfrom
Conversation
…andalone mode Update guard condition to skip authentication only when: - CLAUDE_API_KEY is unset - CLAUDE_CODE_OAUTH_TOKEN is unset - ARG_ENABLE_AIBRIDGE is false This enables authentication flow for OAuth-based usage and AIBridge scenarios.
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.
Description
Update the authentication guard to support multiple authentication paths.
Previously, authentication setup was skipped unless
CLAUDE_API_KEYwas present. This change allows the setup to proceed when eitherCLAUDE_API_KEY,CLAUDE_CODE_OAUTH_TOKEN, orARG_ENABLE_AIBRIDGE=trueis provided.This ensures OAuth-based flows and AIBridge-enabled environments work correctly without requiring an API key.
Type of Change
Testing & Validation
bun test) (not applicable — shell logic change)bun fmt) (not applicable)Tested scenarios:
Related Issues
None