如何快速把Open WebUI配置为OpenClaw的前端IM通道

概述

官网说明

OpenClaw 配置

直接修改配置文件 .openclaw/openclaw.json 如下:
{
"gateway": {
"bind": "lan",
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}
或者
openclaw config set gateway.bind '"lan"' --json
openclaw config set gateway.http.endpoints.chatCompletions.enabled true --json
然后
openclaw gateway restart

使用 Docker 部署 Open WebUI

sudo docker run -d
-p 8080:8080
--add-host=host.docker.internal:host-gateway
-v open-webui:/app/backend/data
--name open-webui
--restart unless-stopped
ghcr.io/open-webui/open-webui:latest(latest为最新稳定版,main为最新测试版)

Open WebUI 配置

  • 连接配置,在第一个注册用户(管理员)的右上或左下图标菜单的 Admin Panel -> Settings -> Connections 中添加或编辑大模型相关信息
    Base URL: "http://host.docker.internal:18789/v1"
    Key: openclaw的"token"或“密码”
    Model ID: "openclaw/default"

  • 音频配置,在其它普通用户的右上或左下图标菜单的 Settings -> Audio 中添加或编辑大模型相关信息
    STT:不要选默认,选浏览器,中文是 zh
    TTS:不要选默认,选浏览器,精度不要选的过高

  • 完成配置后,可以开始试试语音聊天了。

posted @ 2026-04-14 19:34  engineer大叔  阅读(75)  评论(0)    收藏  举报