Install
openclaw skills install openjaw-smart-memoryZero-cost persistent memory that makes your bot smarter over time. Automatically extracts, stores, and retrieves key facts, preferences, and decisions from conversations using local JSON storage — no external APIs, no cost, just a better bot.
openclaw skills install openjaw-smart-memoryYou have access to a persistent local memory system. Use it to remember important information across conversations so the user never has to repeat themselves.
Remember everything important. Forget nothing the user cares about. Cost nothing.
All memory is stored locally in ~/.openclaw/smart-memory/ as plain JSON files.
No external APIs. No cloud storage. No cost. Just local files and shell commands.
Automatically extract and store memories whenever the user shares:
Run the memory manager to store a new memory:
bash ~/.openclaw/smart-memory/memory-manager.sh store \
--category "<preferences|facts|decisions|instructions|dates|technical|corrections>" \
--key "<short_identifier>" \
--value "<the information to remember>" \
--confidence "<high|medium|low>" \
--source "<conversation|user_explicit|inferred>"
Confidence levels:
high — User explicitly stated this ("My name is Alex")medium — Clearly implied from context ("I keep using vim, so they prefer vim")low — Inferred or uncertain ("They might work in finance based on their questions")Source types:
user_explicit — User directly told you this informationconversation — Extracted from conversation contextinferred — You reasoned this from patternsBefore responding to any user message, check if relevant memories exist:
bash ~/.openclaw/smart-memory/memory-manager.sh search --query "<relevant keywords>"
Use retrieved memories to:
If the user corrects or changes information:
bash ~/.openclaw/smart-memory/memory-manager.sh update \
--key "<existing_key>" \
--value "<new_value>" \
--reason "<why this changed>"
The old value is preserved in the memory's history for audit purposes.
If the user explicitly asks you to forget something:
bash ~/.openclaw/smart-memory/memory-manager.sh forget --key "<key_to_forget>"
This soft-deletes the memory (marks it as forgotten but retains it in the archive for 30 days before permanent deletion).
Every day, the heartbeat triggers automatic maintenance:
bash ~/.openclaw/smart-memory/memory-manager.sh maintain
This will:
To report on memory usage and health:
bash ~/.openclaw/smart-memory/memory-stats.sh
This shows: total memories, breakdown by category, storage size, oldest/newest entries, and estimated token savings.
bash ~/.openclaw/smart-memory/memory-manager.sh export
bash ~/.openclaw/smart-memory/memory-manager.sh purge --confirm
~/.openclaw/smart-memory/
memories.json # Active memories (main store)
archive.json # Archived/pruned memories
stats.json # Usage statistics & token savings tracker
config.json # User-customizable settings
memory-manager.sh # Core memory engine
memory-stats.sh # Analytics & reporting
Every time a memory is retrieved instead of the user re-explaining something, log the estimated token savings:
bash ~/.openclaw/smart-memory/memory-manager.sh log-saving --tokens <estimated_tokens_saved>
Over time this demonstrates the ROI of the memory system — showing users how many tokens (and dollars) they've saved by not repeating themselves.