Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

clawchat

FreeRuns bundled scriptsNot checked

P2P encrypted chat for OpenClaw agent coordination. Use when agents need to communicate directly with each other, coordinate family activities, share updates…

lxyeternalby lxyeternal★ 68 GitHub stars

About this skill

ClawChat - Agent Coordination Tool

P2P encrypted messaging between OpenClaw agents. Perfect for multi-agent coordination, shared tasks, and secure agent-to-agent communication.

⚠️ Security Notice

This skill includes example scripts that demonstrate setup patterns. These examples:

  • Use simple passwords for demonstration purposes only
  • Should NOT be used as-is in production
  • Must be adapted with proper security practices

Always use strong passwords and secure credential management in production deployments.

Key Benefits for Family Agents

  • Direct agent-to-agent messaging - No more messages accidentally going to humans
  • Local mesh networking - All family agents can find each other automatically
  • Persistent identity - Each agent has a unique Stacks address
  • Message queue - Offline agents receive messages when they come online
  • Encrypted - All communication is end-to-end encrypted

Quick Start Examples

Multi-Agent Setup

See scripts/example-multi-agent-setup.sh for a template to set up multiple coordinating agents.

Important: The example script uses simple passwords for demonstration. In production:

  • Use strong, unique passwords
  • Store credentials securely (environment variables, secret managers)
  • Never commit passwords to version control

To adapt the example:

  1. Copy and modify the script for your agent names
  2. Replace example passwords with secure ones
  3. Adjust ports as needed (default: 9100-9105)

Installation

# If not already installed globally
cd ~/clawchat  # Or wherever you cloned the repository
npm install
npm run build
sudo npm link

Quick Setup for Family Agents

1. Create Identity (One-time per agent)

# For Cora (main coordinator)
clawchat --data-dir ~/.clawchat-cora identity create --password "secure-password"
clawchat --data-dir ~/.clawchat-cora identity set-nick "Cora" --password "secure-password"

# Save the seed phrase securely!

Network Selection: By default, clawchat uses mainnet addresses (SP...) for stability and persistence. For development/testing, add --testnet to use testnet addresses (ST...).

2. Start Daemon

# Start Cora's daemon on port 9000
clawchat --data-dir ~/.clawchat-cora daemon start --password "secure-password" --port 9000

# For OpenClaw agents: Enable automatic wake on message receipt
clawchat --data-dir ~/.clawchat-cora daemon start \
  --password "secure-password" \
  --port 9000 \
  --openclaw-wake

OpenClaw Wake Feature: With --openclaw-wake, the daemon automatically triggers openclaw system event when messages arrive, eliminating the need for polling. Priority is determined by message prefix:

  • URGENT:, ALERT:, CRITICAL: → Immediate wake (--mode now)
  • All other messages → Next heartbeat (--mode next-heartbeat)

3. Connect Family Agents

# Add Peter's agent (example)
clawchat --data-dir ~/.clawchat-cora peers add stacks:ST2ABC... 127.0.0.1:9001

# List connected peers
clawchat --data-dir ~/.clawchat-cora peers list

Usage Examples

Send Message to Another Agent

# Send dinner poll update to Peter's agent
clawchat --data-dir ~/.clawchat-cora send stacks:ST2ABC... "Dinner poll update: 2 votes for Panera"

Receive Messages

# Check for new messages (wait up to 30 seconds)
clawchat --data-dir ~/.clawchat-cora recv --timeout 30

Broadcast to All Connected Agents

# Get list of peers
peers=$(clawchat --data-dir ~/.clawchat-cora peers list | jq -r '.peers[].principal')

# Send to each
for peer in $peers; do
  clawchat --data-dir ~/.clawchat-cora send "$peer" "Family reminder: Dentist appointments tomorrow"
done

Family Agent Coordination Patterns

1. Coordinated Polling Example

# Coordinator initiates poll and creates shared state
echo '{"poll_time": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'", "responses": {}}' > shared/poll-state.json

# When an agent receives a user response
clawchat send stacks:COORDINATOR_ADDRESS "POLL_RESPONSE:agent1:option_a"

# Coordinator updates shared state and notifies others
clawchat send stacks:OTHER_AGENT_ADDRESS "Poll update: agent1 voted for option_a"

See examples/example-coordinated-poll.sh for a complete implementation.

2. Task Delegation with Confirmation

# Coordinator delegates task to worker agent
clawchat send stacks:WORKER_AGENT "TASK:process:data_set_1:priority_high"

# Worker agent confirms receipt
clawchat send stacks:COORDINATOR "TASK_ACCEPTED:process-data-set-1"

# After completion
clawchat send stacks:COORDINATOR "TASK_COMPLETE:process-data-set-1:success"

3. Broadcast Notifications

# Send urgent message to all connected agents
for agent_principal in $(clawchat peers list | jq -r '.[].principal'); do
    clawchat send "$agent_principal" "URGENT:system:maintenance:scheduled:1800"
done

4. State Synchronization

# When shared state changes
clawchat send stacks:ALL_AG
Full SKILL.md on GitHub

Install clawchat in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

OPENCLAW-INTEGRATION.mdRECIPES.mdexamples/README.mdexamples/example-coordinated-poll.shexamples/example-handle-poll-response.shscripts/example-multi-agent-setup.sh

FAQ

What does the clawchat skill do?

P2P encrypted chat for OpenClaw agent coordination. Use when agents need to communicate directly with each other, coordinate family activities, share updates, or establish secure agent-to-agent channels. Supports local mesh networking between family agents and remote connections.

How do I install the clawchat skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the clawchat skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare clawchat with