[
    {
        "role": "user",
        "content": "by%20default%2C%20where%20does%20openclaw%20store%20its%20memoryies%3F"
    },
    {
        "role": "assistant",
        "content": "By default, OpenClaw stores its memory and related data in files on your local machine. Here are the paths and file layout where it saves data, based on its official documentation:\n\n---\n\n### \ud83d\udcc1 Default Storage Locations\n\n- **State directory**  \n  OpenClaw\u2019s core config, sessions, credentials, and logs are stored under a directory called `~/.openclaw` (unless you override the location using the `OPENCLAW_STATE_DIR` environment variable). ([open-claw.bot](https://open-claw.bot/docs/help/faq/data-storage/?utm_source=openai))\n\n- **Workspace directory**  \n  Agent-specific workspace files\u2014where agent personality, skills, and memory live\u2014default to `~/.openclaw/workspace`. You can override this path in the `openclaw.json` configuration via the `agents.defaults.workspace` setting. ([open-claw.bot](https://open-claw.bot/docs/concepts/agent-workspace?utm_source=openai))\n\n---\n\n### \ud83d\uddc2 Memory Files & Layout\n\nInside your workspace, memory is stored mostly in Markdown files. These are the key components:\n\n- `memory/YYYY-MM-DD.md` \u2014 A file for each day\u2019s memory entries. ([docs.openclaw.ai](https://docs.openclaw.ai/research/memory?utm_source=openai))  \n- `MEMORY.md` \u2014 A stable long-term memory file for enduring facts, preferences, etc. ([open-claw.bot](https://open-claw.bot/docs/help/faq/data-storage/?utm_source=openai))  \n- Other related files in the workspace:  \n  - `SOUL.md` \u2014 Agent personality / identity  \n  - `IDENTITY.md`, `USER.md` \u2014 For defining user profile & agent-user relationship ([open-claw.bot](https://open-claw.bot/docs/help/faq/data-storage/?utm_source=openai))\n\n---\n\n### \u2699\ufe0f Memory Search & Index\n\nOpenClaw also uses a (SQLite-based by default) index to allow fast semantic or keyword-based search through memory. The default file for the vector/FTS index is:\n\n```\n~/.openclaw/memory/{agentId}.sqlite\n```\n\nYou\u2019ll often see `{agentId}` replaced with `main` or whatever your specific agent\u2019s ID is. ([docs.openclaw.ai](https://docs.openclaw.ai/reference/memory-config?utm_source=openai))\n\n---\n\nIf you're looking at your local system, go check:\n\n- `~/.openclaw` \u2192 for system state & sessions  \n- `~/.openclaw/workspace` \u2192 for the agent\u2019s workspace containing `memory/` folder and `.md` files\n\nLet me know if you want to change any of these locations or configure remote/alternative storage!"
    }
]