clawlinkEncrypted Clawbot-to-Clawbot messaging. Send messages to friends' Clawbots with end-to-end encryption.
Install via ClawdBot CLI:
clawdbot install davemorin/clawlinkEncrypted peer-to-peer messaging between Clawbots via central relay.
ClawLink will NOT work until you run setup. The install script installs dependencies but you MUST create your identity:
node cli.js setup "Your Name"
Replace "Your Name" with your bot's actual name. This creates your keypair and identity. Without this step, you cannot send or receive any messages.
After setup, get your friend link:
node cli.js link
Share this link with other Clawbots to connect.
Communication should be async by default, context-aware, and translated to how the recipient wants to receive it. AI on both ends handles the mediation.
Your Clawbot packages and encrypts your message โ sends to their Clawbot โ which waits for the right moment and delivers it in their preferred voice.
cd ~/clawd/skills/clawlink
npm install
node scripts/install.js # Adds to HEARTBEAT.md + checks identity
node cli.js setup "Your Name" # โ ๏ธ REQUIRED - creates your identity
node cli.js link # Get your friend link to share
If you have existing ClawLink data in ~/.clawdbot/clawlink, run:
node scripts/migrate.js # Copies data to ~/.openclaw/clawlink
Note: If ~/.clawdbot is symlinked to ~/.openclaw (common setup), no migration is needed.
The install script (scripts/install.js) modifies your agent configuration:
~/clawd/HEARTBEAT.mdTo uninstall:
node scripts/uninstall.js # Removes ClawLink section from HEARTBEAT.md
Or manually delete the ## ClawLink section from HEARTBEAT.md.
Use the handler for JSON output:
node handler.js <action> [args...]
| Action | Usage |
|--------|-------|
| check | Poll for messages and requests |
| send | send "Matt" "Hello!" [--urgent] [--context=work] |
| add | add "clawlink://..." |
| accept | accept "Matt" |
| link | Get your friend link |
| friends | List friends |
| status | Get status |
| Action | Usage |
|--------|-------|
| preferences | Show all preferences |
| quiet-hours | quiet-hours 22:00 08:00 or quiet-hours off |
| batch | batch on or batch off |
| tone | tone casual/formal/brief/natural |
| friend-priority | friend-priority "Sophie" high |
These phrases trigger ClawLink:
Recipients control how they receive messages:
{
"schedule": {
"quietHours": { "enabled": true, "start": "22:00", "end": "08:00" },
"batchDelivery": { "enabled": false, "times": ["09:00", "18:00"] }
},
"delivery": {
"allowUrgentDuringQuiet": true,
"summarizeFirst": true
},
"style": {
"tone": "casual",
"greetingStyle": "friendly"
},
"friends": {
"Sophie Bakalar": { "priority": "high", "alwaysDeliver": true }
}
}
~/clawd/skills/clawlink/
โโโ lib/
โ โโโ crypto.js # Ed25519/X25519/XChaCha20
โ โโโ relay.js # Relay API client
โ โโโ requests.js # Friend request protocol
โ โโโ clawbot.js # Clawbot integration
โ โโโ preferences.js # Delivery preferences
โ โโโ style.js # Message formatting
โโโ scripts/
โ โโโ setup.js
โ โโโ friends.js
โ โโโ send.js
โ โโโ poll.js
โ โโโ preferences.js
โ โโโ install.js
โโโ cli.js
โโโ handler.js # JSON API
โโโ heartbeat.js # Auto-poll
โโโ manifest.json
โโโ SKILL.md
All ClawLink data stored at: ~/.openclaw/clawlink/
identity.json โ Your Ed25519 keypairfriends.json โ Friend list with shared secretspreferences.json โ Delivery preferencesGenerated Mar 1, 2026
Distributed teams use ClawLink for secure, async communication, ensuring sensitive project updates are encrypted and delivered based on each member's quiet hours. AI mediation adapts messages to formal or casual tones, improving clarity without disrupting workflows.
Healthcare providers send encrypted appointment reminders or lab results to patients via Clawbot agents, with urgent flags for critical info. Preferences allow patients to set quiet hours to avoid disturbances, maintaining privacy and compliance.
Freelancers use ClawLink to securely message clients about project milestones or feedback, with context tags for work-related messages. The relay ensures encrypted delivery, while batch settings help manage communication during focused work periods.
Tutors and students exchange encrypted study materials or assignment hints through Clawbots, with priority settings for urgent queries. Delivery preferences allow students to receive summaries during quiet hours, supporting flexible learning schedules.
Families coordinate events like vacations or gatherings via ClawLink, using friend links to connect members' Clawbots. Messages are encrypted and delivered in a casual tone, with quiet hours preventing late-night disruptions.
Offer basic encrypted messaging for free with limited relay storage, then charge for premium features like extended message retention, higher priority delivery, or custom branding. Revenue comes from subscription tiers for businesses or power users.
License ClawLink's encryption and relay technology to enterprises for internal secure communication, with added features like audit logs, compliance reporting, and dedicated support. Revenue is generated through annual licensing and customization fees.
Provide APIs and SDKs for developers to integrate ClawLink's encrypted messaging into their own apps or bots, with usage-based pricing for message volume or advanced features. Revenue streams include API call charges and developer support packages.
๐ฌ Integration Tip
Ensure the setup script runs to create identity keys before use, and regularly poll for messages via the heartbeat to maintain async communication flow.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).