Skip to main content

Memory Systems Compared

OpenClaw's built-in memory works well out of the box, but 10+ community alternatives offer different tradeoffs — from managed cloud services to graph databases to DAG-based summarization. This guide helps you pick.


Quick Decision

Your situationBest choice
Just getting startedBuilt-in memory (default)
Privacy is critical, no cloudBuilt-in memory + Dreaming
24/7 autonomous agent, cost-sensitivememU
Team/enterprise, managed infraMem0
Production scale, hierarchical contextOpenViking
Coding agent, persistent dev contextclaude-mem or MemoV
Long sessions, can't lose contextLossless Claw
Maximum conversation recallMemPalace
True learning across sessionsHindsight
Semantic graph reasoningCognee

Built-In Memory

OpenClaw stores memory as local Markdown files in ~/.openclaw/memory/. It's human-readable, editable, and never leaves your machine (though content is included in LLM prompts when using cloud providers).

How It Works

~/.openclaw/memory/
├── preferences.md # Your habits and preferences
├── contacts.md # People the agent has learned about
├── projects.md # Active project context
├── learnings.md # Discoveries and solutions
├── tools.md # Tools and workflows
└── custom/ # Your own categories

Lifecycle: Observe → Extract → Store → Retrieve → Decay

During each conversation, the agent identifies facts worth remembering, writes them to the appropriate file, and loads relevant memories into future conversations (up to 2,000 tokens by default).

Configuration

~/.openclaw/openclaw.json
{
"memory": {
"enabled": true,
"path": "~/.openclaw/memory",
"max_context_tokens": 2000,
"auto_save": true,
"categories": [
"preferences",
"contacts",
"projects",
"learnings"
]
}
}

Retrieval

Built-in memory uses hybrid search combining two paths:

MethodWeightHow It Works
Vector search70%Semantic similarity via embeddings
BM25 keyword search30%Exact and full-text matches (FTS5)

Results are merged using Reciprocal Rank Fusion (RRF). All processing happens locally via SQLite + sqlite-vec + FTS5 — no external API calls.

Dreaming (memory-core plugin)

Dreaming is an opt-in background consolidation system that moves short-term signals into durable long-term memory. Disabled by default.

Three phases:

PhaseWhat Happens
LightIngests recent daily memory files, deduplicates entries
REMIdentifies recurring themes and patterns within a 7-day window
DeepScores candidates on 6 signals (relevance, frequency, recency, diversity, credibility, utility) and promotes the strongest to MEMORY.md
~/.openclaw/openclaw.json
{
"plugins": {
"entries": {
"memory-core": {
"enabled": true,
"config": {
"dreaming": {
"enabled": true,
"cadence": "0 3 * * *" // 3 AM daily
}
}
}
}
}
}

Phase summaries are written to DREAMS.md for human review. See the Workboard Guide for managing Dreaming across multiple agents.

When Built-In Is Enough

  • Single user, single agent
  • Privacy is the priority — nothing leaves your machine
  • You want to read and edit memories manually
  • Your conversations are under a few hundred per month
  • You don't need cross-session learning or temporal reasoning

Community Memory Systems

Comparison Matrix

SystemStarsTypeArchitectureToken SavingsIntegration
Mem055k+ManagedVector + KV + Graph90%SDK / API
memU8.8kProactive3-layer filesystem~90%OpenClaw plugin
OpenViking15k+Context DB3-tier hierarchical (L0/L1/L2)95%Filesystem
MemPalace22k+VerbatimFull conversation storageNone (stores everything)SDK
Supermemory5k+EngineFact extractionHighMCP / API
Lossless ClawSmallPluginDAG + LLM summarizationModerateOpenClaw plugin
HindsightGrowingFramework4 semantic networksModerateSDK
claude-memModerateCompressionTemporal DB~90%MCP
MemoVModerateTraceableGit-like versioningLowMCP
PowerMemModerateSystemHybrid + graphHighMCP / API
CogneeModerateGraphKnowledge graphHighMCP / SDK
Letta10k+FrameworkOS-inspired blocksModerateSDK

Mem0

