claw-mem: Three-Tier Memory
/install opensourceclaw-claw-mem
claw-mem: Three-Tier Memory System
Local-first memory system with three memory layers and intelligent retrieval.
Prerequisites
pip install git+https://github.com/opensourceclaw/claw-mem.git
Quick Start
Search Memory
python3 {baseDir}/scripts/search.py "project deadlines" --limit 10
Store Memory
python3 {baseDir}/scripts/store.py "User preference" --category preference
Start Bridge (for OpenClaw integration)
python3 {baseDir}/scripts/bridge.py --workspace ~/.openclaw/workspace
Memory Layers
| Layer | Purpose | Example |
|---|---|---|
| Episodic | Event sequences | Session context |
| Semantic | Knowledge facts | User preferences |
| Procedural | Rules | Best practices |
Retrieval Modes
| Mode | Description | Use Case |
|---|---|---|
keyword |
Simple keyword match | Quick lookup |
bm25 |
BM25 ranking | Relevance ranking |
hybrid |
BM25 + Keyword | Balanced retrieval |
enhanced_smart |
Full pipeline | Best quality |
Set mode via environment:
export CLAW_MEM_SEARCH_MODE=enhanced_smart
Configuration
OpenClaw config (openclaw.config.json):
{
"plugins": {
"slots": {
"memory": "claw-mem"
},
"claw-mem": {
"config": {
"workspaceDir": "~/.openclaw/workspace",
"autoRecall": true,
"autoCapture": true,
"topK": 10
}
}
}
}
Performance
| Operation | Latency |
|---|---|
| Initialize | ~4ms |
| Store | ~8ms |
| Search | ~5ms |
| Average | ~6ms |
Advanced
See references for detailed documentation:
- Architecture - Three-tier design
- Retrieval - Search algorithms
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install opensourceclaw-claw-mem - After installation, invoke the skill by name or use
/opensourceclaw-claw-mem - Provide required inputs per the skill's parameter spec and get structured output
What is claw-mem: Three-Tier Memory?
Three-Tier Memory System for OpenClaw. Store and recall memories across sessions with Episodic, Semantic, and Procedural layers. BM25 + Heuristic retrieval. It is an AI Agent Skill for Claude Code / OpenClaw, with 78 downloads so far.
How do I install claw-mem: Three-Tier Memory?
Run "/install opensourceclaw-claw-mem" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is claw-mem: Three-Tier Memory free?
Yes, claw-mem: Three-Tier Memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does claw-mem: Three-Tier Memory support?
claw-mem: Three-Tier Memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created claw-mem: Three-Tier Memory?
It is built and maintained by Peter Cheng (@petercheng); the current version is v2.0.1.