Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
OpenClaw remembers things by writing plain Markdown files in your agent's workspace. The model only "remembers" what gets saved to disk — there is no hidden state.
Your agent has three memory-related files:
MEMORY.mdmemory/YYYY-MM-DD.mdDREAMS.mdThese files live in the agent workspace (default
~/.openclaw/workspaceSome future follow-ups are not durable facts. If you mention an interview tomorrow, the useful memory may be "check in after the interview," not "store this forever in
MEMORY.mdCommitments are opt-in, short-lived follow-up memories for that case. OpenClaw infers them in a hidden background pass, scopes them to the same agent and channel, and delivers due check-ins through heartbeat. Explicit reminders still use scheduled tasks.
The agent has two tools for working with memory:
memory_searchmemory_getBoth tools are provided by the active memory plugin (default:
memory-coreIf you want durable memory to behave more like a maintained knowledge base than just raw notes, use the bundled
memory-wikimemory-wikiwiki_searchwiki_getwiki_applywiki_lintIt does not replace the active memory plugin. The active memory plugin still owns recall, promotion, and dreaming.
memory-wikiSee Memory Wiki.
When an embedding provider is configured,
memory_searchFor details on how search works, tuning options, and provider setup, see Memory Search.
SQLite-based. Works out of the box with keyword search, vector similarity, and hybrid search. No extra dependencies.
Local-first sidecar with reranking, query expansion, and the ability to index directories outside the workspace.
AI-native cross-session memory with user modeling, semantic search, and multi-agent awareness. Plugin install.
Bundled LanceDB-backed memory with OpenAI-compatible embeddings, auto-recall, auto-capture, and local Ollama embedding support.
Before compaction summarizes your conversation, OpenClaw runs a silent turn that reminds the agent to save important context to memory files. This is on by default — you do not need to configure anything.
To keep that housekeeping turn on a local model, set an exact memory-flush model override:
json{ "agents": { "defaults": { "compaction": { "memoryFlush": { "model": "ollama/qwen3:8b" } } } } }
The override applies only to the memory-flush turn and does not inherit the active session fallback chain.
Dreaming is an optional background consolidation pass for memory. It collects short-term signals, scores candidates, and promotes only qualified items into long-term memory (
MEMORY.mdIt is designed to keep long-term memory high signal:
memory-coreDREAMS.mdFor phase behavior, scoring signals, and Dream Diary details, see Dreaming.
The dreaming system now has two closely related review lanes:
memory/.dreams/MEMORY.mdmemory/YYYY-MM-DD.mdDREAMS.mdGrounded backfill is useful when you want to replay older notes and inspect what the system thinks is durable without manually editing
MEMORY.mdWhen you use:
bashopenclaw memory rem-backfill --path ./memory --stage-short-term
the grounded durable candidates are not promoted directly. They are staged into the same short-term dreaming store the normal deep phase already uses. That means:
DREAMS.mdMEMORY.mdIf you decide the replay was not useful, you can remove the staged artifacts without touching ordinary diary entries or normal recall state:
bashopenclaw memory rem-backfill --rollback openclaw memory rem-backfill --rollback-short-term
bashopenclaw memory status # Check index status and provider openclaw memory search "query" # Search from the command line openclaw memory index --force # Rebuild the index
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine