Make ANTHROPIC_API_KEY optional in docker-compose
When unset, Claude Code falls back to OAuth credentials from `claude login`, allowing agents to run on a Max subscription instead of prepaid API credits. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,8 +19,9 @@ services:
|
|||||||
# Bind to localhost only — not exposed on all interfaces.
|
# Bind to localhost only — not exposed on all interfaces.
|
||||||
- "127.0.0.1:3001:3001"
|
- "127.0.0.1:3001:3001"
|
||||||
environment:
|
environment:
|
||||||
# Required: Anthropic API key for Claude Code agents
|
# Optional: Anthropic API key. If unset, Claude Code falls back to
|
||||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:?Set ANTHROPIC_API_KEY}
|
# OAuth credentials from `claude login` (e.g. Max subscription).
|
||||||
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
||||||
# Required: git identity for agent commits
|
# Required: git identity for agent commits
|
||||||
- GIT_USER_NAME=${GIT_USER_NAME:?Set GIT_USER_NAME}
|
- GIT_USER_NAME=${GIT_USER_NAME:?Set GIT_USER_NAME}
|
||||||
- GIT_USER_EMAIL=${GIT_USER_EMAIL:?Set GIT_USER_EMAIL}
|
- GIT_USER_EMAIL=${GIT_USER_EMAIL:?Set GIT_USER_EMAIL}
|
||||||
|
|||||||
Reference in New Issue
Block a user