nTEG-dev

Keep Protocol

AI 智能体v1.1.1
作者:nTEG-dev更新于 2026-05-18共 7 个版本 · 最新版本发布于 2026-02-05keep-protocol@clawhub_nteg-dev/keep-protocol
Agent 框架多 Agent 协作工具调用

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

累计安装
118
累计下载
3,775
星标
2
全站排名
#2,811
全站前 56% · 「AI 智能体」前 58%
平台累计安装累计下载星标评论
ClawHub ↗1183,5612-
SkillHub ↗1183,7752—

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

这个技能是做什么的

主文说明无签名或签名无效的数据包会被丢弃;部署时需妥善管理身份密钥,并仅与可信 agent 建立通信,避免将敏感记忆发送给未授权对象。

资料发布于 2026-10-29

可以用来做什么

  • 在 agent 之间发送经过签名的数据包
  • 发现可连接的 agent 并管理消息路由

什么时候用

  • 需要在可信的 agent 环境之间建立消息通信时

示例提示词

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

概述 Keep Protocol 的身份验证和消息路由方式,并列出建立连接前需要核实的信任边界;不要发送消息。

月度数据趋势

累计下载3,775
2,3993,1383,8772026-03 · 累计下载 2,5012026-06 · 累计下载 3,1422026-07 · 累计下载 3,4122026-08 · 累计下载 3,4862026-09 · 累计下载 3,77526-0326-09
星标2
1232026-03 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

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

月份累计下载环比星标
2026-093,775—2
2026-083,486+2.2%2
2026-073,412+8.6%2
2026-063,142—2
2026-032,501—2

SKILL.md 原文

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

3.4 KB · ClawHub v1.1.1
---
name: keep-protocol
description: Signed Protobuf packets over TCP for AI agent-to-agent communication. Now with MCP tools for sub-second latency! Lightweight ed25519-authenticated protocol with discovery, routing, and memory sharing.
metadata: {"openclaw":{"emoji":"🦀","tags":["agent-coordination","protobuf","tcp","ed25519","mcp","low-latency","tool-calling","discovery","routing","barter"]}}
---

# keep-protocol

**Lightweight signed TCP + Protobuf protocol for agent coordination.**
展开全部(共 136 行)
Agents send `Packet`s to a TCP endpoint (default `localhost:9009`).
Unsigned or invalid sig = silent drop. Valid ed25519 sig = routed, logged, replied.

## Preferred: MCP Tools (Fast Path)

If your environment has keep-protocol MCP configured, use these tools directly for **sub-60ms latency**:

| Tool | Purpose |
|------|---------|
| `keep_send(dst, body)` | Send a signed packet to another agent |
| `keep_discover(query)` | Get server info, stats, or agent list |
| `keep_discover_agents()` | List all connected agent identities |
| `keep_listen(timeout)` | Register and receive incoming messages |
| `keep_ensure_server()` | Auto-start server if not running |

### MCP Examples

**Send a message to another agent:**
```
Use tool: keep_send
  dst: "bot:alice"
  body: "Hello from MCP!"
```

**Discover connected agents:**
```
Use tool: keep_discover_agents
Result: ["bot:alice", "bot:weather", "bot:planner"]
```

**Get server info:**
```
Use tool: keep_discover
  query: "info"
Result: {"version": "0.5.0", "agents_online": 3, "uptime_sec": 12345}
```

This is **100x faster** than code generation (~60ms vs ~100s).

### MCP Setup

```bash
pip install keep-protocol[mcp]
```

Add to your MCP config:
```json
{
  "mcpServers": {
    "keep-protocol": {
      "command": "keep-mcp",
      "env": {
        "KEEP_HOST": "localhost",
        "KEEP_PORT": "9009",
        "KEEP_SRC": "bot:my-agent"
      }
    }
  }
}
```

## Fallback: Code Generation

If MCP tools are not available, generate Python code using the SDK:

### Installation

```bash
# Server (Docker)
docker run -d -p 9009:9009 ghcr.io/clcrawford-dev/keep-server:latest

# Python SDK
pip install keep-protocol
```

### Discovery

Find out what's running and who's connected:

```python
from keep import KeepClient

client = KeepClient("localhost", 9009)
info = client.discover("info")       # {"version": "0.5.0", "agents_online": 3, ...}
agents = client.discover_agents()     # ["bot:alice", "bot:weather", ...]
```

### Agent-to-Agent Routing

Send messages directly to other connected agents:

```python
with KeepClient(src="bot:planner") as client:
    client.send(body="register", dst="server", wait_reply=True)
    client.send(body="coordinate task", dst="bot:weather-agent")
    client.listen(lambda p: print(f"From {p.src}: {p.body}"), timeout=30)
```

### Memory Barter

Share institutional knowledge between agents using the `scar` field:

```python
client.send(
    body="trade weather data for flight cache",
    dst="bot:travel-agent",
    scar=b"<gitmem commit bytes>"
)
```

## Key Features

- **ed25519 authentication** + integrity on every packet
- **MCP tools** for sub-60ms latency (vs 100s+ with code gen)
- **Agent discovery** — find who's online
- **Agent-to-agent routing** — send directly to `bot:alice`
- **Memory barter** — share knowledge via the `scar` field
- **fee + ttl** for anti-spam economics
- **Protobuf** for efficient, typed messages

**Repo:** https://github.com/CLCrawford-dev/keep-protocol

---

🦀 claw-to-claw.

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

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