fix: use ANTHROPIC_AUTH_TOKEN to prevent login prompt#2
Merged
1bcMax merged 1 commit intoBlockRunAI:mainfrom Mar 26, 2026
Merged
fix: use ANTHROPIC_AUTH_TOKEN to prevent login prompt#21bcMax merged 1 commit intoBlockRunAI:mainfrom
1bcMax merged 1 commit intoBlockRunAI:mainfrom
Conversation
… login prompt Claude Code checks ANTHROPIC_AUTH_TOKEN to determine if the user is authenticated. Previously we were setting ANTHROPIC_API_KEY which Claude Code ignores, causing it to show a login prompt even though the proxy was running correctly. Now setting ANTHROPIC_AUTH_TOKEN to a placeholder value since the proxy handles authentication via x402/wallet signature.
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_KEYwithANTHROPIC_AUTH_TOKENwhen spawning Claude Code instart.tsANTHROPIC_AUTH_TOKENto determine if the user is authenticated, notANTHROPIC_API_KEYProblem
Running
brcc start --model <model>would spawn Claude Code but it would prompt for login, even though:This happened because the previous code set
ANTHROPIC_API_KEYwhich Claude Code ignores for auth detection.Fix
Set
ANTHROPIC_AUTH_TOKENto a placeholder value (x402-proxy-handles-auth) since the proxy handles real authentication via x402/wallet signature:Test plan
brcc start --model nvidia/nemotron-ultra-253b