Windows下OpenClaw-cn0.1.9中大模型配置后莫名奇妙的qwen-portal-auth


面板中配置的硅基流动的大模型,结果发送消息还是无法回复。查后台提示

Embedded agent failed before reply: No API key found for provider "anthropic". Auth store: D:\OpenClaw\.openclaw\agents\main\agent\auth-profiles.json (agentDir: D:\OpenClaw\.openclaw\agents\main\agent). Configure auth for this agent (openclaw-cn agents add <id>) or copy auth-profiles.json from the main agentDir.

查Openclaw.json其中有一段

"plugins": {
    "entries": {
      "openclaw-weixin": {
        "enabled": true
      },
      "qwen-portal-auth": {
        "enabled": true
      }
    },

也就是说这个镜像源默认qwen-portal-auth为AI,它是 OpenClaw 官方提供的 Qwen Portal 认证插件 如果需要,需要配置api-key,如果不需要,则禁用:找到 plugins.entries 部分,删除 qwen-portal-auth 条目

# 1. 禁用冲突插件
openclaw plugins disable qwen-portal-auth

# 2. 删除 qwen-portal-auth 相关配置
openclaw config delete plugins.entries.qwen-portal-auth

# 3. 清理模型缓存
openclaw models refresh

# 4. 重新配置硅基流动
openclaw config set models.providers.siliconflow.api "openai-completions"
openclaw config set models.providers.siliconflow.baseUrl "https://api.siliconflow.cn/v1"
openclaw config set models.providers.siliconflow.apiKey "你的API Key"

# 5. 添加模型
openclaw models add --provider siliconflow --id "Qwen/Qwen3-8B" --name "Qwen3-8B"

# 6. 设置默认模型
openclaw models default siliconflow/Qwen/Qwen3-8B

# 设置默认 Agent 的模型(使用新的配置路径)

openclaw config set agents.defaults.model.primary "siliconflow/Qwen/Qwen3-8B"

# 设置模型提供商
openclaw config set agents.defaults.model.provider "siliconflow"

# 设置具体的模型名称
openclaw config set agents.defaults.model.model "Qwen/Qwen3-8B"

# 7. 重启
openclaw gateway restart

声明:同行|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA协议进行授权

转载:转载请注明原文链接 - Windows下OpenClaw-cn0.1.9中大模型配置后莫名奇妙的qwen-portal-auth


Carpe Diem and Do what I like