Swap Memory
v3.3.0Automatically stores and retrieves conversation chunks for OpenClaw 代理s using a three-layer memory 系统 without external dependencies.
运行时依赖
安装命令
点击复制本土化适配说明
Swap Memory 安装说明: 安装命令:["openclaw skills install swap-memory"]
技能文档
Swap Memory 插件 自动存储对话并为 OpenClaw 代理检索上下文。 三层内存:热(6小时块)→ 暖(维基会话日志)→ 冷(维基课程)。 无 cron 作业,无外部依赖。 永远不会丢失任何内容。
安装 在 openclaw.json 中添加: { "plugins": { "entries": { "swap-memory": { "source": "workspace/plugins/swap-memory/src/index.js", "enabled": true, "config": { "enabled": true, "defaultAgent": "main", "crossSearchEnabled": false } } } } } 重启: openclaw gateway restart
使用 该插件自动工作 —— 它钩入 agent_end 和 before_prompt_build 以存储和检索对话块。
命令 斜线 描述 /swap-status 显示统计:块、引脚、检索 /swap-dashboard 每个代理的可视化进度条 /swap-promote <关键字> 引脚匹配块 /swap-cross on|off 切换跨代理搜索(默认关闭)
向自定义代理添加工具 如果您的代理具有 tools.profile(例如编码、消息传递),请添加到 alsoAllow: "alsoAllow": ["swap_status","swap_dashboard","swap_promote","swap_cross"]
要求 OpenClaw ≥ 2026.5 内存核心启用(memory.enabled: true) 维基启用(wiki.enabled: true) 链接 GitHub README 命令