clawlink
Encrypted Clawbot-to-Clawbot messaging. Send messages to friends' Clawbots with end-to-end encryption.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- clawlink
- triggers
- [ "clawlink", "friend link", "add friend", "send message to", "tell [name] that", "message from", "accept friend request", "clawlink preferences", "quiet hours" ]
- description
- Encrypted Clawbot-to-Clawbot messaging. Send messages to friends' Clawbots with end-to-end encryption.
02 资源文件 29
- 参考文档_meta.json449 B
- 脚本cli.js4.4 KB
- 脚本handler.js5.3 KB
- 脚本heartbeat.js3.0 KB
- 参考文档INVITE_SPEC.md3.8 KB
- 脚本lib/clawbot.js7.2 KB
- 脚本lib/crypto.js3.2 KB
- 脚本lib/invites.js12.4 KB
- 脚本lib/preferences.js7.2 KB
- 脚本lib/relay.js3.9 KB
- 脚本lib/requests.js9.9 KB
- 脚本lib/style.js5.1 KB
- 参考文档manifest.json759 B
- 参考文档package-lock.json933 B
- 参考文档package.json424 B
- 脚本scripts/friends.js5.5 KB
- 脚本scripts/install.js1.6 KB
- 脚本scripts/poll.js3.8 KB
- 脚本scripts/preferences.js5.4 KB
- 脚本scripts/send.js3.3 KB
- 脚本scripts/setup.js3.5 KB
- 脚本scripts/test-friend-request.js2.5 KB
- 脚本scripts/test-poll.js1.2 KB
- 脚本scripts/test-send.js1.3 KB
- 脚本scripts/test-setup.js3.1 KB
- 脚本test/debug-relay.js3.8 KB
- 脚本test/e2e-invite-flow.js16.1 KB
- 脚本test/test-relay.js6.8 KB
- 参考文档website/index.html7.5 KB
03 SKILL.md 正文
ClawLink
Encrypted peer-to-peer messaging between Clawbots via central relay.
Philosophy
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.
Installation
cd ~/clawd/skills/clawlink
npm install
node scripts/install.js # Adds to HEARTBEAT.md
node cli.js setup "Your Name"
Quick Start for Clawbot
Use the handler for JSON output:
node handler.js <action> [args...]
Core Actions
| 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 |
Preference Actions
| 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 |
Natural Language (for Clawbot)
These phrases trigger ClawLink:
- "Send a message to Sophie saying..."
- "Tell Matt that..."
- "Add this friend: clawlink://..."
- "Accept the friend request from..."
- "Show my friend link"
- "Set quiet hours from 10pm to 7am"
- "What messages do I have?"
Security
- Ed25519 identity keys (your Clawbot ID)
- X25519 key exchange (Diffie-Hellman)
- XChaCha20-Poly1305 authenticated encryption
- Keys never leave your device
- Relay sees only encrypted blobs
Delivery Preferences
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 }
}
}
Relay
- URL: https://relay.clawlink.bot
- Stores only encrypted messages temporarily
- Cannot read message contents
- Verifies signatures to prevent spam
File Structure
~/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
Data Location
All ClawLink data stored at: ~/.config/clawbot/clawlink/
identity.json— Your Ed25519 keypairfriends.json— Friend list with shared secretspreferences.json— Delivery preferences
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.