Files
Moltbot/docs/zh-CN/web/webchat.md
Josh Palmer 5676a6b38d Docs: normalize zh-CN terminology + tone
What: switch to 你/你的 tone; standardize Skills/Gateway网关/local loopback/私信 wording
Why: align zh-CN docs with issue 6995 feedback + idiomatic tech style
Tests: pnpm docs:build
2026-02-02 16:38:25 +01:00

1.9 KiB
Raw Blame History

read_when, summary, title, x-i18n
read_when summary title x-i18n
调试或配置 WebChat 访问
local loopback WebChat 静态主机及 Gateway网关 WebSocket 在聊天 UI 中的使用 WebChat
generated_at model provider source_hash source_path workflow
2026-02-01T21:44:15Z claude-opus-4-5 pi b5ee2b462c8c979ac27f80dea0cf12cf62b3c799cf8fd0a7721901e26efeb1a0 web/webchat.md 15

WebChatGateway网关 WebSocket UI

状态macOS/iOS SwiftUI 聊天 UI 直接连接 Gateway网关 WebSocket。

简介

  • 一个 Gateway网关的原生聊天 UI无内嵌浏览器无本地静态服务器
  • 使用与其他渠道相同的会话和路由规则。
  • 确定性路由:回复始终返回到 WebChat。

快速开始

  1. 启动 Gateway网关。
  2. 打开 WebChat UImacOS/iOS 应用)或控制台 UI 的聊天标签页。
  3. 确保已配置 Gateway网关认证默认必需即使在 local loopback 上也是如此)。

工作原理(行为)

  • UI 连接到 Gateway网关 WebSocket使用 chat.historychat.sendchat.inject
  • chat.inject 将助手备注直接追加到对话记录中并广播到 UI不触发智能体运行
  • 历史记录始终从 Gateway网关获取无本地文件监听
  • 如果 Gateway网关不可达WebChat 为只读模式。

远程使用

  • 远程模式通过 SSH/Tailscale 隧道传输 Gateway网关 WebSocket。
  • 无需运行单独的 WebChat 服务器。

配置参考WebChat

完整配置:配置

渠道选项:

  • 没有专用的 webchat.* 配置块。WebChat 使用下方的 Gateway网关端点 + 认证设置。

相关全局选项:

  • gateway.portgateway.bindWebSocket 主机/端口。
  • gateway.auth.modegateway.auth.tokengateway.auth.passwordWebSocket 认证。
  • gateway.remote.urlgateway.remote.tokengateway.remote.password:远程 Gateway网关目标。
  • session.*:会话存储和主键默认值。