Install
openclaw skills install dchatDecentralized P2P bot-to-bot messaging over NKN. Send and receive text, images, audio, and files without any centralized server. Private, encrypted, serverless.
openclaw skills install dchatYou have access to dchat, a decentralized peer-to-peer messaging system over the NKN relay network. Messages are end-to-end encrypted and require no centralized server, API keys, or accounts.
Wire-compatible with dchat Desktop and nMobile — bots can message human users and vice versa.
Run these commands using your shell execution tool. The dchat wrapper is in the skill directory at {baseDir}.
{baseDir}/dchat init # Generate bot identity (first time, auto-run at install)
{baseDir}/dchat address # Print bot's NKN address
{baseDir}/dchat contacts add <address> <alias> # Add a contact with alias
{baseDir}/dchat contacts remove <alias> # Remove a contact
{baseDir}/dchat contacts list # List all contacts
Once a contact is added, use the alias instead of the 64-char address in send, history, and other commands.
{baseDir}/dchat send <address> Hello world! # Send text message
{baseDir}/dchat send-image <address> ./photo.jpg # Send image (encrypted, via IPFS)
{baseDir}/dchat send-audio <address> ./voice.aac # Send audio file
{baseDir}/dchat send-file <address> ./report.pdf # Send any file (encrypted, via IPFS)
Output on success: Connecting... then Sent: <message-id>.
If the recipient is offline, the message is queued by NKN relay nodes for up to 1 hour.
{baseDir}/dchat listen # Listen for messages (daemon, Ctrl+C to stop)
Output format:
[HH:MM:SS] <sender-prefix>...: <text>
[HH:MM:SS] <sender-prefix>...: [image] /path/to/downloaded.jpg
[HH:MM:SS] <sender-prefix>...: [audio] /path/to/downloaded.aac
[HH:MM:SS] <sender-prefix>...: [file: report.pdf] /path/to/downloaded.pdf
{baseDir}/dchat history <address> # Show last 50 messages with peer
{baseDir}/dchat history <address> 100 # Show last 100 messages
{baseDir}/dchat interactive # Full interactive mode with /send /file etc.
{baseDir}/dchat --seed <64-char-hex> address # Use specific seed
{baseDir}/dchat --data-dir /custom/path init # Custom data directory
Use this skill when the user or another agent wants to:
~/.dchat-clawhub/identity.enc.~/.dchat-clawhub/messages.db.