From 7c7e01330e1effc858715a2d007e16d059fda0c0 Mon Sep 17 00:00:00 2001 From: Taras Spashchenko Date: Tue, 7 Apr 2026 17:55:00 +0200 Subject: [PATCH] fix(agents): remove ANTHROPIC_AUTH_TOKEN to ANTHROPIC_API_KEY workaround The workaround converting ANTHROPIC_AUTH_TOKEN=proxy-handled to ANTHROPIC_API_KEY=proxy-handled is no longer needed. Generated with AI Co-Authored-By: codemie-ai --- src/agents/plugins/claude/claude.plugin.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/agents/plugins/claude/claude.plugin.ts b/src/agents/plugins/claude/claude.plugin.ts index 56c08272..df644c8e 100644 --- a/src/agents/plugins/claude/claude.plugin.ts +++ b/src/agents/plugins/claude/claude.plugin.ts @@ -163,15 +163,6 @@ export const ClaudePluginMetadata: AgentMetadata = { env.ENABLE_TOOL_SEARCH = '0'; } - // WORKAROUND: ANTHROPIC_AUTH_TOKEN=proxy-handled causes Claude 2.1.85+ to attempt - // OAuth token validation against hardcoded claude.ai URLs (bypassing ANTHROPIC_BASE_URL), - // which hangs indefinitely in non-interactive (-p/--task) mode. - // Fix: switch to ANTHROPIC_API_KEY which uses direct API key auth (no OAuth flow). - if (env.ANTHROPIC_AUTH_TOKEN === 'proxy-handled') { - delete env.ANTHROPIC_AUTH_TOKEN; - env.ANTHROPIC_API_KEY = 'proxy-handled'; - } - // Statusline setup: when --status flag is passed, configure Claude Code // status bar with a multi-line display showing model, context, git, cost // https://code.claude.com/docs/en/statusline