Memory Engine

OpenClaw 3.8+ 智能上下文管理与记忆系统插件

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 "Memory Engine" with this command: npx skills add lizhelong0907/memory-engine

Memory Engine

OpenClaw 3.8+ 智能上下文管理与记忆系统插件。

功能

  • 本地向量存储:基于 SQLite + ONNX 本地推理,无需联网
  • 语义搜索:支持语义相似度匹配
  • 自动知识提取:从对话中自动提取关键信息
  • 记忆分类:支持多种记忆类型(fact/experience/lesson/preference/skill)
  • 重要性评分:根据重要性自动过滤低价值记忆
  • 去重:基于语义相似度自动去重

安装

npm install memory-engine
# 或从 GitHub 安装
npm install github:lizhelong0907/memory-engine

使用

通过 OpenClaw

插件提供以下工具:

  • memory_save - 保存重要信息到记忆系统
  • memory_search - 搜索记忆
  • memory_list - 列出所有记忆
  • memory_stats - 获取记忆统计信息

编程使用

const { createMemoryEngine } = require('memory-engine');

async function main() {
  const engine = await createMemoryEngine({
    dbPath: './data/memories.db'
  });

  // 保存记忆
  await engine.addMemory({
    content: '用户爱吃水煎饺',
    type: 'preference',
    importance: 0.8
  });

  // 搜索记忆
  const results = await engine.searchMemories('吃');
  console.log(results);

  await engine.shutdown();
}

main();

配置

详见 CONFIG.md

数据库

  • 默认路径:~/.openclaw/memory/memories.db
  • 使用 SQLite 存储

模型

内置模型:models/all-MiniLM-L6-v2.onnx

  • 维度:384
  • 大小:~90MB
  • 无需额外下载

许可证

MIT

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

Context Handoff

保存和恢复聊天上下文到本地文件。用于用户想在切换账号、清空 session、重新开会话、跨会话延续项目时,把当前会话级上下文或项目级摘要落盘并在之后恢复。也用于列出已有的会话上下文槽位或项目摘要,并按更新时间排序返回最近使用项。触发词包括:保存当前上下文、保存会话摘要、保存项目摘要、记下这次讨论、切号前保存、恢复...

Registry SourceRecently Updated
1780Profile unavailable
General

Memory Organizer

Organize, compress, and curate OpenClaw memory without polluting permanent memory. Use when the user wants to compress memory files, clean dated memory notes...

Registry SourceRecently Updated
8092Profile unavailable
Automation

Openclaw Memory Master

AI Memory System with LLM Wiki

Registry SourceRecently Updated
2511Profile unavailable
Automation

OpenViking Setup

Set up OpenViking context database for OpenClaw agents. OpenViking is an open-source context database designed specifically for AI agents with filesystem-bas...

Registry SourceRecently Updated
4080Profile unavailable