/install agent-link
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 messagesagentlink_contacts- Manage contactsagentlink_status- Check statusagentlink_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:
| Level | Description | Auto-Accept |
|---|---|---|
blocked |
Blocked | None |
unknown |
Unknown | None (require approval) |
ask |
Ask | None |
friend |
Friend | Limited intents |
trusted |
Trusted | Most 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 messagemessaging.receive- Receive message
Scheduling
scheduling.create- Create eventscheduling.read- Read calendar
Files
files.read- Read filefiles.write- Write file
Web
web.fetch- Fetch URLweb.search- Search web
Handshake
handshake.hello- Initiate connectionhandshake.ack- Acknowledge connection
Security Best Practices
✅ Recommendations
- Start with
trustLevel: askfor new contacts - Use structured data in messages
- Check status before sending
- Review permissions before approving
❌ What to Avoid
- Never share your private key
- Don't use
trustLevel: trustedwithout verifying the agent - Don't approve requests without reviewing
- 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:
- Edit
skills/agentlink/SKILL.md - Add usage examples
- Document parameters and return values
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agent-link - 安装完成后,直接呼叫该 Skill 的名称或使用
/agent-link触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
AgentLink Protocol 是什么?
Enables OpenClaw agents to communicate P2P using AgentLink protocol with messaging, contact management, status checks, and identity sharing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 249 次。
如何安装 AgentLink Protocol?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-link」即可一键安装,无需额外配置。
AgentLink Protocol 是免费的吗?
是的,AgentLink Protocol 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
AgentLink Protocol 支持哪些平台?
AgentLink Protocol 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 AgentLink Protocol?
由 dolutech(@dolutech)开发并维护,当前版本 v0.1.1。