← 返回
AI智能 中文

OpenClaw Advanced Memory

Provides persistent, searchable AI agent memory with real-time capture, vector search, and nightly LLM curation for long-term recall on local hardware.
提供持久可搜索的 AI 代理记忆,实时捕获、向量搜索和夜间 LLM 整理,在本地硬件上实现长期召回。
jtil4201
AI智能 clawhub v1.0.0 1 版本 99875.9 Key: 无需
★ 1
Stars
📥 785
下载
💾 30
安装
1
版本
#latest#memory#ollama#qdrant#redis#vector-search

概述

OpenClaw Advanced Memory

Three-tier AI agent memory system — real-time capture, vector search, and LLM-curated long-term recall.

What It Does

Gives your OpenClaw agent persistent, searchable memory that survives across sessions:

  • HOT tier — Redis buffer captures conversation turns in real-time (every 30s)
  • WARM tier — Qdrant vector store with chunked, embedded conversations (searchable, 7-day retention)
  • COLD tier — LLM-curated "gems" extracted nightly (decisions, lessons, milestones — stored forever)

Requirements

  • Qdrant — vector database (Docker recommended)
  • Redis — buffer queue (Docker recommended)
  • Ollama — local embeddings (snowflake-arctic-embed2) + curation LLM (qwen2.5:7b)
  • Python 3.10+ with qdrant-client, redis, requests

No cloud APIs. No subscriptions. Runs entirely on your own hardware.

Setup

# 1. Start Qdrant + Redis (Docker)
docker compose up -d

# 2. Pull Ollama models
ollama pull snowflake-arctic-embed2
ollama pull qwen2.5:7b

# 3. Run the installer
bash scripts/install.sh

The installer sets up Qdrant collections, installs a systemd capture service, and configures cron jobs.

Edit connection hosts at the top of each script if your infra isn't on localhost.

Usage

# Search your memory
./recall "what did we decide about pricing"
./recall "deployment" --project myproject --tier cold -v

# Check system status
./mem-status

# Force a warm flush or curation run
./warm-now
./curate-now 2026-03-01

Schedules

ComponentScheduleWhat It Does
----------------------------------
mem-captureAlways running (systemd)Watches transcripts → Redis
mem-warmEvery 30 min (cron)Redis → Qdrant warm
mem-curateNightly 2 AM (cron)Warm → LLM curation → Qdrant cold

How Curation Works

Every night, a local LLM (qwen2.5:7b via Ollama) reads the day's conversations and extracts structured gems:

{
  "gem": "Chose DistilBERT over TinyBERT — 99.69% F1, zero false positives",
  "context": "A/B tested both architectures on red team suite",
  "categories": ["decision", "technical"],
  "project": "guardian",
  "importance": "high"
}

Only decisions, milestones, lessons, and people info make the cut. Casual banter and debugging noise get filtered out.

Links

  • GitHub: https://github.com/jtil4201/openclaw-advanced-memory
  • Full docs: See README.md in the repo for architecture diagrams, tuning guide, and adaptation notes

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 07:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Guardian Shield

jtil4201
本地扫描不受信任的文本和文档,检测并阻止提示注入、越狱、数据泄露和社会工程攻击。
★ 0 📥 716
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,248
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,360 📥 318,618