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
累計下載
3775
星標
2
全站排名
#2,811
全站前 56% · 「AI 智慧體」前 58%
平台累計安裝累計下載星標評論
ClawHub ↗11835612-
SkillHub ↗11837752—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文說明無簽名或簽名無效的資料包會被丟棄;部署時需妥善管理身份金鑰,並僅與可信 agent 建立通訊,避免將敏感記憶傳送給未授權物件。

資料釋出於 2026-10-29

可以用來做什麼

  • 在 agent 之間傳送經過簽名的資料包
  • 發現可連線的 agent 並管理訊息路由

什麼時候用

  • 需要在可信的 agent 環境之間建立訊息通訊時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

概述 Keep Protocol 的身份驗證和訊息路由方式,並列出建立連線前需要核實的信任邊界;不要傳送訊息。

月度資料趨勢

累計下載3775
2399313838772026-03 · 累計下載 25012026-06 · 累計下載 31422026-07 · 累計下載 34122026-08 · 累計下載 34862026-09 · 累計下載 377526-0326-09
星標2
1232026-03 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093775—2
2026-083486+2.2%2
2026-073412+8.6%2
2026-063142—2
2026-032501—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),按月更新。口徑說明見資料方法。