Swap Memory
/install swap-memory
Swap Memory Plugin
Auto-store conversations and retrieve context for OpenClaw agents.
Three-layer memory: hot (6h chunks) → warm (wiki session logs) → cold (wiki lessons).
No cron jobs, no external dependencies. Nothing is ever lost.
Installation
Add to openclaw.json:
{
"plugins": {
"entries": {
"swap-memory": {
"source": "workspace/plugins/swap-memory/src/index.js",
"enabled": true,
"config": {
"enabled": true,
"defaultAgent": "main",
"crossSearchEnabled": false
}
}
}
}
}
Restart: openclaw gateway restart
Usage
The plugin works automatically — it hooks into agent_end and before_prompt_build to store and retrieve conversation chunks.
Commands
| Slash | Description |
|---|---|
/swap-status |
Show statistics: chunks, pins, retrievals |
/swap-dashboard |
Visual progress bars per agent |
/swap-promote \x3Ckeyword> |
Pin matching chunks |
/swap-cross on|off |
Toggle cross-agent search (OFF by default) |
Adding tools to custom agents
If your agent has a tools.profile (e.g. coding, messaging), add to alsoAllow:
"alsoAllow": ["swap_status","swap_dashboard","swap_promote","swap_cross"]
Requirements
- OpenClaw ≥ 2026.5
- Memory core enabled (
memory.enabled: true) - Wiki enabled (
wiki.enabled: true)
Links
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install swap-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/swap-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Swap Memory 是什么?
Automatically stores and retrieves conversation chunks for OpenClaw agents using a three-layer memory system without external dependencies. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 19 次。
如何安装 Swap Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install swap-memory」即可一键安装,无需额外配置。
Swap Memory 是免费的吗?
是的,Swap Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Swap Memory 支持哪些平台?
Swap Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Swap Memory?
由 mikefaierberg-byte(@mikefaierberg-byte)开发并维护,当前版本 v3.3.0。