openclaw配置以后,GUI聊天界面不管说什么话都会出现以下错误:

2026-0*-**T13:**:*6.***+0:00 Embedded agent failed before reply: No API key found for provider “vercel-ai-gateway”. Auth store: /Users/*****/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /Users/***/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir. 2026-0**-***T1*:*6:37.*83+0:00 [diagnostic] lane task error: lane=main durationMs=2 error=”Error: No API key found for provider “vercel-ai-gateway”. Auth store: /Users/*****/.openclaw/agents/main/agent/auth-profiles.json (agentDir: /Users/*****/.openclaw/agents/main/agent). Configure auth for this agent (openclaw agents add <id>) or copy auth-profiles.json from the main agentDir.”

翻译以后报错信息就是:
嵌入式代理在回复前失败:未找到提供者“vercel-ai-gateway”的API密钥。身份验证存储位置:[路径过滤]。(代理目录:[路径过滤])。请为此代理配置身份验证(运行相应命令)或从主代理目录复制配置文件。

[诊断信息] 通道任务错误:通道=主通道 持续时间=2毫秒 错误=”错误:未找到提供者“vercel-ai-gateway”的API密钥。身份验证存储位置:[路径过滤]。(代理目录:[路径过滤])。

请为此代理配置身份验证(运行相应命令)或从主代理目录复制配置文件。”

vercel AI gateway

说白了这个问题报错还是整个openclaw的API配置不对,大概率问题出现的原因是在model/auth provider界面下错误选择了vercel AI gateway而不是你自己的模型。,而没有给这个AI gateway切换程序配置他的专属API。
如果仅仅是配置自定义模型的API,比如说我就用通义千问或者智谱清言提供的大模型API,那么就不需要配置复杂的vercel-ai-gateway切换过程。
此时报错No API key found for provider “vercel-ai-gateway”,建议重新配置整个openclaw(使用openclaw onboard命令,根据引导一步一步重来,不要选择自己不使用的API)
或者进入到目录.openclaw文件夹——openclaw.json 文件进行手动配置。(但是这个手动配置对小白要求比较高,建议还是在命令行下使用openclaw onboard 命令重置进行配置。)
重新配置要在第二步config handling中选择reset。
然后在model/auth provider界面的时候注意,不要选择vercel AI gateway,选择其他你使用的API进行配置。
ps:如果你希望使用vercel-ai-gateway自动切换,那你需要先到vercel官网(AI Gateway)上点击获取API密钥,申请相关的API, 再进行openclaw配置。

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注