OpenClaw/Clawbot配置硅基流动AI模型

📅 发布时间:2026/7/6 2:29:54 👁️ 浏览次数:
OpenClaw/Clawbot配置硅基流动AI模型
在OpenClaw/Clawbot开箱即用看这篇文章就够了中讲解了OpenClaw自带模型服务商的配置这些服务商的免费配额有限。本文以硅基流动为例介绍自定义服务商的配置方法硅基流动提供了一些免费模型认证送代金券可以用于所有模型消费门槛比较低。注册硅基流动账号https://www.siliconflow.cn/获取API 密钥将以下内容中的“你的API Key”替换为上图中获取到的密钥openclaw config set models.providers.siliconflow { baseUrl: https://api.siliconflow.cn/v1, apiKey: 你的API Key, api: openai-completions, models: [ { id: Qwen/Qwen3-8B, name: 通义千问 3 8B }, { id: Pro/deepseek-ai/DeepSeek-V3.2, name: DeepSeek-V3.2 } ] }models中可以配置多组模型这里为了演示配置了两组模型id在硅基流动模型广场获取name可以自定义。修改后复制到老薛主机云服务器OpenClaw版终端粘贴执行。设置默认主模型openclaw config set agents.defaults.model.primary siliconflow/Qwen/Qwen3-8B设置备用模型当主模型不可用时OpenClaw自动切换为备用模型openclaw config set agents.defaults.model.fallbacks [siliconflow/Pro/deepseek-ai/DeepSeek-V3.2]为添加的模型设置别名openclaw models aliases add 别名 模型id以本文演示的两个模型为例openclaw models aliases add qwen siliconflow/Qwen/Qwen3-8B openclaw models aliases add deepseek siliconflow/Pro/deepseek-ai/DeepSeek-V3.2重启OpenClaw网关openclaw gateway restart在聊天中使用以下命令可以切换模型/model 别名