下方文字广告:5元/月,日流量1000+,查看详情
立即入驻

openclaw更换模型

未分类2026-03-08发布 peturn
55 0 0

1. 获取 DeepSeek API Key

访问 DeepSeek 官网 注册并获取 API Key。https://platform.deepseek.com/api_keys
API Key 格式类似:`sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`

 

2. 配置 DeepSeek 提供商

执行以下命令(将 你的API_KEY 替换为实际的 API Key):

openclaw config set models.providers.deepseek ‘{
“baseUrl”: “https://api.deepseek.com/v1”,
“apiKey”: “你的API_KEY”,
“api”: “openai-completions”,
“models”: [
{
“id”: “deepseek-chat”,
“name”: “DeepSeek Chat (V3)”
},
{
“id”: “deepseek-reasoner”,
“name”: “DeepSeek Reasoner (R1)”
}
]
}’

 

3. 设置默认模型

openclaw config set agents.defaults.model.primary “deepseek/deepseek-chat”

 

4. 创建模型别名(可选)

openclaw models aliases add deepseek-v3 “deepseek/deepseek-chat”
openclaw models aliases add deepseek-r1 “deepseek/deepseek-reasoner”

5. 重启 Gateway 服务

openclaw gateway restart

等待 3-5 秒让服务完全启动。

 

6. 命令行测试

openclaw agent –session-id test –message “你好,你现在使用的是什么模型?”

 

7. 打开 Web 控制面板

openclaw dashboard

浏览器会自动打开控制面板

 

8. 查看配置状态

openclaw models status

© 版权声明

相关文章

重要提醒!重要提醒!重要提醒:请勿轻易相信各类网站的内容及广告!

暂无评论

none
暂无评论...