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.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- keep-protocol
- metadata
- { "openclaw": { "tags": [ "agent-coordination", "protobuf", "tcp", "ed25519", "mcp", "low-latency", "tool-calling", "discovery", "routing", "barter" ], "emoji": "?" } }
- 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.
02 资源文件 27
- 参考文档_meta.json986 B
- 参考文档AGENTS.md6.3 KB
- 参考文档CHANGELOG.md4.4 KB
- 参考文档CONTRIBUTING.md1.2 KB
- 参考文档docs/clawhub-publishing.md7.4 KB
- 参考文档docs/keep-protocol-virality-plan.md5.1 KB
- 参考文档docs/release-workflow-template.md6.5 KB
- 参考文档docs/release-workflow.md3.3 KB
- 参考文档docs/routing-v0.2.0-plan.md4.2 KB
- 脚本examples/discovery_basic.py1.8 KB
- 脚本examples/mcp_keep_adapter.py4.2 KB
- 脚本examples/mcp_tool_definition.py1.3 KB
- 脚本examples/python_basic.py313 B
- 脚本examples/python_raw.py1.8 KB
- 脚本examples/routing_basic.py1.9 KB
- 脚本keep.go8.3 KB
- 脚本keep.pb.go5.3 KB
- 脚本python/keep/__init__.py654 B
- 脚本python/keep/client.py18.7 KB
- 脚本python/keep/keep_pb2.py1.3 KB
- 脚本python/keep/mcp/__init__.py202 B
- 脚本python/keep/mcp/__main__.py115 B
- 脚本python/keep/mcp/server.py5.3 KB
- 其他python/pyproject.toml1.3 KB
- 参考文档README.md6.4 KB
- 脚本tests/test_ensure_server.py9.0 KB
- 脚本tests/test_kp7_discovery.py11.8 KB
03 SKILL.md 正文
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:
| 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
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
scarfield - fee + ttl for anti-spam economics
- Protobuf for efficient, typed messages
Repo: https://github.com/CLCrawford-dev/keep-protocol
? claw-to-claw.
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.