Install
openclaw skills install memory-engineOpenClaw 3.8+ 智能上下文管理与记忆系统插件
openclaw skills install memory-engineOpenClaw 3.8+ 智能上下文管理与记忆系统插件。
npm install memory-engine
# 或从 GitHub 安装
npm install github:lizhelong0907/memory-engine
插件提供以下工具:
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内置模型:models/all-MiniLM-L6-v2.onnx
MIT