已經在環境變數設定
GOOGLE_API_KEY: 我的 Gemini API Key
OPENCLAW_AGENT_MODEL: google/gemini-3-flash
但重啟服務仍然無法載入
已經在環境變數設定
GOOGLE_API_KEY: 我的 Gemini API Key
OPENCLAW_AGENT_MODEL: google/gemini-3-flash
但重啟服務仍然無法載入
您好,可以參考這篇設定正確的環境變數
https://zeabur.com/zh-TW/blogs/openclaw-troubleshooting-on-zeabur#p4
可是還是沒用
2026-02-26T17:21:20.257Z [diagnostic] lane task error: lane=main durationMs=30 error="Error: No API key found for provider "anthropic". Auth store: /home/node/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /home/node/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir."
2026-02-26T17:21:20.258Z [diagnostic] lane task error: lane=session:agent:main:main durationMs=75 error="Error: No API key found for provider "anthropic". Auth store: /home/node/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /home/node/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir."
2026-02-26T17:21:20.259+00:00 Embedded agent failed before reply: No API key found for provider "anthropic". Auth store: /home/node/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /home/node/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir.
還是要找antropic的key
模型的切換要修改設定檔(/home/node/.openclaw/openclaw.jolson)或是從網頁UI的 Chat 下 /model 切換,或是指令
因為官方預設模型是 anthropic opus 所以會需要設定,但你可以切換模型
請問要怎麼改?有範例可參考嗎?
設定的方式可以參考 openclaw 的官方文件 google gemini api 的部分
https://docs.openclaw.ai/concepts/model-providers#google-gemini-api-key
設定檔中的預設模型設定範例如下, 就是增加一個 agent, 然後後面寫你要使用的模型
{
agents: { defaults: { model: { primary: "openai-codex/gpt-5.3-codex" } } },
}
也可以從網頁的 Chat 視窗打 /mode 切換
2.19舊版已可用,是用Chat 視窗打 /mode 切換,此單可結案,但升級3.2版有問題,另開一篇post。
New replies are disabled for resolved issues.