Universal managed memory layer — hybrid database storing memories across vector, key-value, and graph backends.

  • Repo: mem0ai/mem0 (55k+ stars)
  • Integration: Python/TypeScript SDK, API, LangChain/CrewAI adapters
  • Performance: 26% higher accuracy than OpenAI's memory, 91% lower latency than full-context
  • Pricing: Managed platform (hosted) or self-hostable

Best for: Teams wanting managed infrastructure with analytics and support. Uses an A.U.D.N. cycle (Add, Update, Delete, No-op) for each memory entry.

from mem0 import Memory
m = Memory()
m.add("User prefers TypeScript over JavaScript", user_id="alex")
results = m.search("What languages does the user prefer?", user_id="alex")
info

Mem0 is a general-purpose memory layer, not OpenClaw-specific. Integration requires connecting via SDK or API in a custom plugin or skill.


memU

Proactive memory for 24/7 agents — reduces token costs by ~10x through smart context selection.

  • Repo: NevaMind-AI/memU (8.8k stars)
  • Integration: Dedicated OpenClaw plugin (memu-engine-for-OpenClaw)
  • Performance: 92% accuracy on Locomo benchmark, ~1/10 token usage
  • Backend: PostgreSQL with pgvector

Best for: Always-on autonomous agents where cost matters. Three-layer filesystem-like memory (Resource → Item → Category) with proactive context loading — no user commands needed.


OpenViking

ByteDance's context database — hierarchical context loading designed for production-scale agent deployments.

  • Repo: volcengine/OpenViking (15k+ stars)
  • Integration: Filesystem paradigm, designed for OpenClaw
  • Performance: 95% cheaper than traditional vector DB approaches
  • Users: Tencent, ByteDance, Alibaba, Xiaomi

Best for: Production at scale. Three-tier context loading:

TierDetail LevelToken Budget
L0 (Abstract)One-sentence summaryUnder 100 tokens
L1 (Overview)Essential informationUnder 2,000 tokens
L2 (Detail)Complete contentOn-demand

The agent loads L0 first, drills into L1/L2 only when needed — dramatically reducing token consumption.


MemPalace

Verbatim conversation storage with high recall — inspired by the ancient "Method of Loci" memory technique.

  • Stars: 22k+ (gained 22k in 48 hours, April 2026)
  • Integration: SDK, ChromaDB backend
  • Performance: 96.6% recall on LongMemEval benchmark
  • Tradeoff: Higher memory footprint — stores entire conversations, not compressed facts

Best for: When you need near-perfect recall of everything that was said. No compression or summarization means nothing is lost, but storage grows fast.

caution

MemPalace's benchmark claims generated controversy. The reconciled metrics are still strong, but evaluate against your own use case rather than relying solely on benchmarks.


Supermemory

Fast semantic memory engine — extracts and stores facts (not document chunks like RAG).

  • Repo: supermemoryai/supermemory (5k+ stars)
  • Integration: MCP server, works with Claude Desktop, Cursor, VS Code
  • Performance: 10x faster than Zep, 25x faster than Mem0 (millisecond retrieval)
  • Funding: $2.6M seed round

Best for: Low-latency memory in development workflows. Handles knowledge updates and contradictions, and implements forgetting for expired information.


Lossless Claw

DAG-based lossless context management — prevents information loss across context window compaction.

Best for: Long-running agents where context compaction would lose important information. Persists every message, summarizes older chunks into hierarchical DAG nodes, and provides retrieval tools (lcm_grep, lcm_describe, lcm_expand_query).


Hindsight

Human-like agentic memory — four semantic networks that support true learning and belief updating.

Best for: Long-running agents that need to evolve their understanding over time. Four memory networks:

NetworkWhat It Stores
World factsObjective information
Agent experiencesPast actions and outcomes
Entity summariesKnowledge about people, projects, tools
Evolving beliefsInferences that update with new evidence

Three operations: Retain (ingest), Recall (retrieve), Reflect (update beliefs).


claude-mem

Persistent context compression for coding agents — captures and compresses context across sessions.

  • Repo: thedotmack/claude-mem
  • Integration: MCP server, works with Claude Code, OpenClaw, Codex, Gemini
  • Performance: ~10x token efficiency vs manual context

