/install openclaw-memorybox
MemoryBox
Zero-dependency memory maintenance tool for OpenClaw agents.
What It Does
Prevents MEMORY.md bloat by organizing memory into 3 tiers:
- Tier 1: MEMORY.md (≤10KB, loaded every session)
- Tier 2: memory/domains/*.md (searched on-demand)
- Tier 3: memory/archive/ (old daily logs)
Works alongside Mem0, Supermemory, QMD, or standalone. Only touches file structure — never configs or plugins.
Install
git clone https://github.com/Ramsbaby/openclaw-memorybox.git
cd openclaw-memorybox && chmod +x bin/memorybox
sudo ln -sf "$(pwd)/bin/memorybox" /usr/local/bin/memorybox
Usage
memorybox doctor ~/openclaw # Full diagnostic (start here)
memorybox split ~/openclaw # Interactive: move bloated sections to domain files
memorybox health ~/openclaw # Quick health score (0-100)
memorybox archive ~/openclaw # Archive old daily logs (14+ days)
memorybox dedupe ~/openclaw # Find duplicate content
memorybox stale ~/openclaw # Detect outdated content
memorybox analyze ~/openclaw # Section-by-section size breakdown
memorybox suggest ~/openclaw # Improvement recommendations
memorybox report ~/openclaw # Before/after token savings
memorybox init ~/openclaw # Set up 3-tier directory structure
Teach Your Agent
Add to AGENTS.md:
## Memory Protocol
- **MEMORY.md** (≤10KB): Core facts only. Loaded everywhere — keep it lean.
- **memory/domains/*.md**: Detailed reference. Use `memory_search` to find.
- **memory/archive/**: Old logs. Rarely needed.
Results
Tested on production (7 Discord channels, 48 crons):
- MEMORY.md: 20KB → 3.5KB (-83%)
- Context pressure: 98% → 7%
- Setup time: 5 minutes
Links
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-memorybox - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-memorybox触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
MemoryBox 是什么?
Zero-dependency memory maintenance CLI for OpenClaw. Keeps MEMORY.md lean with 3-tier hierarchical organization. Works alongside Mem0, Supermemory, QMD — or standalone. Install once, forget about memory management. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1900 次。
如何安装 MemoryBox?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-memorybox」即可一键安装,无需额外配置。
MemoryBox 是免费的吗?
是的,MemoryBox 完全免费(开源免费),可自由下载、安装和使用。
MemoryBox 支持哪些平台?
MemoryBox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 MemoryBox?
由 Ramsbaby(@ramsbaby)开发并维护,当前版本 v2.0.0。