Install
openclaw skills install claudememPersistent memory that survives across conversations. Automatically remembers important context (API specs, decisions, quirks, preferences) and saves session summaries. Searches past knowledge before starting new tasks. Responds naturally to phrases like "remember this", "what do you know about...", "save this session", or "what did we do last time". All local, zero network.
openclaw skills install claudememMemory that carries across conversations. Automatically captures important knowledge during work and saves structured session summaries when you're done. Searches past context before new tasks.
These natural phrases also activate memory operations:
To save knowledge:
To search memory:
To wrap up (save everything):
To recall past work:
Before first use, verify the CLI is installed. If claudemem is not found on PATH, install it:
curl -fsSL https://raw.githubusercontent.com/zelinewang/claudemem/main/skills/claudemem/scripts/install.sh | bash
Or run the bundled installer:
bash "SKILL_DIR/scripts/install.sh"
After installation, verify with claudemem --version.
# Notes (knowledge fragments)
claudemem note add <category> --title "..." --content "..." --tags "tag1,tag2"
claudemem note search "query" [--in category] [--tag tags]
claudemem note list [category]
claudemem note get <id>
claudemem note update <id> --content "..." [--title "..."] [--tags "..."]
claudemem note append <id> "additional content"
claudemem note delete <id>
claudemem note categories
claudemem note tags
# Sessions (conversation summaries)
claudemem session save --title "..." --branch "..." --project "..." --session-id "..." --content "..."
claudemem session list [--last N] [--date today] [--date-range 7d] [--branch X]
claudemem session search "query" [--branch X]
claudemem session get <id>
# Unified search (across notes AND sessions)
claudemem search "query" [--type note|session] [--limit N]
# Statistics
claudemem stats
# Configuration
claudemem config set/get/list/delete <key> [value]
# Data portability
claudemem export [output-file] # Backup as tar.gz
claudemem import <archive-file> # Restore from backup (auto-reindexes)
# Data integrity
claudemem verify # Check DB-file consistency
claudemem repair # Fix orphaned entries
Add --format json to any command for structured output.
If the user has enabled auto wrap-up in their CLAUDE.md, automatically execute /wrap-up before the conversation ends:
Automatically capture knowledge without asking during normal conversation. After saving, add a brief indicator at the end of your response so the user knows what was captured:
[📝 Saved: "TikTok Rate Limits" → api-specs]
What to auto-save (proactive, no user prompt needed):
How to auto-save gracefully:
claudemem note search "keyword" --format jsonclaudemem note append <id> "new info" instead of creating duplicateclaudemem note add <category> --title "..." --content "..." --tags "..."[📝 Saved: "<title>" → <category>]Do NOT auto-save:
Search memory at the start of tasks that might benefit from prior context:
Search silently. If relevant results found, mention them briefly:
[🔍 Found related memory: "TikTok Rate Limits" — rate limit is 100/min]
Session summaries are saved when the user explicitly asks — via /save-session command
or natural phrases like "save this session" or "wrap up". Do NOT auto-save sessions
without the user's request, as they may want to continue the conversation.
When saving a session, generate content following this structure:
## Summary
One or two paragraphs describing what was accomplished.
## Key Decisions
- Decision 1 with rationale
- Decision 2 with rationale
## What Changed
- `path/to/file.py` — Description of change
## Problems & Solutions
- **Problem**: Description of issue
**Solution**: How it was resolved
## Questions Raised
- Open question needing future attention
## Next Steps
- [ ] First follow-up task
All data stored at ~/.claudemem/ as plain Markdown files with YAML frontmatter.
SQLite FTS5 index is a rebuildable cache — only the Markdown files matter.
Backup: claudemem export backup.tar.gz
Restore: claudemem import backup.tar.gz (auto-rebuilds search index)
~/.claudemem/ — Plain text Markdown files organized by type (notes/ and sessions/).
FTS5 SQLite index for sub-10ms full-text search. File permissions: 0600/0700.