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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install swap-memory - After installation, invoke the skill by name or use
/swap-memory - Provide required inputs per the skill's parameter spec and get structured output
What is Swap Memory?
Automatically stores and retrieves conversation chunks for OpenClaw agents using a three-layer memory system without external dependencies. It is an AI Agent Skill for Claude Code / OpenClaw, with 19 downloads so far.
How do I install Swap Memory?
Run "/install swap-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Swap Memory free?
Yes, Swap Memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Swap Memory support?
Swap Memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Swap Memory?
It is built and maintained by mikefaierberg-byte (@mikefaierberg-byte); the current version is v3.3.0.