← 返回
未分类 中文

Lovefromio Openclaw Persistent Memory

Persistent memory system - automatic context capture and semantic search
持久记忆系统 - 自动上下文捕获与语义搜索
lovefromio lovefromio 来源
未分类 clawhub v1.0.0 1 版本 99665.6 Key: 无需
★ 0
Stars
📥 298
下载
💾 1
安装
1
版本
#latest

概述

OpenClaw Persistent Memory

Persistent memory system that automatically captures context across sessions using SQLite + FTS5.

Features

  • 🧠 Auto-capture - Important observations saved automatically after each response
  • 🔍 Auto-recall - Relevant memories injected before each prompt
  • 💾 SQLite + FTS5 - Fast full-text search across all memories
  • 🛠️ Tools - memory_search, memory_get, memory_store, memory_delete
  • 📊 Progressive disclosure - Token-efficient retrieval

Setup

  1. Install the npm package:

```bash

npm install -g openclaw-persistent-memory

```

  1. Start the worker service:

```bash

openclaw-persistent-memory start

```

  1. Install the OpenClaw extension:

```bash

# Copy extension to OpenClaw extensions directory

cp -r node_modules/openclaw-persistent-memory/extension ~/.openclaw/extensions/openclaw-mem

cd ~/.openclaw/extensions/openclaw-mem && npm install

```

  1. Configure OpenClaw (in ~/.openclaw/openclaw.json):

```json

{

"plugins": {

"slots": {

"memory": "openclaw-mem"

},

"allow": ["openclaw-mem"],

"entries": {

"openclaw-mem": {

"enabled": true,

"config": {

"workerUrl": "http://127.0.0.1:37778",

"autoCapture": true,

"autoRecall": true

}

}

}

}

}

```

  1. Restart OpenClaw gateway

Tools Provided

ToolDescription
-------------------
memory_searchSearch memories with natural language
memory_getGet a specific memory by ID
memory_storeSave important information
memory_deleteDelete a memory by ID

API Endpoints

Worker runs on http://127.0.0.1:37778:

EndpointMethodDescription
-------------------------------
/api/healthGETHealth check
/api/statsGETDatabase statistics
/api/searchPOSTFull-text search
/api/observationsGETList recent observations
/api/observations/:idGETGet observation
/api/observations/:idDELETEDelete observation
/api/observations/:idPATCHUpdate observation

Troubleshooting

Worker not running

curl http://127.0.0.1:37778/api/health
# If fails, restart:
openclaw-persistent-memory start

Auto-recall not working

  • Check OpenClaw logs: tail ~/.openclaw/logs/*.log | grep openclaw-mem
  • Verify plugins.slots.memory is set to "openclaw-mem"
  • Restart gateway after config changes

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 01:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Lovefromio Continuous Learning

lovefromio
自动从建筑自动化会话中提取模式、最佳实践和可重复使用的知识,以提升后续性能。
★ 0 📥 499

Lovefromio Getnote

lovefromio
Get笔记 – 个人笔记和知识库管理工具。支持一键保存链接、图片或文字为笔记,自动生成摘要、OCR 识别和 AI 分析。触发词包括“记一下”“存到笔记”“保存这个链接”等。
★ 0 📥 464

Lovefromio Github

lovefromio
使用 `gh` CLI 与 GitHub 交互。通过`gh issue`、`gh pr`、`gh run` 和 `gh api` 管理 issue、PR、CI 运行以及高级查询。
★ 0 📥 537