fix(deploy): use ANTHROPIC_API_KEY env var (openclaw reads this, not CLAUDE_API_KEY)

OpenClaw daemon checks ANTHROPIC_API_KEY env var on startup. We were passing
CLAUDE_API_KEY which openclaw ignores, so it fell back to auth-profiles.json
containing the raw Anthropic key, causing 401 from iConsulting LLM gateway.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-08 22:06:25 -07:00
parent de2d30fa6c
commit e905559c46
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export class AgentInstanceDeployService {
const envParts = [ const envParts = [
`-e OPENCLAW_GATEWAY_TOKEN=${token}`, `-e OPENCLAW_GATEWAY_TOKEN=${token}`,
`-e IT0_INSTANCE_ID=${instance.id}`, `-e IT0_INSTANCE_ID=${instance.id}`,
`-e CLAUDE_API_KEY=${effectiveApiKey}`, `-e ANTHROPIC_API_KEY=${effectiveApiKey}`,
`-e ANTHROPIC_BASE_URL=${this.llmGatewayUrl}`, `-e ANTHROPIC_BASE_URL=${this.llmGatewayUrl}`,
`-e IT0_AGENT_SERVICE_URL=${this.agentServicePublicUrl}`, `-e IT0_AGENT_SERVICE_URL=${this.agentServicePublicUrl}`,
]; ];