From 177d0a9d447b25a719d8e92cb2fce3b17b74fb0c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 08:55:54 +0000 Subject: [PATCH] fix(compose): silence spurious ANTHROPIC_API_KEY warning on non-Claude runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker Compose interpolates every ${VAR} in the file regardless of which profiles are active, so the claude-code service's bare ${ANTHROPIC_API_KEY} emitted 'variable is not set. Defaulting to a blank string' on every compose command — including DeepSeek-only setups where the key is intentionally absent. Give it an empty default (${ANTHROPIC_API_KEY:-}), matching how the deepseek service already handles DEEPSEEK_API_KEY. Behavior is unchanged: compose substituted a blank string before too; setup.sh still warns when the claude-code profile is chosen without a key. https://claude.ai/code/session_01PS4DdGFwv6EAZFwNWVKsHB --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4d4bd28..762e9cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -339,7 +339,10 @@ services: stdin_open: true tty: true environment: - ANTHROPIC_API_KEY: "${ANTHROPIC_API_KEY}" + # Empty default: Compose interpolates the whole file even for inactive + # profiles, so a bare ${ANTHROPIC_API_KEY} warns on every compose command + # (e.g. DeepSeek-only runs). setup.sh surfaces a missing key at summary. + ANTHROPIC_API_KEY: "${ANTHROPIC_API_KEY:-}" # Bypass egress proxies (e.g. GitHub Codespaces) for internal Docker traffic no_proxy: "mcp-gateway,kali-mcp,wire-mcp,screenshot-mcp,hexstrike-ai,hexstrike-bridge-mcp,boaz-mcp,localhost,127.0.0.1" NO_PROXY: "mcp-gateway,kali-mcp,wire-mcp,screenshot-mcp,hexstrike-ai,hexstrike-bridge-mcp,boaz-mcp,localhost,127.0.0.1"