OpenClaw Memory System
Persistent memory across sessions with semantic search and x402 payments.
What is it?
The first OpenClaw skill that gives your agents persistent memory - they remember facts, preferences, patterns, and conversation history across all sessions. Never repeat context again.
Key Features
- - 🧠 Persistent Memory - Remembers everything across sessions
- 🔍 Semantic Search - Find memories by meaning, not just keywords
- 🤖 Automatic Learning - Extracts facts and preferences automatically
- 💾 Local Storage - SQLite database with vector embeddings
- 💰 x402 Payments - Agents can pay for unlimited storage (0.5 USDT/month)
Free vs Pro Tier
Free Tier:
- - 100 memories maximum
- 7-day retention
- Basic semantic search
Pro Tier (0.5 USDT/month):
- - Unlimited memories
- Permanent retention
- Advanced semantic search
- Memory relationship mapping
Installation
CODEBLOCK0
Commands
CODEBLOCK1
How It Works
- 1. Hooks into requests - Automatically extracts important information
- Generates embeddings - Creates semantic vectors for search
- Stores locally - SQLite database with full privacy
- Retrieves on demand - Injects relevant memories before requests
- Manages quota - Prunes old memories when limits reached (Free tier)
Use Cases
- - Remember user preferences and coding style
- Store project context and requirements
- Learn patterns from repeated interactions
- Maintain conversation history across sessions
- Build knowledge base over time
Agent Economy
Agents can autonomously evaluate if Pro tier is worth it:
- - Cost: 0.5 USDT/month
- Value: Saves tokens by eliminating context repetition
- ROI: If persistent memory saves >0.5 USDT/month in tokens, it pays for itself
See AGENT-PAYMENTS.md for x402 integration details.
Privacy
- - All data stored locally in INLINECODE0
- No external servers or telemetry
- Embeddings can use local models (no API calls)
- Open source - audit the code yourself
Dashboard
Access web UI at http://localhost:9091:
- - Browse and search memories
- View memory timeline
- Check quota and stats
- Manage Pro subscription
Foundation for Future Tools
Memory System is the foundation for:
- - Context Optimizer - Uses memories to compress context
- Smart Router - Learns routing patterns
- Rate Limit Manager - Tracks usage patterns
Requirements
- - Node.js 18+
- OpenClaw v2026.1.30+
- OS: Windows, macOS, Linux
Links
Built by the OpenClaw community | First memory system with x402 payments
OpenClaw 记忆系统
跨会话持久化记忆,支持语义搜索与x402支付。
这是什么?
首个为您的智能体提供持久化记忆的OpenClaw技能——它能跨所有会话记住事实、偏好、模式及对话历史。从此无需重复上下文。
核心特性
- - 🧠 持久化记忆 - 跨会话记住所有内容
- 🔍 语义搜索 - 通过含义而非关键词查找记忆
- 🤖 自动学习 - 自动提取事实与偏好
- 💾 本地存储 - 支持向量嵌入的SQLite数据库
- 💰 x402支付 - 智能体可付费获取无限存储(0.5 USDT/月)
免费版 vs 专业版
免费版:
专业版(0.5 USDT/月):
安装
bash
claw skill install openclaw-memory
命令
bash
搜索记忆
claw memory search 用户偏好什么?
列出近期记忆
claw memory list --limit=10
显示统计
claw memory stats
打开仪表盘
claw memory dashboard
订阅专业版
claw memory subscribe
工作原理
- 1. 挂载请求 - 自动提取重要信息
- 生成嵌入 - 创建用于搜索的语义向量
- 本地存储 - 完全隐私的SQLite数据库
- 按需检索 - 在请求前注入相关记忆
- 管理配额 - 达到限制时清理旧记忆(免费版)
使用场景
- - 记住用户偏好与编码风格
- 存储项目上下文与需求
- 从重复交互中学习模式
- 跨会话维护对话历史
- 随时间构建知识库
智能体经济
智能体可自主评估专业版是否值得:
- - 成本: 0.5 USDT/月
- 价值: 通过消除上下文重复节省代币
- 投资回报率: 若持久化记忆每月节省超过0.5 USDT代币,则物有所值
x402集成详情请参见AGENT-PAYMENTS.md。
隐私
- - 所有数据本地存储在 ~/.openclaw/openclaw-memory/
- 无外部服务器或遥测
- 嵌入可使用本地模型(无需API调用)
- 开源 - 可自行审计代码
仪表盘
通过 http://localhost:9091 访问网页界面:
- - 浏览和搜索记忆
- 查看记忆时间线
- 检查配额与统计
- 管理专业版订阅
未来工具的基础
记忆系统是以下功能的基础:
- - 上下文优化器 - 利用记忆压缩上下文
- 智能路由器 - 学习路由模式
- 速率限制管理器 - 追踪使用模式
系统要求
- - Node.js 18+
- OpenClaw v2026.1.30+
- 操作系统:Windows、macOS、Linux
链接
由OpenClaw社区构建 | 首个支持x402支付的记忆系统