← 返回
沟通协作

AgentLink Protocol

Enables OpenClaw agents to communicate P2P using AgentLink protocol with messaging, contact management, status checks, and identity sharing.
使OpenClaw代理能够使用AgentLink协议进行P2P通信,支持消息传递、联系人管理、状态检查及身份共享。
dolutech
沟通协作 clawhub v0.1.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 578
下载
💾 4
安装
1
版本
#latest

概述

AgentLink Skills

> Skills for OpenClaw agents to use the AgentLink protocol

What are Skills?

Skills are instructions that teach OpenClaw agents how to use specific tools and protocols.

Available Skills

1. agentlink/

File: skills/agentlink/SKILL.md

Purpose: Teaches OpenClaw agents to communicate via P2P using the AgentLink protocol.

Capabilities:

  • Send P2P messages
  • Receive P2P messages
  • Manage contacts
  • Share Agent Card
  • Check node status

Tools:

  • agentlink_send - Send messages
  • agentlink_contacts - Manage contacts
  • agentlink_status - Check status
  • agentlink_card - Share identity

How to Install for OpenClaw

Option 1: Via npm

npm install @dolutech/agent-link

Option 2: Git Submodule

git submodule add https://github.com/dolutech/agent-link skills/agentlink

Option 3: Direct Download

# Create skills directory
mkdir -p skills/agentlink

# Download skill
curl -o skills/agentlink/SKILL.md \
  https://raw.githubusercontent.com/dolutech/agent-link/main/skills/agentlink/SKILL.md

How to Use in OpenClaw

1. Add Skill to Agent

In your OpenClaw agent configuration:

skills:
  - path: ./skills/agentlink/SKILL.md
    name: AgentLink Protocol

2. Initialize Tools

import { AgentLinkNode } from "@dolutech/agent-link";

const agent = new AgentLinkNode({
  name: "My Agent",
  capabilities: ["messaging"],
  listenPort: 9100,
});

await agent.start();

3. Use Commands

Once configured, the agent can use:

@agentlink_send to:did:key:z6Mk... message:"Hello!"
@agentlink_contacts list
@agentlink_card show
@agentlink_status

Trust Levels

The skill includes a trust system to control what other agents can do:

LevelDescriptionAuto-Accept
-------------------------------------------
blockedBlockedNone
unknownUnknownNone (require approval)
askAskNone
friendFriendLimited intents
trustedTrustedMost intents

Complete Usage Example

Step 1: Initialize

npx @agentlink/cli init --name "My Assistant"

Step 2: Start

npx @agentlink/cli start

Step 3: Share Contact

@agentlink_card format:link
# Returns: agentlink://eyJkaWQiOiJkaWQ6a2V5...

Step 4: Add Contact

@agentlink_contacts action:add did:did:key:z6Mk... name:"Alice" trustLevel:friend

Step 5: Send Message

@agentlink_send to:Alice intent:messaging.send message:"Hello Alice!"

Available Intents

The skill supports the following intents:

Messaging

  • messaging.send - Send message
  • messaging.receive - Receive message

Scheduling

  • scheduling.create - Create event
  • scheduling.read - Read calendar

Files

  • files.read - Read file
  • files.write - Write file

Web

  • web.fetch - Fetch URL
  • web.search - Search web

Handshake

  • handshake.hello - Initiate connection
  • handshake.ack - Acknowledge connection

Security Best Practices

✅ Recommendations

  1. Start with trustLevel: ask for new contacts
  2. Use structured data in messages
  3. Check status before sending
  4. Review permissions before approving

❌ What to Avoid

  1. Never share your private key
  2. Don't use trustLevel: trusted without verifying the agent
  3. Don't approve requests without reviewing
  4. Don't ignore security warnings

Troubleshooting

Agent cannot find the skill

# Check path
ls -la skills/agentlink/SKILL.md

# Check permissions
chmod 644 skills/agentlink/SKILL.md

Tools not available

# Check installation
npm list @dolutech/agent-link

# Reinstall if needed
npm install @dolutech/agent-link

Node is not running

# Check status
@agentlink_status

# Restart if needed
npx @agentlink/cli start

Contributing

To add new capabilities or tools to the skill:

  1. Edit skills/agentlink/SKILL.md
  2. Add usage examples
  3. Document parameters and return values
  4. Test with OpenClaw agents

Links

  • Protocol: https://github.com/dolutech/agent-link
  • npm: https://www.npmjs.com/package/@dolutech/agent-link
  • OpenClaw: https://openclaw.ai

DoluTech © 2026

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-20 01:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,599
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,461
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,689