openclaw memory
Manage agent memory.
Usage
bash
openclaw memory <action> [options]Actions
| Action | Description |
|---|---|
show | Show memory contents |
add | Add a memory |
remove | Remove a memory |
search | Search memories |
compact | Compact memory storage |
export | Export memories |
import | Import memories |
Examples
bash
# Show all memories
openclaw memory show
# Add a memory
openclaw memory add "User prefers concise responses"
# Search memories
openclaw memory search "preferences"
# Compact memory
openclaw memory compact
# Export memories
openclaw memory export > memories.json
# Import memories
openclaw memory import < memories.jsonMemory Types
| Type | Description |
|---|---|
facts | Factual information about the user |
preferences | User preferences |
context | Contextual information |
Memory Management
bash
# Clear all memories
openclaw memory clear --all
# Clear specific type
openclaw memory clear --type preferences
# View memory stats
openclaw memory stats