Install
openclaw skills install memory-dreamingAutonomous memory consolidation for OpenClaw agents — like REM sleep. Periodically gathers signal from daily logs, session transcripts, and learnings; consol...
openclaw skills install memory-dreamingAutonomous memory consolidation ("dreaming") for OpenClaw agents. Runs as a cron job, consolidates scattered daily notes into curated long-term memory, and syncs structured knowledge to an Obsidian vault.
clawhub install oryanmoshe/memory-dreamingdreaming-config.json in your workspacescripts/setup-cron.shTo trigger a dream manually, tell the agent: "Run a dream cycle now."
The dream cycle has 4 phases, inspired by biological REM sleep and Claude Code's AutoDream:
Read current memory state — MEMORY.md, recent daily logs, learnings, dreaming log. Build a map of what exists and when it was last touched.
Search for high-value information added since the last dream:
memory/YYYY-MM-DD.md) since last dream.learnings/*.md) — pending corrections, errors, best practicestask_plan.md filesKey: grep narrowly for high-signal patterns. Don't read full transcripts — that burns tokens for marginal value.
Update MEMORY.md with gathered signal:
.learnings/ to MEMORY.mdPush consolidated knowledge to external targets:
task_plan.md has a corresponding Plans/<name>.md in the vaultThe cron fires on schedule but the dream cycle only executes if ≥6 hours have passed since the last dream (checked via dreaming-log.md timestamp). This prevents wasted runs when nothing has changed.
Create dreaming-config.json in your workspace root to customize. All fields are optional — sensible defaults are used.
See assets/dreaming-config.json for the full schema with defaults.
Key options:
schedule — cron expression (default: "0 */8 * * *")model — which model runs the dream (default: "anthropic/claude-sonnet-4-6")gate.minHours — minimum hours between dreams (default: 6)obsidian.enabled — enable vault sync (default: false)obsidian.vaultPath — absolute path to Obsidian vaultdelivery.mode — "none" or "announce" changes to a channelWhen enabled, the sync phase:
People/, Projects/, Plans/, Tools/)[[wikilinks]] throughout, full depth contenttask_plan.md files → creates/updates Plans/<name>.mdFor detailed sync behavior, see references/obsidian-sync.md.
Tell the agent any of these:
The agent reads this skill and executes the 4-phase cycle immediately, ignoring the gate.
# Creates the cron job in OpenClaw
bash scripts/setup-cron.sh
The script reads dreaming-config.json (or uses defaults) and creates an isolated agentTurn cron job. See scripts/setup-cron.sh for details.
For the detailed 4-phase architecture, design decisions, and how this compares to Claude Code AutoDream, see references/architecture.md.