← 返回
安全合规

Keep Protocol

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.
基于TCP签名Protobuf数据包的AI智能体通信协议。现集成MCP工具实现亚秒级延迟!轻量级ed25519认证协议,支持发现、路由及内存共享。
nteg-dev
安全合规 clawhub v1.1.1 1 版本 99419.2 Key: 无需
★ 2
Stars
📥 3,041
下载
💾 0
安装
1
版本
#agent-coordination#agent-coordination protobuf tcp ed25519 moltbot openclaw swarm intent#barter#decentralized#discovery#ed25519#intent#latest#moltbot#openclaw#protobuf#routing#signing#swarm#tcp

概述

keep-protocol

Lightweight signed TCP + Protobuf protocol for agent coordination.

Agents send Packets 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:

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

pip install keep-protocol[mcp]

Add to your MCP config:

{
  "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

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

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:

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:

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.

版本历史

共 1 个版本

  • v1.1.1 当前
    2026-03-28 12:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,583
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,694
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,134