⚠️ Agent failed before reply: All models failed (2): volcengine-plan/ark-code-la...
🚨 错误信息
⚠️ Agent failed before reply: All models failed (2): volcengine-plan/ark-code-latest: No API key found for provider "volcengine-plan". Auth store: /root/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /root/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir. (auth) | anthropic/claude-opus-4-5: No API key found for provider "anthropic". Auth store: /root/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /root/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir. (auth).
Logs: openclaw logs --follow
🤖 AI解决方案
报错分析报告
1.错误翻译
原文:No API key found for provider "volcengine-plan".
译文:未找到提供商"volcengine-plan"的API密钥。原文:No API key found for provider "anthropic".
译文:未找到提供商"anthropic"的API密钥。
2. 原因分析
volcengine-plan/ark-code-latest和anthropic/claude-opus-4-5模型时,未配置对应提供商的API密钥。/root/.openclaw/agents/main/agent/auth-profiles.json中缺失两个提供商的密钥条目。3.解决方案
bash
1. 为volcengine-plan添加API密钥(替换为实际密钥)
openclaw agents add volcengine-plan --api-key YOUR_VOLCENGINE_API_KEY2. 为anthropic添加API密钥(替换为实际密钥)
openclaw agents add anthropic --api-key YOUR_ANTHROPIC_API_KEY备选:若主agentDir有配置,直接复制认证文件
cp /path/to/main/agentDir/auth-profiles.json /root/.openclaw/agents/main/agent/
4.️ 预防措施
openclaw agents list确认认证状态,缺失则提前配置密钥。auth-profiles.json,避免配置丢失;推荐用openclaw agents export导出认证信息。---
修复后验证:执行openclaw logs --follow查看模型调用日志,确认无密钥错误。