Best for: Coding workflows. Auto-captures after every tool call, compresses observations into typed schemas, and uses three-tier retrieval to load only what's relevant.


MemoV

Git-like traceable memory — version control for AI reasoning and interactions.

  • Repo: memovai/memov
  • Integration: MCP server, web UI at localhost:38888
  • Storage: Bare git repo under .mem/memov.git

Best for: Coding agents where you want a full interaction history with diffs, snapshots, and rollback — like git log for your AI conversations.


PowerMem

Multi-agent memory system — combines Ebbinghaus forgetting curve theory with hybrid storage.

  • Repo: oceanbase/powermem
  • Integration: CLI, HTTP API, MCP server, web dashboard
  • Architecture: Working memory → short-term → long-term, with self-evolving skill distillation

Best for: Multi-agent setups needing memory governance, isolation between agents, and cross-agent collaboration.


Cognee

Graph-native semantic memory — unified knowledge graph with vector and relational storage.

  • Repo: topoteretes/cognee
  • Integration: MCP server, LangGraph adapter
  • Backend: SQLite + LanceDB + Kuzu (zero infrastructure by default)

Best for: Agents that need structured knowledge representation — entities, relationships, and provenance tracking.


Letta

OS-inspired stateful agent framework — manages memory as discrete functional blocks.

  • Repo: letta-ai/letta (10k+ stars)
  • Integration: SDK, Agent Development Environment (GUI)
  • Models: Works with OpenAI, Anthropic, open-source

Best for: Building stateful agents from scratch with a consistent memory abstraction. Moves information between immediate context and long-term storage automatically.


Integration Methods

Community memory systems connect to OpenClaw in three ways:

MethodSetup ComplexityExamples
OpenClaw pluginLow — install and configurememU, Lossless Claw, LanceDB-Pro
MCP serverMedium — run as sidecar processclaude-mem, MemoV, Cognee, PowerMem, Supermemory
SDK / APIHigher — build custom integrationMem0, MemPalace, Hindsight, Letta, OpenViking

Plugin is the easiest path — the memory system lives inside the gateway process. MCP is the most flexible — the memory system runs independently and any MCP client can use it. SDK gives the most control but requires custom code.


Decision Framework

By Privacy Requirements

RequirementOptions
Nothing leaves my machineBuilt-in, Lossless Claw, MemoV, Cognee (local mode)
Local processing, cloud storage OKmemU (self-hosted), PowerMem, LanceDB-Pro
Managed cloud is fineMem0 Platform, Supermemory, Zep

By Scale

ScaleOptions
Single user, single agentBuilt-in memory
Single user, multiple agentsBuilt-in + Dreaming, memU, PowerMem
Team / enterpriseMem0, OpenViking, Zep
Production at scaleOpenViking, Mem0, Letta

By Use Case

Use CaseBest PickWhy
General assistantBuilt-inSimple, private, no setup
Coding agentclaude-mem or MemoVOptimized for dev context
Research agentCognee or HindsightStructured knowledge, learning
24/7 autonomousmemUProactive loading, low cost
Multi-agent coordinationPowerMemIsolation + collaboration
Long conversationsLossless ClawPrevents context loss
Total recallMemPalaceStores everything verbatim

Getting Started

Keep It Simple

If you're new to OpenClaw, use the built-in memory. It works well for most users. Enable Dreaming when you want smarter long-term consolidation:

~/.openclaw/openclaw.json
{
"memory": {
"enabled": true,
"max_context_tokens": 2000
},
"plugins": {
"entries": {
"memory-core": {
"config": {
"dreaming": {
"enabled": true,
"cadence": "0 3 * * *"
}
}
}
}
}
}

When to Upgrade

Consider a community memory system when:

  • Built-in memory doesn't recall what you need
  • You're running 24/7 and token costs are too high
  • You need memory shared across multiple agents
  • You need structured knowledge (entities, relationships)
  • Context compaction is losing important information

Try Before Committing

Most community systems can run alongside the built-in memory. Install one as an MCP server, test it for a week, and compare. You don't have to replace the built-in system — you can augment it.


See Also