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.
After the downloads above complete, the tools directory at ~/.openclaw/tools/clawface/ will contain:
runtime/ — sherpa-onnx TTS runtime (platform-specific binary + libs)models/ — TTS voice modelThe web assets are bundled in {baseDir}/dist/.
No further configuration is needed — serve.js finds the TTS runtime and models automatically.
Run this command:
node {baseDir}/bin/serve.js \
--dist {baseDir}/dist \
--tools-dir ~/.openclaw/tools/clawface \
--port 18794 \
--gateway-url "ws://127.0.0.1:${OPENCLAW_GATEWAY_PORT:-18789}" \
--gateway-token "$OPENCLAW_GATEWAY_TOKEN" \
--identity-file ~/.openclaw/identity/device.json
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.
/ws). The gateway token and device private key stay server-side — the browser only receives a proxy URL.--gateway-token and --identity-file arguments are used exclusively by serve.js to authenticate the upstream gateway connection.npm install required.Kill the node process to stop the server.
共 1 个版本