Persistent Memory

TL;DR: OpenClaw stores memory in ~/.openclaw/memory as Markdown. It remembers context, preferences, and long-term data across sessions.

Applies to: Windows, macOS, Linux
Audience: Power users, developers, security-conscious, enterprise
Last updated: 2026-02-23

power-user developer memory workspace

Table of contents

  1. How It Works
  2. Memory Location
  3. Memory Structure
  4. Managing Memory
  5. Privacy
  6. Next Steps
  7. FAQ

How It Works

OpenClaw automatically:

Memory Location

Default path:

~/.openclaw/memory

You can customize this in ~/.openclaw/openclaw.json:

{
  "agent": {
    "memoryPath": "/custom/path/to/memory"
  }
}

Memory Structure

Memory is stored as Markdown files:

Managing Memory

View Memory

Open the files in any text editor. Example USER.md:

# User Profile
- Name: Alex
- Timezone: America/New_York
- Preferred language: English

# Preferences
- Daily brief at 8am
- Weekly review on Sundays
- Quiet hours: 10pm–7am

Edit Memory

Edit the files directly. Changes apply on the next agent loop.

Export Memory

Copy the memory folder to back up or migrate.

Delete Memory

Delete files or the entire folder to reset. OpenClaw will recreate defaults.

Privacy

Next Steps

FAQ

Q: Is memory encrypted?
A: Not by default. Use full-disk encryption or encrypt the ~/.openclaw folder.

Q: How much memory is stored?
A: Usually a few KB to MB, depending on usage. Old memories are compressed.

Q: Can I disable memory?
A: Yes. Set agent.memory.enabled: false in config.

Q: Does memory sync across devices?
A: No. Use a shared folder or sync service manually.

Q: What if memory is corrupted?
A: Delete the memory folder and restart. OpenClaw will recreate defaults.

Recommended next

Connect WhatsApp