Files
openclaw/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

57 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
read_when:
- 调试或配置 WebChat 访问
summary: local loopback WebChat 静态主机及 Gateway网关 WebSocket 在聊天 UI 中的使用
title: WebChat
x-i18n:
generated_at: "2026-02-01T21:44:15Z"
model: claude-opus-4-5
provider: pi
source_hash: b5ee2b462c8c979ac27f80dea0cf12cf62b3c799cf8fd0a7721901e26efeb1a0
source_path: web/webchat.md
workflow: 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.history``chat.send``chat.inject`
- `chat.inject` 将助手备注直接追加到对话记录中并广播到 UI不触发智能体运行
- 历史记录始终从 Gateway网关获取无本地文件监听
- 如果 Gateway网关不可达WebChat 为只读模式。
## 远程使用
- 远程模式通过 SSH/Tailscale 隧道传输 Gateway网关 WebSocket。
- 无需运行单独的 WebChat 服务器。
## 配置参考WebChat
完整配置:[配置](/gateway/configuration)
渠道选项:
- 没有专用的 `webchat.*` 配置块。WebChat 使用下方的 Gateway网关端点 + 认证设置。
相关全局选项:
- `gateway.port``gateway.bind`WebSocket 主机/端口。
- `gateway.auth.mode``gateway.auth.token``gateway.auth.password`WebSocket 认证。
- `gateway.remote.url``gateway.remote.token``gateway.remote.password`:远程 Gateway网关目标。
- `session.*`:会话存储和主键默认值。