openclaw memory
Manage semantic memory indexing and search.
Provided by the active memory plugin (default: memory-core; set plugins.slots.memory = "none" to disable).
Related:
Examples
Options
memory status and memory index:
--agent <id>: scope to a single agent. Without it, these commands run for each configured agent; if no agent list is configured, they fall back to the default agent.--verbose: emit detailed logs during probes and indexing.
memory status:
--deep: probe vector + embedding availability.--index: run a reindex if the store is dirty (implies--deep).--fix: repair stale recall locks and normalize promotion metadata.--json: print JSON output.
memory index:
--force: force a full reindex.
memory search:
- Query input: pass either positional
[query]or--query <text>. - If both are provided,
--querywins. - If neither is provided, the command exits with an error.
--agent <id>: scope to a single agent (default: the default agent).--max-results <n>: limit the number of results returned.--min-score <n>: filter out low-score matches.--json: print JSON results.
memory promote:
Preview and apply short-term memory promotions.
--apply— write promotions toMEMORY.md(default: preview only).--limit <n>— cap the number of candidates shown.--include-promoted— include entries already promoted in previous cycles.
- Ranks short-term candidates from
memory/YYYY-MM-DD.mdusing weighted recall signals (frequency,relevance,query diversity,recency). - Uses recall events captured when
memory_searchreturns daily-memory hits. - Optional auto-dreaming mode: when
plugins.entries.memory-core.config.dreaming.modeiscore,deep, orrem,memory-coreauto-manages a cron job that triggers promotion in the background (no manualopenclaw cron addrequired). --agent <id>: scope to a single agent (default: the default agent).--limit <n>: max candidates to return/apply.--min-score <n>: minimum weighted promotion score.--min-recall-count <n>: minimum recall count required for a candidate.--min-unique-queries <n>: minimum distinct query count required for a candidate.--apply: append selected candidates intoMEMORY.mdand mark them promoted.--include-promoted: include already promoted candidates in output.--json: print JSON output.
Dreaming (experimental)
Dreaming is the overnight reflection pass for memory. It is called “dreaming” because the system revisits what was recalled during the day and decides what is worth keeping long-term.- It is opt-in and disabled by default.
- Enable it with
plugins.entries.memory-core.config.dreaming.mode. - You can toggle modes from chat with
/dreaming off|core|rem|deep. Run/dreaming(or/dreaming options) to see what each mode does. - When enabled,
memory-coreautomatically creates and maintains a managed cron job. - Set
dreaming.limitto0if you want dreaming enabled but automatic promotion effectively paused. - Ranking uses weighted signals: recall frequency, retrieval relevance, query diversity, and temporal recency (recent recalls decay over time).
- Promotion into
MEMORY.mdonly happens when quality thresholds are met, so long-term memory stays high signal instead of collecting one-off details.
core: daily at0 3 * * *,minScore=0.75,minRecallCount=3,minUniqueQueries=2deep: every 12 hours (0 */12 * * *),minScore=0.8,minRecallCount=3,minUniqueQueries=3rem: every 6 hours (0 */6 * * *),minScore=0.85,minRecallCount=4,minUniqueQueries=3
memory index --verboseprints per-phase details (provider, model, sources, batch activity).memory statusincludes any extra paths configured viamemorySearch.extraPaths.- If effectively active memory remote API key fields are configured as SecretRefs, the command resolves those values from the active gateway snapshot. If gateway is unavailable, the command fails fast.
- Gateway version skew note: this command path requires a gateway that supports
secrets.resolve; older gateways return an unknown-method error. - Dreaming cadence defaults to each mode’s preset schedule. Override cadence with
plugins.entries.memory-core.config.dreaming.frequencyas a cron expression (for example0 3 * * *) and fine-tune withtimezone,limit,minScore,minRecallCount, andminUniqueQueries.