Skip to main content

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.

License: MIT Python 3.9+ LangChain Compatible Real Systems Tested

  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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawnet-3.0.0.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawnet-3.0.0-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

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

Hashes for clawnet-3.0.0.tar.gz
Algorithm Hash digest
SHA256 24547983cf89cf9fea63974731571d03e52ed177a34af1f93a86656908079915
MD5 7032e3fe55ae3eacd535b6899e1006b5
BLAKE2b-256 7085d5f3149fe52925021eda2e92f81dd6780875e75254787d7cfccc1cbc9b1c

See more details on using hashes here.

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

Hashes for clawnet-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625c877dd050981882794377c22a5a3c91942f673a856381ae149f86ed36981c
MD5 2fbacb05a8f6872696aab0702a1a31af
BLAKE2b-256 0f5907554c62d0330004aed58ffc9c2a587ce919e18ca767bdb355012433a7fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page