Clawface — 3D Avatar Chat
A self-contained web UI with a 3D avatar, chat, and TTS voice. You do NOT need a browser — you start an HTTP server and give the user a URL to open in their own browser.
Install
After the downloads above complete, the tools directory at ~/.openclaw/tools/clawface/ will contain:
- -
runtime/ — sherpa-onnx TTS runtime (platform-specific binary + libs) - INLINECODE2 — TTS voice model
The web assets are bundled in {baseDir}/dist/.
No further configuration is needed — serve.js finds the TTS runtime and models automatically.
How to start
Run this command:
CODEBLOCK0
The server prints a URL like http://localhost:18794 to stdout.
Tell the user: "Avatar ready at http://localhost:18794" — they open it in their browser.
Security
- - Credentials never reach the browser. The server authenticates to the gateway via a WebSocket proxy (
/ws). The gateway token and device private key stay server-side — the browser only receives a proxy URL. - The
--gateway-token and --identity-file arguments are used exclusively by serve.js to authenticate the upstream gateway connection.
Important
- - Do NOT try to open a browser yourself. Just start the server and return the URL.
- The server is zero-dependency Node.js — no
npm install required. - TTS is built in — the server calls sherpa-onnx directly, no separate TTS skill needed.
Stopping
Kill the node process to stop the server.
Clawface — 3D 虚拟形象聊天
一个包含3D虚拟形象、聊天和TTS语音功能的独立Web界面。你不需要浏览器——只需启动一个HTTP服务器,然后给用户一个URL,让他们在自己的浏览器中打开。
安装
完成上述下载后,~/.openclaw/tools/clawface/ 目录下的 tools 目录将包含:
- - runtime/ — sherpa-onnx TTS运行时(特定平台的二进制文件+库文件)
- models/ — TTS语音模型
Web资源打包在 {baseDir}/dist/ 中。
无需进一步配置——serve.js会自动找到TTS运行时和模型。
如何启动
运行以下命令:
bash
node {baseDir}/bin/serve.js \
--dist {baseDir}/dist \
--tools-dir ~/.openclaw/tools/clawface \
--port 18794 \
--gateway-url ws://127.0.0.1:${OPENCLAWGATEWAYPORT:-18789} \
--gateway-token $OPENCLAWGATEWAYTOKEN \
--identity-file ~/.openclaw/identity/device.json
服务器会在标准输出中打印一个类似 http://localhost:18794 的URL。
告诉用户:虚拟形象已就绪,访问地址为 http://localhost:18794——让他们在浏览器中打开。
安全性
- - 凭据永远不会到达浏览器。 服务器通过WebSocket代理(/ws)向网关进行身份验证。网关令牌和设备私钥保留在服务器端——浏览器只接收一个代理URL。
- --gateway-token 和 --identity-file 参数仅由serve.js用于验证上游网关连接。
重要提示
- - 不要尝试自己打开浏览器。只需启动服务器并返回URL即可。
- 服务器是零依赖的Node.js——无需执行 npm install。
- TTS功能已内置——服务器直接调用sherpa-onnx,无需单独的TTS技能。
停止
终止 node 进程即可停止服务器。