Agent Memory Portability Protocol โ keep agent memories across frameworks
Project description
๐ง ClawNet โ Agent Memory Portability Protocol
The protocol that lets AI agents keep their memories when they change frameworks.
LangChain agent learns something โ stores in ClawNet
CrewAI agent queries ClawNet โ inherits that knowledge
OpenClaw agent wakes up โ sees everything
Same memory. Different frameworks. Zero transfer effort.
The Problem
Today, your agent's memory is trapped inside its framework:
- Build with LangChain? Memory dies with LangChain.
- Switch to CrewAI? Start from zero.
- Use multiple frameworks? Each one is an island.
Nobody else is solving this. MCP connects agents to tools. A2A connects agents to agents. But when an agent changes framework, it loses everything.
The Solution
ClawNet is a portable memory layer that lives outside any framework.
Your agent's experiences, learned facts, and context โ stored once, accessible from anywhere.
| What | Before ClawNet | After ClawNet |
|---|---|---|
| Switch frameworks | Lose everything | Keep all memories |
| Multiple frameworks | Each isolated | Shared memory |
| Agent restarts | Start from zero | Resume with context |
| Debugging | "Why did this happen?" | Full lineage trace |
| Agent collisions | Data corruption | Context locking |
Quick Start
pip install clawnet
from clawnet import ClawNetClient
# Works with ANY framework
agent = ClawNetClient("my_agent", "researcher")
# Store something
agent.remember("User prefers Spanish, direct communication")
# Another agent (any framework) inherits this instantly
other_agent = ClawNetClient("other_agent", "writer")
other_agent.recall("user preferences")
# โ ["User prefers Spanish, direct communication"]
Features That Don't Exist Anywhere Else
1. Agent Memory Portability ๐
Your agent's memory lives in ClawNet, not the framework.
Switch LangChain โ CrewAI โ OpenClaw. Keep everything.
2. Context Locking ๐
Prevent agent collisions. Like database row locks, but for AI context.
Two agents can't overwrite each other's work.
3. Context Lineage ๐
Full audit trail of every decision.
"Why did this happen?" โ query lineage โ answer.
4. Framework-Agnostic โพ๏ธ
LangChain โ
CrewAI โ
OpenClaw โ
Custom โ
One protocol. All frameworks. Shared memory.
Real Systems Tested
ClawNet is tested against 14 real running systems, not simulations:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Systems on this server that ClawNet connects: โ
โ โ
โ ๐ณ Docker Containers: โ
โ โข deer-flow-gateway (multi-agent research) โ
โ โข paperclip (document management) โ
โ โข superagent-n8n (workflow automation) โ
โ โข review-ai (code review) โ
โ โข superagent-obsidian (knowledge base) โ
โ โข + 7 more containers โ
โ โ
โ ๐ฅ๏ธ Processes: โ
โ โข OpenClaw gateway (this process) โ
โ โข Hermes CLI agent โ
โ โ
โ Benchmark Results: โ
โ โข Locking: โ
Prevents real collisions โ
โ โข Inheritance: โ
14 systems share context โ
โ โข Lineage: โ
Full workflow traceability โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Why ClawNet, Not Another Framework
ClawNet is NOT a framework. It's the memory layer that makes all frameworks work together.
MCP = Agent โ Tools
A2A = Agent โ Agent (messaging)
ClawNet = Agent โ Memory โ All Agents (portable context)
| Protocol | What it does | Memory portability | Context locking | Lineage |
|---|---|---|---|---|
| MCP | Tool access | โ | โ | โ |
| A2A | Agent messaging | โ | โ | โ |
| CrewAI | Multi-agent workflows | โ | โ | โ |
| ClawNet | Portable agent memory | โ | โ | โ |
Install
pip install clawnet
Run
# Memory server
clawnet-server --port 7890
# Or with v2 (WebSocket + Context APIs)
clawnet-server-v2 --port 7890
Benchmarks
# Real systems benchmark (14 actual systems)
python examples/real_systems_benchmark.py
# Context Consistency demo (Locking + Lineage)
python examples/context_consistency_demo.py
# Isolation vs Connection comparison
python examples/benchmark_isolation_vs_connection.py
Documentation
- AGENT_PORTABILITY.md โ The core insight
- PROOFS.md โ Mathematical proofs of emergence
- EXPERIMENT.md โ Why this cannot be refuted
- clawnet/protocol.py โ Context Locking + Lineage implementation
The Revolution
Other protocols connect agents to tools or to each other.
ClawNet gives agents memory that survives everything โ including switching frameworks.
This is the missing infrastructure layer for the agentic era.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawnet-3.0.0.tar.gz.
File metadata
- Download URL: clawnet-3.0.0.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24547983cf89cf9fea63974731571d03e52ed177a34af1f93a86656908079915
|
|
| MD5 |
7032e3fe55ae3eacd535b6899e1006b5
|
|
| BLAKE2b-256 |
7085d5f3149fe52925021eda2e92f81dd6780875e75254787d7cfccc1cbc9b1c
|
File details
Details for the file clawnet-3.0.0-py3-none-any.whl.
File metadata
- Download URL: clawnet-3.0.0-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
625c877dd050981882794377c22a5a3c91942f673a856381ae149f86ed36981c
|
|
| MD5 |
2fbacb05a8f6872696aab0702a1a31af
|
|
| BLAKE2b-256 |
0f5907554c62d0330004aed58ffc9c2a587ce919e18ca767bdb355012433a7fb
|