fix: bug: docker/agents/entrypoint.sh credential check looks for credentials.json but Claude writes .credentials.json — every boot logs a misleading WARNING (#673)
This commit is contained in:
parent
3f524ae06f
commit
8fe985ea51
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ log "Claude CLI: $(claude --version 2>&1 || true)"
|
|||
# auth method is active so operators can debug 401s.
|
||||
if [ -n "${ANTHROPIC_API_KEY:-}" ]; then
|
||||
log "Auth: ANTHROPIC_API_KEY is set — using API key (no OAuth rotation)"
|
||||
elif [ -f "${CLAUDE_CONFIG_DIR:-/home/agent/.claude}/credentials.json" ]; then
|
||||
elif [ -f "${CLAUDE_CONFIG_DIR:-/home/agent/.claude}/.credentials.json" ]; then
|
||||
log "Auth: OAuth credentials mounted from host (${CLAUDE_CONFIG_DIR:-~/.claude})"
|
||||
else
|
||||
log "WARNING: No ANTHROPIC_API_KEY and no OAuth credentials found."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue