OpenClaw channel plugin for D-Chat / nMobile — decentralized end-to-end encrypted messaging over the NKN relay network.
- Direct messages (DM) with NKN addresses
- Topic-based group chat (NKN pub/sub)
- Private group messaging
- Media support — images, voice messages, and file transfers
- Images and files sent/received over IPFS with AES-128-GCM encryption
- Voice messages via inline AAC (D-Chat Desktop & nMobile compatible)
- Graceful fallback to URL text when IPFS upload fails
- Delivery receipts
- Multi-account support
- DM policy enforcement (pairing, allowlist, open, disabled)
- Full nMobile wire format compatibility
openclaw plugins install @zbruceli/openclaw-dchat
openclaw gateway restartAdd the D-Chat channel after installing:
# Interactive wizard
openclaw channels add
# Non-interactive
openclaw channels add --channel dchat --access-token <64-char-hex-seed>You'll need:
- NKN wallet seed — a 64-character hex string. Generate one in D-Chat Desktop (Settings > 1-click bot generation), or use
nkn-sdk, or reuse an existing seed. - DM policy — controls who can send direct messages:
pairing(default) — new senders must be approved via pairing codeallowlist— only explicitly allowed NKN addressesopen— accept DMs from anyonedisabled— no DMs
channels:
dchat:
enabled: true
seed: "your-64-char-hex-wallet-seed"
dmPolicy: pairing
allowFrom:
- "nkn-address-hex"With the default dmPolicy: pairing, new senders receive a pairing code that must be approved:
openclaw pairing list dchat
openclaw pairing approve dchat <CODE>openclaw channels status # check status
openclaw channels remove --channel dchat # remove channel
openclaw plugins uninstall openclaw-dchat # uninstall pluginopenclaw logs | grep -i dchatnpm install # install dependencies
npm test # run tests
npm run test:watch # watch modeUse the link workflow to avoid the publish/reinstall cycle:
openclaw plugins install -l /path/to/openclaw-dchat
openclaw gateway restart # after code changes, just restartopenclaw plugins uninstall openclaw-dchat
openclaw channels remove --channel dchat
openclaw plugins install @zbruceli/openclaw-dchat
openclaw gateway restartThe plugin connects to the NKN relay network as a MultiClient node, enabling peer-to-peer messaging without centralized servers. Messages use the same wire format as D-Chat Desktop and nMobile for full interop. Media (images, files) is encrypted with AES-128-GCM and transferred via IPFS; voice messages use inline AAC encoding.
MIT