claw-mem

Three-Tier Memory System for OpenClaw. Store and recall memories across sessions with Episodic, Semantic, and Procedural layers. BM25 + Heuristic retrieval.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-mem" with this command: npx skills add petercheng/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

LayerPurposeExample
EpisodicEvent sequencesSession context
SemanticKnowledge factsUser preferences
ProceduralRulesBest practices

Retrieval Modes

ModeDescriptionUse Case
keywordSimple keyword matchQuick lookup
bm25BM25 rankingRelevance ranking
hybridBM25 + KeywordBalanced retrieval
enhanced_smartFull pipelineBest 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

OperationLatency
Initialize~4ms
Store~8ms
Search~5ms
Average~6ms

Advanced

See references for detailed documentation:

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Memory Auto Archive

Automatically archives daily chat logs with keyword highlights and optional AI summaries into organized memory files without manual setup.

Registry SourceRecently Updated
2820Profile unavailable
General

Memory Manager

OpenClaw专用三层AI记忆管理系统。管理临时记忆(L1)/长期记忆(L2)/永久记忆(L3),支持向量语义搜索、自动压缩、OpenClaw用户身份识别和跨设备同步。

Registry SourceRecently Updated
760Profile unavailable
Automation

Unified Memory V5

统一记忆系统 - AI Agent 专用记忆系统,支持 Context Tree、智能摘要、知识图谱、工作流引擎。零依赖,完整对标 QMD/MetaGPT

Registry SourceRecently Updated
7520Profile unavailable
Security

SPIRIT State Sync

State Preservation & Identity Resurrection Infrastructure Tool (SPIRIT). Preserves AI agent identity, memory, and projects to a private Git repository. NEW:...

Registry SourceRecently Updated
7610Profile unavailable