[Bug]: 配置自定义模型提供商时,\.openclaw\agents\main\agent文件夹下面的auth-profiles没有同步添加信息
Author: laolaoruqinCreated Apr 2, 2026Updated Apr 3, 2026
Labelsbug
Summary
当配置第一个api提供商的时候能正常同步信息,配置2个以上自定义模型提供商时,.openclaw\agents\main\agent文件夹下面的auth-profiles没有同步添加,导致切换模型时提示Agent failed before reply: No API key found for provider
Steps to Reproduce
1.删除openclaw.json,配置第一个api,auth-profiles会同步添加 2.添加第二个api,auth-profiles没有同步添加,出现错误提示
,手动添加后,重启网关,第二个api的模型能正常对话
目前我配置的模型
,这里是auth-profile的信息
第二个模型是我和第一个模型对话配置完成的,重启后能正常对话,此前一直报错,第三个我配置完并没有同步添加到auth-profiles
Expected Behavior
正常添加第二个api,重启网关,选择第二个api能正常使用,第二个api模型可以进行对话
Actual Behavior
添加第二个api,重启网关选择第二个api模型对话时出现报错
Environment
Win11,v0.3.5
Logs or Screenshots
Pre-Submission Checklist
- I searched existing issues and did not find a duplicate.
- I can reproduce this issue on the latest main branch build.
Source: ValueCell-ai/ClawX