MemorySync
Official SDK

CAMEL-AI + MemorySync

A lossless storage backend plus a drop-in AgentMemory: verbatim history, scored semantic recall under a hard budget, and zero client-side embeddings.

Overview

Install camel-memorysync and pass MemorySyncMemory(user_id=..., session_id=...) to ChatAgent — verbatim chat history plus semantic recall from MemorySync, injected as one scored SYSTEM-role context record that CAMEL’s ScoreBasedContextCreator sorts directly after the system prompt. Your history is never reordered, rewritten, or role-swapped: the in-repo Mem0Storage returns extracted facts instead of your messages with every record hardcoded role=USER (breaking OpenAI’s alternation), and its clear() calls client.delete_users() — resetting a chat destroys the whole account. Here clear() resets the local window only, and remote deletion is explicit and loud: forget_session() and forget_user(), scoped to camel-surface rows so memories from other MemorySync surfaces survive. Recall runs under a hard 1.2s budget and fails open to history-only context, an anti-echo filter keeps the live conversation from coming back as “memories”, multimodal image payloads round-trip intact, and deterministic seeds make retried saves converge. Unlike VectorDBMemory there are zero client-side embeddings — no OpenAIEmbedding key, no vector database to operate.

Setup status and requirements

Supported version
camel-memorysync 1.0.0 (PyPI)
Last setup review
2026-08-24
Permissions
A MemorySync API key with read and write scopes.
Limits
Requires camel-ai 0.2.60+ (Python 3.10–3.14). Pins mcp<2 — camel-ai 0.2.x crashes at import under mcp 2.0.
Open setup documentation →

Capabilities

Quick Start

from camel.agents import ChatAgent
from camel_memorysync import MemorySyncMemory
memory = MemorySyncMemory(
user_id="customer-42", # required
session_id="support",
)
agent = ChatAgent(
system_message="You are a helpful travel assistant.",
memory=memory,
)
agent.step("I always prefer window seats on long flights")
# a new session, days later:
agent.step("which seat should I book for the Oslo flight?") # remembers

Use Cases

Multi-agent CAMEL societies with per-user long-term memory

Replacing the history-corrupting in-repo Mem0Storage

Long-term memory without operating a vector DB or embedding pipeline

Explore More

Built for production AI systems

Build AI systems that remember

MemorySync provides the infrastructure layer for persistent memory, adaptive retrieval, and enterprise AI intelligence.

Start free. No credit card required.