OpenClaw Hybrid Memory

Durable, structured, searchable memory for OpenClaw agents.

Your OpenClaw agent forgets everything between sessions. Hybrid Memory fixes this — it gives your agent persistent memory that auto-captures what matters and recalls it when relevant.

Get Started Scenarios & benefits View on GitHub


What it does

Without hybrid memory With hybrid memory
Every new thread starts from zero Preferences, decisions, and facts carry over
You paste the same context again Relevant memories can load automatically each turn
Hard to find “that thing we said” Search by meaning and by structure
Memory becomes a junk drawer Decay, tiering, and jobs keep storage manageable
Lost work if a process crashes badly Durable writes designed for safe recovery

How the engines work (SQLite, vectors, merge, WAL): How it works and Architecture. Narrative examples: Scenarios & benefits.


Documentation

Getting started

Document Description
Scenarios & benefits Before/after diagrams and real-life stories
Quick Start Install, configure, verify — get running in 10 minutes
Autonomous Setup Let an OpenClaw agent install it for you
Configuration Full openclaw.json reference
LLMs and Providers Prerequisites, what LLMs are used for, gateway routing, llm config

Architecture & internals

Document Description
Architecture Four-part hybrid architecture, workspace layout, bootstrap files
Architecture Center Architecture anchor: core runtime boundary vs adjacent subsystems
How It Works End-to-end flow of memory capture, storage, and recall
Retrieval Modes Ownership and contracts for interactive vs explicit/deep retrieval paths
Memory Protocol Paste-ready AGENTS.md block

Features

Document Description
Features Overview Categories, decay, tags, auto-classify, source dates
Credential Vault Opt-in encrypted storage for API keys, tokens, passwords
Session Distillation Extracting durable facts from old conversation logs
Graph Memory Graph-based fact linking and spreading activation
WAL Crash Resilience Write-ahead log design and recovery
Reflection Layer Pattern synthesis from accumulated facts
Conflicting Memories Classify-before-write, supersession, bi-temporal
Memory Tiering Hot/warm/cold tiers, compaction, session-end hooks
Memory Scoping Global, user, agent, session scope; multi-agent; scope promote
Search improvements (RRF, ingest, query expansion) RRF fusion, ingest-files, query expansion
Multilingual language keywords Auto-capture and categories in multiple languages; auto-build and build-languages
Automatic Categories Category discovery from “other” facts
Dynamic Derived Data Index: tags, categories, decay, and other derived data

Operations & maintenance

Document Description
CLI Reference All openclaw hybrid-mem commands by category
Operations Day-to-day operational procedures
Uninstall Revert to default memory; optional data removal
Upgrade OpenClaw What to do after every OpenClaw upgrade
Upgrade Plugin Upgrading the hybrid-memory plugin
Backup What to back up and how to restore
Maintenance File hygiene, periodic review, upgrades
Troubleshooting Common issues, API key behaviour, diagnostics

Analysis & planning

Document Description
Model-Agnostic Analysis Compatibility across LLM providers
Feedback Roadmap Planned improvements and feature requests

Project

Document Description
Credits & attribution Sources, lineage, and what this repository adds

Architecture at a glance

┌─────────────────────────────────────────────────┐
│                 OpenClaw Agent                  │
├─────────────────────────────────────────────────┤
│            Hybrid Memory Manager                │
│  ┌──────────┐  ┌──────────┐  ┌──────────────┐  │
│  │ SQLite + │  │ LanceDB  │  │ Hierarchical │  │
│  │   FTS5   │  │ Vectors  │  │    Files     │  │
│  └──────────┘  └──────────┘  └──────────────┘  │
│  ┌──────────┐  ┌──────────┐  ┌──────────────┐  │
│  │   WAL    │  │  Graph   │  │  Reflection  │  │
│  │  Layer   │  │  Memory  │  │    Layer     │  │
│  └──────────┘  └──────────┘  └──────────────┘  │
└─────────────────────────────────────────────────┘

Quick start

# 1. Install the plugin
openclaw plugins install openclaw-hybrid-memory

# 2. Apply recommended config
openclaw hybrid-mem install

# 3. Set your OpenAI API key in ~/.openclaw/openclaw.json

# 4. Restart and verify
openclaw gateway stop && openclaw gateway start
openclaw hybrid-mem verify

Back to top

OpenClaw Hybrid Memory — durable agent memory

This site uses Just the Docs, a documentation theme for Jekyll.