Install
openclaw skills install @zhenstaff/memory-opportunityOpenClaw Memory-OS - Digital immortality service with conversation memory extraction | 数字永生服务与对话记忆自动提取
openclaw skills install @zhenstaff/memory-opportunityEnglish | 中文
Current Version Status:
~/.memory-os/What v0.1.2 Does:
What v0.1.2 Does NOT Do:
Data Control:
~/.memory-os/rm -rf ~/.memory-os/ removes everythingRecommended Safe Usage:
~/Documents~/.memory-os/data/memories/Digital immortality service and cognitive continuity infrastructure.
AI-powered personal memory management system for capturing, storing, and intelligently retrieving your digital memories.
# Install the skill
clawhub install openclaw-memory-opportunity
# Global installation
npm install -g openclaw-memory-opportunity
# Or from source
git clone https://github.com/ZhenRobotics/openclaw-memory-opportunity.git
cd openclaw-memory-opportunity
npm install
npm run build
npm link
# Initialize (creates ~/.memory-os/)
openclaw-memory-opportunity init
# Configure (optional)
openclaw-memory-opportunity config set owner.name "Your Name"
openclaw-memory-opportunity config set owner.email "your@email.com"
# Create test directory with sample files
mkdir -p ~/test-memories
echo "My first note" > ~/test-memories/note1.txt
echo "# Learning Log" > ~/test-memories/log.md
# Collect memories from directory
openclaw-memory-opportunity collect --source ~/test-memories/
# Verify collection
openclaw-memory-opportunity status
openclaw-memory-opportunity search "first"
Security Check:
# Verify data location
ls -la ~/.memory-os/memories/
# Inspect collected memories
cat ~/.memory-os/memories/*.json | head -20
AUTO-TRIGGER (New in v0.1.2 - Conversation Memory):
The skill now automatically responds to memory-related conversations:
Trigger Keywords (Chinese):
记住 - "记住我的名字:刘小容"保存 - "帮我保存这个信息"记录 - "记录今天的会议内容"Trigger Keywords (English):
remember - "Remember my name is Liu Xiaorong"save to memory - "Save this to memory"keep in mind - "Keep in mind that..."How It Works:
Example Usage:
User: 记住我的名字:刘小容
Agent: ✅ 已记住
姓名: 刘小容
置信度: 80%
User: Remember that the project deadline is 2026-04-01
Agent: ✅ Remembered
Date: 2026-04-01
Event: project deadline
Confidence: 90%
MANUAL TRIGGER (For batch file operations):
Use explicit commands when you want to:
DO NOT USE when:
v0.1.1 (Current):
~/.memory-os/Planned for Future Versions:
# Create test user or use VM
# Install in test environment first
npm install -g openclaw-memory-opportunity
# Initialize
openclaw-memory-opportunity init
# Create test data
mkdir ~/test-memories
echo "Test note 1" > ~/test-memories/note1.txt
echo "Test note 2" > ~/test-memories/note2.md
# Collect from test directory
openclaw-memory-opportunity collect --source ~/test-memories/
# Check what was collected
ls ~/.memory-os/memories/
# Read individual memory files
cat ~/.memory-os/memories/*.json | jq '.'
# View statistics
openclaw-memory-opportunity status
# ✅ Good: Specific directory
openclaw-memory-opportunity collect --source ~/my-project-notes/
# ✅ Good: With exclusions
openclaw-memory-opportunity collect --source ~/Documents/ --exclude node_modules .git dist
# ⚠️ Caution: Broad scope
openclaw-memory-opportunity collect --source ~/Documents/
# ❌ Dangerous: System-wide
openclaw-memory-opportunity collect --source ~/ # DON'T DO THIS
# View all memories
openclaw-memory-opportunity status
# Search for specific content
openclaw-memory-opportunity search "keyword"
# Delete specific memory
rm ~/.memory-os/memories/<memory-id>.json
# Complete removal
rm -rf ~/.memory-os/
# v0.1.1 should have ZERO network traffic
# Monitor with:
sudo tcpdump -i any port 443 or port 80 &
openclaw-memory-opportunity collect --source ~/test-data/
# Should see NO external connections
Command Line:
# Chinese example
openclaw-memory-opportunity remember "记住我的名字:刘小容"
# English example
openclaw-memory-opportunity remember "Remember my name is Liu Xiaorong"
# Complex information
openclaw-memory-opportunity remember "记住:项目截止日期是2026年4月1日,负责人是张三"
In Claude Conversation:
You: 记住我的名字:刘小容
Claude: ✅ 已记住!
姓名: 刘小容
存储位置: ~/.memory-os/memories/
类型: TEXT
The system intelligently extracts:
NEW in v0.1.2 - Conversation Memory:
CRITICAL for v0.1.1:
Package Name: When importing, use openclaw-memory-opportunity:
import { MemoryOS, MemoryType } from 'openclaw-memory-opportunity';
CLI Name: When using CLI, use openclaw-memory-opportunity:
openclaw-memory-opportunity init
openclaw-memory-opportunity collect --source ~/specific-folder
import { MemoryOS, MemoryType } from 'openclaw-memory-opportunity';
const memory = new MemoryOS({
storePath: '~/.memory-os' // Local storage
});
await memory.init();
// Save text memory (local JSON file)
await memory.collect({
type: MemoryType.TEXT,
content: 'User prefers TypeScript',
metadata: {
tags: ['preference'],
source: 'manual',
},
});
// Basic keyword search (no AI)
const results = await memory.search({
query: 'TypeScript', // Simple text matching
limit: 5,
});
// Tag-based search
const tagResults = await memory.search({
tags: ['preference'],
});
// Query local timeline
const timeline = await memory.timeline({
date: new Date('2024-03-01'),
range: 'day',
});
# Initialize (creates local directory)
openclaw-memory-opportunity init
# Collect from specific directory (NEW in v0.1.1 - fully functional)
openclaw-memory-opportunity collect --source ~/my-notes/
# Collect with options
openclaw-memory-opportunity collect --source ~/Documents/ --exclude node_modules .git
openclaw-memory-opportunity collect --source ~/code/ --recursive
# Search locally
openclaw-memory-opportunity search "keyword"
openclaw-memory-opportunity search --type text "programming notes"
# Status (shows total memories, type breakdown)
openclaw-memory-opportunity status
# Inspect data location
openclaw-memory-opportunity status
# View statistics (local computation)
openclaw-memory-opportunity stats
# Export data (local file copy)
openclaw-memory-opportunity export ~/backup/
# Complete removal
rm -rf ~/.memory-os/
v0.1.0 Configuration (No API keys needed):
{
"storage": {
"path": "~/.memory-os/data",
"backend": "local"
},
"collectors": {
"auto": false, // Manual only
"sources": [], // Must be explicitly set
"exclude": ["node_modules", ".git", ".env"]
},
"privacy": {
"encryption": false,
"shareStats": false
}
}
Future Configuration (v0.2.0+, when AI features are implemented):
{
"embedding": {
"provider": "openai", // Will require API key
"apiKey": "${OPENAI_API_KEY}"
},
"llm": {
"provider": "anthropic", // Will require API key
"apiKey": "${ANTHROPIC_API_KEY}"
}
}
Will introduce:
Security measures planned:
Will introduce:
MIT-0 License
English | 中文
当前版本状态:
~/.memory-os/data/v0.1.0 能做什么:
v0.1.0 不能做什么:
数据控制:
~/.memory-os/data/rm -rf ~/.memory-os/ 删除所有内容推荐安全使用:
~/Documents 等广泛模式~/.memory-os/data/memories/数字永生服务 | 认知延续基础设施
AI 驱动的个人记忆管理系统,用于捕获、存储和智能检索您的数字记忆。
[安装步骤与英文版相同]
手动触发(v0.1.0 推荐):
显式使用时:
自动触发(⚠️ 谨慎使用):
关键词:memory、remember、recall、记忆、回忆、记住、保存
⚠️ 安全建议:
v0.1.0 MVP(当前):
~/.memory-os/data/未来版本计划:
[安全最佳实践与英文版相同]
MIT-0 License
Memory-OS v0.1.2 - 100% Local, 0% Cloud, Your Data, Your Control
Version: 0.1.2 | Verified Commit: 28a1a92 | Status: Production-Ready with Conversation Memory