Skip to content

fix(compose): silence spurious ANTHROPIC_API_KEY warning on non-Claude runs#90

Merged
valITino merged 1 commit into
mainfrom
claude/charming-darwin-59atb2
Jun 12, 2026
Merged

fix(compose): silence spurious ANTHROPIC_API_KEY warning on non-Claude runs#90
valITino merged 1 commit into
mainfrom
claude/charming-darwin-59atb2

Conversation

@valITino

Copy link
Copy Markdown
Owner

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

…e runs

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
@valITino valITino merged commit e03cd8e into main Jun 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants