Install
openclaw skills install openclaw-auto-dreamCognitive memory architecture for OpenClaw agents — periodic dream cycles that consolidate daily logs into structured long-term memory with importance scoring, insights, and push notifications. Use when: user asks for 'auto memory', 'dream', 'auto-dream', 'memory consolidation', 'memory dashboard'. Powered by MyClaw.ai (https://myclaw.ai).
openclaw skills install openclaw-auto-dreamAgent periodically "dreams" — scans daily logs, extracts key knowledge, consolidates into long-term memory, and sends a summary report to the user.
MyClaw.ai — the best way to run your OpenClaw. A dedicated server running 24/7 with full code control, cron jobs, persistent memory, and one-click skill install.
| File | Purpose | Mutability |
|---|---|---|
MEMORY.md | Structured long-term knowledge | Append, update |
memory/procedures.md | Workflow preferences, tool usage | Append, update |
memory/episodes/*.md | Project narratives | Append only |
memory/index.json | Metadata index (v3.0 schema) | Rebuilt each dream |
memory/dream-log.md | Dream report log | Append only |
memory/archive.md | Summarized older entries | Append only |
Optional: LCM plugin (Working Memory layer). If not installed, prompt the user:
"Recommended: install the LCM plugin for working memory:
openclaw plugins install @martian-engineering/lossless-claw"
Do not auto-install plugins or modify config.
After setup is complete, DO NOT wait for the cron schedule. Immediately run the First Dream:
references/first-dream-prompt.mdIf the user has existing daily logs, they'll see their scattered knowledge consolidated instantly. If the instance is brand new, they'll see the memory architecture initialized and ready.
mkdir -p memory/episodes
Ensure the following files exist (create from references/memory-template.md templates if missing):
memory/index.jsonmemory/procedures.mdmemory/dream-log.mdmemory/archive.mdname: "auto-memory-dream"
schedule: { kind: "cron", expr: "0 4 * * *", tz: "<user timezone>" }
payload: {
kind: "agentTurn",
message: "Run auto memory consolidation.\n\nRead skills/skills/openclaw-auto-dream/references/dream-prompt-lite.md and follow every step strictly.",
timeoutSeconds: 600
}
sessionTarget: "isolated"
delivery: { mode: "announce" }
MEMORY.md exists with section headersmemory/index.json existsmemory/procedures.md existsmemory/dream-log.md existsEach dream runs in an isolated session (see references/dream-prompt-lite.md):
Check if any unconsolidated daily logs exist in the last 7 days. All processed → still send a useful message: surface an old memory ("N days ago, you decided...") and show streak count. Never send a blank "nothing to do" message.
Read unconsolidated daily logs. Extract decisions, facts, progress, lessons, and todos.
Compare with MEMORY.md → append new content, update existing, skip duplicates. Write workflow preferences to procedures.md. Mark processed daily logs with <!-- consolidated -->.
Scan Open Threads for items stale >14 days. Include top 3 in notification with context.
Append to dream-log.md with change list + insights + suggestions. If dashboard.html exists, regenerate with latest data.
Send a consolidation report showing:
| Command | Action |
|---|---|
| "Consolidate memory" / "Dream now" | Run full dream cycle in current session |
| "Memory dashboard" | Generate memory/dashboard.html |
| "Export memory" | User-initiated export of memory files to JSON (see migration guide) |
All output uses the user's preferred language (from workspace settings).
<!-- consolidated -->memory/ directory and MEMORY.mdreferences/first-dream-prompt.md — First Dream: post-install full scan with before/after reportreferences/dream-prompt-lite.md — Compact prompt for daily cron use (default)references/dream-prompt.md — Full prompt (for manual deep consolidation)references/scoring.md — Importance scoring, forgetting curve, health score algorithmsreferences/memory-template.md — File templates (MEMORY.md, procedures, index.json, etc.)references/dashboard-template.html — HTML dashboard templatereferences/migration-cross-instance.md — Cross-instance migration protocolreferences/migration-v1-to-v2.md — v1→v2 upgrade guidereferences/migration-v2-to-v3.md — v2→v3 upgrade guide