openclaw-memory-os
OpenClaw Memory-OS - Digital immortality service and cognitive continuity infrastructure for personal memory management
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
OpenClaw Memory-OS - Digital immortality service and cognitive continuity infrastructure for personal memory management
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | openclaw-memory-os |
| description | OpenClaw Memory-OS - Digital immortality service and cognitive continuity infrastructure for personal memory management |
| tags | ["memory","knowledge-management","digital-immortality","cognitive-continuity","ai-memory","knowledge-graph","semantic-search","agent-memory","long-term-memory","openclaw"] |
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-os
# Global installation
npm install -g openclaw-memory-os
# Or from source
git clone https://github.com/ZhenRobotics/openclaw-memory-os.git
cd openclaw-memory-os
npm install
npm run build
npm link
# Initialize
openclaw-memory-os init
# Configure
openclaw-memory-os config set owner.name "Your Name"
openclaw-memory-os config set owner.email "your@email.com"
openclaw-memory-os status
AUTO-TRIGGER when user's message contains:
memory, remember, recall, 记忆, 回忆, 记住, 保存TRIGGER EXAMPLES:
DO NOT USE when:
Complete memory management system:
CRITICAL: This is a foundational system for digital memory. Use it for:
Package Name: When importing, use openclaw-memory-os:
import { MemoryOS, MemoryType } from 'openclaw-memory-os';
CLI Name: When using CLI, use openclaw-memory-os:
openclaw-memory-os init
openclaw-memory-os collect --source ~/Documents
When user wants to remember something:
import { MemoryOS, MemoryType } from 'openclaw-memory-os';
const memory = new MemoryOS({});
await memory.init();
// Save text memory
await memory.collect({
type: MemoryType.TEXT,
content: 'User prefers using TypeScript for all projects',
metadata: {
tags: ['preference', 'development'],
context: 'project-setup-discussion',
},
});
// Response
console.log('✓ Saved to memory');
When user wants to recall something:
// Semantic search
const results = await memory.search({
query: 'TypeScript preferences',
semantic: true,
limit: 5,
});
// Display results
for (const result of results) {
console.log(`[${result.memory.type}] ${result.memory.content}`);
console.log(` Relevance: ${(result.score * 100).toFixed(1)}%`);
console.log(` Date: ${result.memory.metadata.timestamp}`);
}
When user wants to see past activities:
// Query timeline
const timeline = await memory.timeline({
date: new Date('2024-03-01'),
range: 'day',
});
// Display
console.log(`\nActivities on ${timeline.date.toDateString()}:`);
console.log(`Total: ${timeline.stats.total} memories`);
timeline.memories.forEach(mem => {
console.log(`- [${mem.type}] ${mem.content.substring(0, 60)}...`);
});
Integration with AI agents:
// In your agent conversation loop
async function handleConversation(userMessage: string) {
// 1. Store current message
await memory.collect({
type: MemoryType.CHAT,
content: {
role: 'user',
message: userMessage,
timestamp: new Date(),
},
metadata: {
source: 'agent-chat',
tags: ['conversation'],
},
});
// 2. Retrieve relevant context
const relevant = await memory.search({
query: userMessage,
semantic: true,
limit: 5,
});
// 3. Use context in response
const context = relevant
.map(r => `[${r.memory.metadata.timestamp}] ${r.memory.content}`)
.join('\n');
// 4. Generate response with context
const response = await generateResponse({
current: userMessage,
context: context,
});
// 5. Store agent response
await memory.collect({
type: MemoryType.CHAT,
content: {
role: 'assistant',
message: response,
timestamp: new Date(),
},
metadata: {
source: 'agent-chat',
tags: ['conversation', 'response'],
},
});
return response;
}
# Initialize
openclaw-memory-os init
# Collect memories
openclaw-memory-os collect --source ~/Documents
openclaw-memory-os collect --chat chat-export.json
# Search
openclaw-memory-os search "AI and machine learning"
openclaw-memory-os search --semantic "人工智能应用"
# Timeline
openclaw-memory-os timeline --date 2024-03-01
openclaw-memory-os timeline --range "last 7 days"
# Status
openclaw-memory-os status
# Graph operations (planned)
openclaw-memory-os graph explore --topic "AI"
openclaw-memory-os graph stats
# Maintenance
openclaw-memory-os rebuild
openclaw-memory-os optimize
openclaw-memory-os export ~/backup.json
# Import all notes
openclaw-memory-os collect --source ~/Documents/Notes
# Search for specific topics
openclaw-memory-os search --semantic "machine learning algorithms"
# View knowledge graph (planned)
openclaw-memory-os graph explore
// Agent with memory
import { MemoryOS, MemoryType } from 'openclaw-memory-os';
class MemoryAgent {
private memory: MemoryOS;
async initialize() {
this.memory = new MemoryOS({});
await this.memory.init();
}
async chat(userMessage: string) {
// Store message
await this.memory.collect({
type: MemoryType.CHAT,
content: userMessage,
});
// Retrieve context
const context = await this.memory.search({
query: userMessage,
limit: 5,
});
// Use context in response...
}
}
# Collect code repos
openclaw-memory-os collect --code ~/projects
# Search code patterns
openclaw-memory-os search "authentication implementation"
# Timeline of changes
openclaw-memory-os timeline --type code --range "last month"
Memory-OS stores config in ~/.memory-os/config.json:
{
"storage": {
"path": "~/.memory-os/data",
"backend": "local"
},
"embedding": {
"provider": "openai",
"apiKey": "${OPENAI_API_KEY}",
"model": "text-embedding-3-small"
},
"collectors": {
"auto": true,
"sources": ["~/Documents", "~/Downloads"]
},
"privacy": {
"encryption": false,
"shareStats": false
}
}
openclaw-memory-os/
├── src/
│ ├── core/ # Core engine
│ ├── collectors/ # Data collectors
│ ├── storage/ # Storage layer
│ ├── query/ # Query engine
│ ├── agents/ # Agent system
│ └── cli/ # CLI tool
├── docs/ # Documentation
└── tests/ # Tests
import { BaseCollector, MemoryType } from 'openclaw-memory-os';
export class CustomCollector extends BaseCollector {
constructor() {
super('custom', MemoryType.TEXT);
}
async collect(source: string): Promise<CollectResult> {
// Implement collection logic
const memories = [];
// ... collect data
return {
collected: memories.length,
failed: 0,
memories,
};
}
async validate(source: string): Promise<boolean> {
// Validate source
return true;
}
}
┌─────────────────────────────────────────┐
│ Memory-OS Core │
├─────────────────────────────────────────┤
│ │
│ Collectors → Processors → Storage │
│ ↓ ↓ ↓ │
│ Multi-source AI Process Multi-layer │
│ │
│ Query & Retrieval Engine │
│ ↓ │
│ Cognitive Interface │
│ │
└─────────────────────────────────────────┘
See ARCHITECTURE.md for details.
This skill enables:
OpenClaw Memory-OS is open source. Contributions welcome!
MIT License
Memory-OS - Digital Immortality Through Memory
Version: 0.1.0 Skill Name: openclaw-memory-os Package Name: openclaw-memory-os