openclaw-memory-hub

Three-tier memory architecture for OpenClaw AI agents. Provides L0 runtime semantic retrieval (Ollama bge-m3 + SQLite-vec vector store), L1 working memory (daily markdown logs), L2 long-term memory (curated base file), Dreaming pipeline for automatic insight promotion, and three-way sync (Cloud ↔ Markdown ↔ Vector). Use when setting up persistent agent memory, configuring memory plugins, or building multi-layered memory systems for OpenClaw.

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 "openclaw-memory-hub" with this command: npx skills add victorqr/openclaw-memory-hub

OpenClaw Memory Hub

Three-tier memory architecture with automated Dreaming pipeline and three-way synchronization.

Overview

This architecture solves AI amnesia across sessions by layering memory at three levels:

TierLayerTechnologyPurpose
L0Runtime Retrievalmemory-core plugin (Ollama bge-m3 → SQLite + sqlite-vec)Real-time semantic + BM25 hybrid search
L0Cloud RecallMemOS Cloud plugin (optional)Cross-device memory capture and recall
L1Working Memorymemory/YYYY-MM-DD.md filesDaily summaries, todos, technical notes (30–90 day retention)
L2Long-term MemoryMEMORY.md (read-only base)Key facts, user profile, permanent decisions

Automated Pipelines

  • Dreaming (03:00 UTC daily): Scans conversation logs, evaluates candidates via DeepSeek analysis, promotes high-scoring insights to L2
  • Three-way Sync (18:00 / 20:00 / 22:00 CST): Keeps Cloud ↔ Markdown ↔ Vector stores in sync
  • Wiki Compilation (04:00 UTC daily, optional): Extracts entities and concepts, writes structured wiki vault pages

Setup

One-command auto-setup

bash scripts/auto-setup.sh

This script handles everything interactively:

StepWhat it doesToggle
1Install Ollama (standard or Intel edition)--skip-ollama
2Download bge-m3 embedding model
3Plugin conflict check (auto-detect subconscious-personality-guardian)
4Check memory-core plugin status
5Insert memory-core config into openclaw.jsonAuto-insert on confirm
6Install and configure MemOS Cloud plugin with critical config--skip-memos
7Create memory/ directory, check AGENTS.md
8Set up Dreaming cron job (03:00 UTC daily)

Options

bash scripts/auto-setup.sh --skip-ollama   # Skip Ollama install (use your existing one)
bash scripts/auto-setup.sh --skip-memos    # Skip MemOS Cloud plugin entirely
bash scripts/auto-setup.sh --dry-run       # Preview without making changes

Manual setup

See references/setup-guide.md for step-by-step manual configuration.

When to Use

  • Setting up OpenClaw memory for the first time
  • Configuring memory-core plugin with local Ollama embedding
  • Installing MemOS Cloud plugin for cross-device sync
  • Setting up automatic Dreaming and promotion pipelines
  • Configuring three-way sync between cloud, files, and vector DB

Plugin Conflicts

❌ subconscious-personality-guardian ↔ memory-core

Incompatible. Both use the same OpenClaw memory slot. Installing both causes write conflicts and retrieval duplication.

Fix: auto-setup.sh detects and disables this automatically. Manual fix:

{
  "plugins": {
    "disabled": ["subconscious-personality-guardian"],
    "deny": ["subconscious-personality-guardian"]
  }
}

✅ memory-core + MemOS Cloud

Compatible — designed to work in layers.

They execute in sequence, not in competition:

User message
  → MemOS Cloud (before_agent_start hook)
      → Injects: static facts, preferences, profile
  → memory-core (runtime semantic query)
      → Injects: recent conversations, topical context
  → Agent receives layered memory

MemOS handles "who the user is" (long-term facts). memory-core handles "what we talked about" (recent history).

Critical config (MemOS Cloud):

{
  "recallFilterFailOpen": true,  // Don't block pipeline if API fails
  "asyncMode": true,             // Let memory-core run too
  "resetOnNew": true,            // Fresh context per session
  "hooks.allowConversationAccess": true  // Hooks need this
}

See references/architecture.md for the full recommended config.

Both should be enabled together.

⚠️ MemOS Cloud + ReMe

Potentially conflicting. File layer overlap and retrieval duplication. Choose one.

See references/architecture.md for full compatibility details.

Components

1. Memory Plugins (L0)

Configured via openclaw.json:

{
  "plugins": {
    "entries": {
      "memory-core": {
        "config": {
          "embeddingUrl": "http://127.0.0.1:11434/api/embed",
          "embeddingModel": "bge-m3",
          "dimension": 1024
        }
      },
      "memos-cloud-openclaw-plugin": {
        "config": {
          "url": "https://your-memos-server",
          "token": "your-token"
        }
      }
    }
  }
}

2. Memory Files (L1 + L2)

~/.openclaw/workspace/
├── memory/
│   ├── YYYY-MM-DD.md          # Daily working memory (auto-indexed)
│   ├── MEMORY_INDEX.md        # Vector BM25 cluster summaries
│   ├── memos-cloud-*.md       # Cloud-pulled memory entries
│   ├── .sync-cloud-state.json # Cloud pull cursor
│   └── .sync-push-state.json  # Push state (SHA256 tracking)
├── MEMORY.md                  # Long-term memory base (read-only)
├── AGENTS.md                  # Runtime context + memory rules
└── SOUL.md                    # Agent persona

3. Sync Scripts (optional)

Located at user_workspace/scripts/:

  • sync-cloud-pull.py — Pull from MemOS Cloud → Markdown files
  • sync-cloud-push.py — Push local markdown changes → Cloud (SHA256 diff)
  • sync-vector-index.py — Vector DB → MEMORY_INDEX.md (FTS5 BM25 clustering)
  • sync-all.sh — Orchestrator that runs all three

See references/sync-api.md for MemOS Cloud API details.

File Reference

  • references/architecture.md — Detailed architecture documentation
  • references/setup-guide.md — Complete manual setup guide with templates
  • references/sync-api.md — MemOS Cloud API reference
  • scripts/auto-setup.sh — One-command interactive setup (recommended)

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.

Automation

技能编辑器

编辑、完善或审查 AgentSkills。当需要创建新技能、对现有 SKILL.md 进行修改、清理/审计/整理技能文件时激活此技能。触发词:编辑技能, skill 注意事项, metadata 检查, 完善技能, 清理技能, 审计技能, skill 规范, 编写 skill, 新建技能

Registry SourceRecently Updated
Automation

全闭环管道

全闭环自动化管道 — Hunter→Skill Factory→Orchestrator→Dashboard→Profit。将Phase 1-3所有组件串联为自动运行的超级管道。核心能力:(1) 一键全流程 (2) 定时自动运行 (3) 异常自愈 (4) 利润报告

Registry SourceRecently Updated
Automation

智美人AI实战课

《智美人AI Agent实战课》配套技能——从0到1搭建AI Agent的完整课程体系。第01节:AI Agent基础概念+工具链搭建。课程内容含数字人讲解视频、实战代码、课后练习。覆盖:OpenClaw配置、技能安装、MCP工具、多Agent协同、变现实战。

Registry SourceRecently Updated
Automation

利润优化引擎

利润优化引擎 — 订单管理/计价/结算模拟。核心能力:(1) 订单管理 (2) 计价模型 (3) 成本追踪 (4) 利润计算

Registry SourceRecently Updated