Complete guide to using OpenClaw's persistent memory system effectively
This tutorial will teach you how to effectively use and manage OpenClaw's persistent memory system. You'll learn about daily notes, memory files, Obsidian integration, and how to maintain context across conversations. Estimated time: 20-25 minutes.
By the end of this tutorial, you'll understand:
Before starting:
~/clawd (or your custom location)OpenClaw stores memories as Markdown files in your workspace:
~/clawd (default) or your configured workspaceYYYY-MM-DD.md~/clawd/sessions/View your workspace directory:
ls ~/clawd
# or
open ~/clawd
Daily notes are automatically created each day. Let's view today's note:
cat ~/clawd/$(date +%Y-%m-%d).md
# or open in your editor
open ~/clawd/$(date +%Y-%m-%d).md
Daily notes contain:
Example daily note structure:
# 2026-01-31
## Conversations
- Discussed project setup with user
- Helped configure voice features
- Answered questions about browser automation
## Important Information
- User prefers dark mode interfaces
- Workspace location: ~/projects/openclaw
- User's name: John
- Preferred coding language: Python
## Preferences
- Notification frequency: Important only
- Email integration: Gmail
You can directly edit memory files to correct or add information:
Example: Correct your name if OpenClaw remembered it incorrectly:
# Open the file
nano ~/clawd/2026-01-31.md
# Find and correct:
# Change: User's name: John
# To: User's name: Jane
Search across all memory files:
# Search for a topic
grep -r "project" ~/clawd/*.md
# Search with context
grep -r -A 2 -B 2 "email" ~/clawd/*.md
Obsidian is a powerful knowledge management tool that works perfectly with OpenClaw's memory files:
~/clawdln -s ~/clawd ~/obsidian-vaults/openclaw-memoriesOnce set up:
You can influence how OpenClaw uses memories:
Explicitly tell OpenClaw to remember something:
Periodically review your memories:
OpenClaw automatically loads relevant memories based on:
You can ask OpenClaw: "What do you remember about me?" to see what context is loaded.
Create templates for recurring information:
# User Profile
## Preferences
- Theme: Dark
- Language: English
- Timezone: PST
## Projects
- Project 1: Description
- Project 2: Description
Track memory changes with Git:
cd ~/clawd
git init
git add *.md
git commit -m "Initial memory files"
# Add to .gitignore if needed for sensitive info
Regularly backup your memories:
openclaw gateway logsNow that you understand memory management, explore these related topics:
Memories become more valuable over time. The more you interact with OpenClaw, the better it understands your preferences and context. Let memories accumulate naturally, and periodically review and refine them.