⚠️ Agent failed before reply: All models failed (2): volcengine-plan/ark-code-la...

2026年03月20日 14:37 状态: processing

🚨 错误信息

⚠️ 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-latestanthropic/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_KEY

    2. 为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查看模型调用日志,确认无密钥错误。