MEMORY.md is not auto-created by OpenClaw.
From the docs: the workspace bootstrap creates AGENTS.md, SOUL.md, TOOLS.md, IDENTITY.md, USER.md, HEARTBEAT.md — but MEMORY.md is optional (not auto-created). When it exists, it gets loaded for normal sessions. (/start/openclaw)
So if you want it, just create it yourself (empty is fine) in your agent workspace, e.g.:
- default workspace:
~/.openclaw/workspace/MEMORY.md
Two more common “why didn’t it write memory?” gotchas:
-
You’re in a group chat / server channel
MEMORY.md is intended for the main/private session (DM with your bot). In group contexts it won’t load/use it. Use a DM to ask “remember this” / “write this to memory”.
-
Memory files only get written when prompted
The daily log memory/YYYY-MM-DD.md is typically created when you explicitly ask the bot to store something, or when the session gets close to compaction (silent “memory flush”). If you haven’t asked + the chat isn’t long, nothing gets created yet.
If you tell me what your workspace path is (openclaw config get agents.defaults.workspace) and where you’re chatting (DM vs Discord channel), I can tell you which behavior you’re seeing.