Provider 认证错误分析与解决方案
日期: 2026-04-28
错误路径:/home/cosmoslife/.openclaw/agents/main/agent/auth-profiles.json
一、错误原因
OpenClaw 配置中引用了scnet/xxx模型,但 auth-profiles.json 中没有对应的 API Key,导致运行时报错。
二、auth-profiles.json 详解
2.1 文件作用
auth-profiles.json 是 OpenClaw 的模型认证凭据存储文件,每个 agent 独立一份。存储内容:哪个 provider 用什么 key/token/OAuth 来调用 API。
文件路径:~/.openclaw/agents/<agentId>/agent/auth-profiles.json
2.2 文件格式(规范版本)
{