Install
openclaw skills install openclaw-memory-osOpenClaw Memory-OS - Digital immortality service with conversation recording infrastructure (Phase 1) | 数字永生服务对话记录基础设施(第一阶段)
openclaw skills install openclaw-memory-osEnglish | 中文
READ THIS BEFORE INSTALLING OR ENABLING AUTO-TRIGGER
IMPLEMENTED:
~/.ssh/, ~/.aws/, .env files, system credentials--allow-dangerous flag + confirmation for sensitive pathsREMAINING RISKS:
~/.memory-os/--allow-dangerousDO:
remember command only (avoid AUTO-TRIGGER)collect --source to specific, non-sensitive folders~/.memory-os/memories/*.json regularly~/.memory-os/ yourself if neededDO NOT:
collect --source ~/ or other broad paths with sensitive data.env, .aws/, .ssh/, credentials.json, etc.Step 1: Inspect the npm package
# View package contents before installing
npm view openclaw-memory-os@0.3.0
# Check for postinstall scripts (should be none)
npm show openclaw-memory-os@0.3.0 scripts
# Download and inspect without installing
npm pack openclaw-memory-os@0.3.0
tar -xzf openclaw-memory-os-0.2.2.tgz
cat package/package.json
Step 2: Verify GitHub source matches npm package
# Clone verified commit
git clone https://github.com/ZhenRobotics/openclaw-memory-os.git
cd openclaw-memory-os
git checkout 091eeab814533d2e3ae1738693445d2de8b3ab4d
# Review critical files
cat src/cli/index.ts # CLI entry point
cat src/conversation/privacy-filter.ts # Privacy filter implementation (exists but not integrated)
cat src/storage/local-storage.ts # Storage mechanism
Step 3: Test in isolated environment
# Use Docker for isolation
docker run -it --rm --network none node:18 bash
npm install -g openclaw-memory-os@0.3.0
openclaw-memory-os init
openclaw-memory-os remember "test data"
# Inspect what was created
ls -la ~/.memory-os/
cat ~/.memory-os/memories/*.json
Step 4: Monitor network activity
# In one terminal
sudo tcpdump -i any 'port 443 or port 80'
# In another terminal
openclaw-memory-os remember "test"
# Should see ZERO network traffic after installation
Step 5: Review filesystem permissions
# Set strict permissions on data directory
chmod 700 ~/.memory-os/
chmod 600 ~/.memory-os/memories/*.json
# Optional: Move to encrypted volume
mv ~/.memory-os/ /path/to/encrypted/volume/
ln -s /path/to/encrypted/volume/.memory-os ~/
For privacy protection, AUTO-TRIGGER is OFF by default. You must explicitly enable it in config.
What is AUTO-TRIGGER?
~/.memory-os/ (⚠️ no confirmation prompt in v0.2.2)Default Behavior (Safe):
You: "记住我的名字是刘小容"
→ Nothing happens (AUTO-TRIGGER is OFF)
To save, use manual command:
$ openclaw-memory-os remember "我的名字是刘小容"
How to Enable AUTO-TRIGGER (Optional):
# Method 1: Edit config
nano ~/.memory-os/config.json
{"auto_trigger": true}
# Method 2: During init (if implemented)
openclaw-memory-os init --enable-auto-trigger
Privacy Considerations if Enabled:
Recommended: Use manual commands for full control, only enable AUTO-TRIGGER after testing in sandbox.
If you use AI agents with autonomous execution capabilities:
⚠️ DO NOT enable AUTO-TRIGGER if agents have autonomous invocation access
Risk Scenario:
1. Agent autonomously decides to "remember" something
2. AUTO-TRIGGER detects keyword → saves immediately (no prompt)
3. Saved content may include API keys from agent's context
4. No confirmation, no filtering, plaintext storage
Safe Configuration:
remember command onlyopenclaw-memory-os commandsdisable-model-invocation: true in skill config if availableBlast Radius:
Implementation Status: Code exists but not yet integrated into CLI
The privacy filter is implemented in the codebase (src/conversation/privacy-filter.ts) with comprehensive rules:
Current Limitation: The filter is not automatically applied during memory collection in v0.2.2. Users must:
cat ~/.memory-os/memories/*.jsonrm ~/.memory-os/memories/<uuid>.jsonPlanned: Automatic privacy filter integration in v0.3.0
# 1. Install
npm install -g openclaw-memory-os@0.3.0
# 2. Initialize
openclaw-memory-os init
# 3. Test (optional)
mkdir ~/test-memories
echo "Test note" > ~/test-memories/note.txt
openclaw-memory-os collect --source ~/test-memories/
openclaw-memory-os search "test"
git clone https://github.com/ZhenRobotics/openclaw-memory-os.git
cd openclaw-memory-os
npm install && npm run build && npm link
v0.3.0 (Current - Security First):
collect --source ~/notes/NOT Included (Planned for v0.3.0+):
By default, AUTO-TRIGGER is OFF. Use manual commands for full control:
# Batch collect files
openclaw-memory-os collect --source ~/notes/ --exclude node_modules
# Save specific memory
openclaw-memory-os remember "项目截止日期:2026-04-01"
# Search memories
openclaw-memory-os search "deadline"
# View status
openclaw-memory-os status
⚠️ Disabled by default. To enable, edit config:
nano ~/.memory-os/config.json
{"auto_trigger": true}
Once enabled, trigger keywords activate automatically:
Example (only works after enabling):
User: "记住项目截止日期:2026-04-01"
→ Extracts: date=2026-04-01, event="项目截止"
→ Saves: ~/.memory-os/memories/<uuid>.json
Agent: ✅ 已记住
日期: 2026-04-01
事件: 项目截止
# VM/container test
docker run -it --rm ubuntu:22.04 bash
npm install -g openclaw-memory-os@0.3.0
openclaw-memory-os init
# Say trigger words and check ~/.memory-os/
# ✅ Good: Specific directory
openclaw-memory-os collect --source ~/project-notes/
# ✅ Good: With exclusions
openclaw-memory-os collect --source ~/Documents/ --exclude sensitive
# ❌ Avoid: Broad scope
openclaw-memory-os collect --source ~/ # Too broad
# List all memories
ls ~/.memory-os/memories/
# Search for sensitive data
grep -r "password\|secret" ~/.memory-os/
# Delete unwanted data
rm ~/.memory-os/memories/<uuid>.json
# Verify zero network activity
sudo tcpdump -i any port 443 or port 80 &
openclaw-memory-os collect --source ~/test/
# Should see NO external connections
Node.js Integration:
import { MemoryOS, MemoryType } from 'openclaw-memory-os';
const memory = new MemoryOS({ storePath: '~/.memory-os' });
await memory.init();
// Save memory
await memory.collect({
type: MemoryType.TEXT,
content: 'User prefers TypeScript',
metadata: { tags: ['preference'], source: 'manual' }
});
// Search (local keyword matching)
const results = await memory.search({ query: 'TypeScript', limit: 5 });
// Timeline
const timeline = await memory.timeline({
date: new Date('2024-03-01'),
range: 'day'
});
See full API docs: GitHub README
Security Limitations:
--allow-dangerous bypasses path protectionFeature Limitations:
Implementation Notes:
English | 中文
安装或启用 AUTO-TRIGGER 前请仔细阅读
已实现:
~/.ssh/、~/.aws/、.env 文件、系统凭证--allow-dangerous 标志 + 确认剩余风险:
~/.memory-os/--allow-dangerous 覆盖保护应该做:
remember 命令(避免 AUTO-TRIGGER)collect --source 到特定、非敏感文件夹~/.memory-os/memories/*.json~/.memory-os/不应该做:
collect --source ~/.env、.aws/、.ssh/、credentials.json 等为保护隐私,AUTO-TRIGGER 默认关闭。您必须在配置中明确启用。
什么是 AUTO-TRIGGER?
~/.memory-os/(⚠️ v0.2.2 无确认提示)默认行为(安全):
用户:"记住我的名字是刘小容"
→ 无反应(AUTO-TRIGGER 已关闭)
如需保存,使用手动命令:
$ openclaw-memory-os remember "我的名字是刘小容"
如何启用 AUTO-TRIGGER(可选):
# 方法 1: 编辑配置
nano ~/.memory-os/config.json
{"auto_trigger": true}
# 方法 2: 初始化时启用(如果已实现)
openclaw-memory-os init --enable-auto-trigger
启用后的隐私注意事项:
建议: 使用手动命令以获得完全控制,仅在沙盒测试后启用 AUTO-TRIGGER。
# 1. 安装
npm install -g openclaw-memory-os@0.3.0
# 2. 初始化
openclaw-memory-os init
# 3. 测试
mkdir ~/test-memories
echo "测试笔记" > ~/test-memories/note.txt
openclaw-memory-os collect --source ~/test-memories/
openclaw-memory-os search "测试"
v0.3.0(当前 - 安全优先):
collect --source ~/notes/未包含(计划 v0.3.0+):
默认情况下,AUTO-TRIGGER 已关闭。使用手动命令以获得完全控制:
# 批量采集文件
openclaw-memory-os collect --source ~/notes/ --exclude node_modules
# 保存特定记忆
openclaw-memory-os remember "项目截止日期:2026-04-01"
# 搜索记忆
openclaw-memory-os search "截止"
# 查看状态
openclaw-memory-os status
⚠️ 默认关闭。启用方法:
nano ~/.memory-os/config.json
{"auto_trigger": true}
启用后,触发关键词自动激活:
示例(仅在启用后生效):
用户:"记住项目截止日期:2026-04-01"
→ 提取:date=2026-04-01, event="项目截止"
→ 保存:~/.memory-os/memories/<uuid>.json
Agent:✅ 已记住
日期:2026-04-01
事件:项目截止
docker run -it --rm ubuntu:22.04 bash
npm install -g openclaw-memory-os@0.3.0
openclaw-memory-os init
# 说触发词并检查 ~/.memory-os/
# ✅ 推荐:特定目录
openclaw-memory-os collect --source ~/project-notes/
# ❌ 避免:过于广泛
openclaw-memory-os collect --source ~/ # 范围太大
# 列出所有记忆
ls ~/.memory-os/memories/
# 搜索敏感数据
grep -r "密码\|secret" ~/.memory-os/
# 删除不需要的数据
rm ~/.memory-os/memories/<uuid>.json
# 验证零网络活动
sudo tcpdump -i any port 443 or port 80 &
openclaw-memory-os collect --source ~/test/
# 应该看不到任何外部连接
安全限制:
--allow-dangerous 绕过路径保护功能限制:
实现说明:
License: MIT-0 · Memory-OS v0.2.2 - 100% Local, 0% Cloud, Your Data, Your Control