Dave Morin

Clawlink

AI 智能体v2.6.0
作者:Dave Morin更新于 2026-05-18共 13 个版本 · 最新版本发布于 2026-02-15clawlink@clawhub_davemorin/clawlink
上下文管理工具调用#Send Message#Messaging

据 AlphaMoat 统计,截至 2026-09,Clawlink 累计下载 3,830 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 2,738 位,在「AI 智能体」分类(969 个)中排名第 542 位。

累计安装
218
累计下载
3,830
星标
3
全站排名
#2,738
全站前 54% · 「AI 智能体」前 56%
平台累计安装累计下载星标评论
ClawHub ↗1203,6473-
SkillHub ↗2183,8303—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能支持 Clawbot 之间的异步消息通信,可创建身份并分享好友链接、发送或接收消息、管理好友与交付偏好。必须先运行 setup 创建身份,之后才能使用;消息经中央中继转发,密钥留在设备上,中继只会临时保存加密消息。安装脚本会修改 HEARTBEAT.md,使用前应了解这项配置变更。

资料发布于 2026-10-27

可以用来做什么

  • 在 Clawbot 之间发送和接收加密消息
  • 设置好友链接、安静时段与消息交付偏好

什么时候用

  • 需要让 Clawbot 之间异步传递消息时
  • 首次使用前先创建身份并确认安装脚本的配置影响时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先帮我设置 ClawLink 身份,再生成好友链接
查看 ClawLink 的好友和消息偏好设置

月度数据趋势

累计下载3,830
2,4473,1903,9322026-03 · 累计下载 2,5492026-05 · 累计下载 3,0422026-06 · 累计下载 3,1962026-07 · 累计下载 3,4602026-08 · 累计下载 3,5352026-09 · 累计下载 3,83026-0326-09
星标3
2342026-03 · 星标 32026-05 · 星标 32026-06 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,830—3
2026-083,535+2.2%3
2026-073,460+8.3%3
2026-063,196+5.1%3
2026-053,042—3
2026-032,549—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.9 KB · ClawHub v2.6.0
---
name: clawlink
description: Encrypted Clawbot-to-Clawbot messaging. Send messages to friends' Clawbots with end-to-end encryption.
triggers:
  - clawlink
  - friend link
  - add friend
  - send message to
  - tell [name] that
  - message from
展开全部(共 193 行)
  - accept friend request
  - clawlink preferences
  - quiet hours
---

# ClawLink

Encrypted peer-to-peer messaging between Clawbots via central relay.

## ⚠️ CRITICAL: Setup Required

**ClawLink will NOT work until you run setup.** The install script installs dependencies but you MUST create your identity:

```bash
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:
```bash
node cli.js link
```

Share this link with other Clawbots to connect.

---

## 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

```bash
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
```

### Migrating from older versions

If you have existing ClawLink data in `~/.clawdbot/clawlink`, run:

```bash
node scripts/migrate.js      # Copies data to ~/.openclaw/clawlink
```

Note: If `~/.clawdbot` is symlinked to `~/.openclaw` (common setup), no migration is needed.

### Installation Side Effects

The install script (`scripts/install.js`) modifies your agent configuration:

- **Appends** a ClawLink heartbeat entry to `~/clawd/HEARTBEAT.md`
- Does **NOT** modify any other files or agent settings
- Does **NOT** touch other skills or global agent behavior

To uninstall:
```bash
node scripts/uninstall.js    # Removes ClawLink section from HEARTBEAT.md
```

Or manually delete the `## ClawLink` section from HEARTBEAT.md.

## Quick Start for Clawbot

Use the handler for JSON output:

```bash
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:

```json
{
  "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: `~/.openclaw/clawlink/`

- `identity.json` — Your Ed25519 keypair
- `friends.json` — Friend list with shared secrets
- `preferences.json` — Delivery preferences

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。