Skip to content

Commit 4307766

Browse files
authored
fix: use ANTHROPIC_AUTH_TOKEN instead of ANTHROPIC_API_KEY to prevent login prompt (#2)
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.
1 parent a1331df commit 4307766

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/commands/start.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ function launchServer(
171171
env: {
172172
...cleanEnv,
173173
ANTHROPIC_BASE_URL: `http://localhost:${port}/api`,
174-
ANTHROPIC_API_KEY:
175-
'sk-ant-api03-brcc-proxy-00000000000000000000000000000000000000000000-00000000000000',
174+
ANTHROPIC_AUTH_TOKEN: 'x402-proxy-handles-auth',
176175
ANTHROPIC_DEFAULT_SONNET_MODEL: sonnetModel,
177176
ANTHROPIC_DEFAULT_OPUS_MODEL: opusModel,
178177
ANTHROPIC_DEFAULT_HAIKU_MODEL: haikuModel,

0 commit comments

Comments
 (0)