Back to Article List

How OpenClaw memory works and how to control it

How OpenClaw memory works and how to control it

OpenClaw’s memory is the feature that makes it feel less like “a chat window” and more like “a thing that sticks around.” You tell it something once, then weeks later it can pull that detail back up without you repeating yourself.

What I like about OpenClaw’s approach is that it is not mystical. It writes things down to files on your machine. You can open them, edit them, delete them, or keep them under version control if you want. OpenClaw memory is not a black box.

If you’re still figuring out OpenClaw basics, start with what OpenClaw is and how it works. If you’re running it across WhatsApp and Telegram and Discord, memory becomes even more important because it ties everything together, see OpenClaw multi-channel setup.

Definition: What “memory” means in OpenClaw

In OpenClaw, memory is not the same thing as chat context.

Chat context is what the model can see right now inside its context window. That has hard limits depending on the model you picked.

Memory is what OpenClaw stores on disk in your workspace so it survives restarts, channel switches and long sessions. That part can grow without hitting a token ceiling.

OpenClaw’s docs describe memory as a set of continuity files, including daily notes and a long-term memory file. OpenClaw memory docs

The memory files OpenClaw uses

OpenClaw’s default memory format is plain Markdown. That is the point. You can inspect it with a normal text editor, no special tool required.

  • memory/YYYY-MM-DD.md daily notes, raw running log of what happened
  • MEMORY.md long-term memory, more curated and stable
  • USER.md your preferences and working style
  • SOUL.md agent personality and behavior rules

The “daily notes + long-term memory” split is documented in OpenClaw’s templates and reference docs. OpenClaw AGENTS template

Here’s the practical interpretation:

  • Daily notes catch everything that feels useful in the moment, including messy context.
  • MEMORY.md should stay smaller and calmer. It is the stuff you want to keep true over time.

If you ever want to verify what the project says upstream, this is the canonical source for OpenClaw itself: OpenClaw on GitHub.

Daily notes vs long-term memory

Daily notes are a journal. They are good for continuity across a few days, especially if you do a lot of back and forth. You can open yesterday’s file and see what was discussed and what decisions were made.

Long-term memory is closer to a profile. It is where you keep things like:

  • How you like answers formatted
  • What projects you are working on
  • Your preferred tools and defaults
  • Rules you want OpenClaw to follow every time

If you let MEMORY.md turn into a diary, it gets noisy and less useful. If you keep it curated, you get strong “pick up where we left off” behavior months later.

How OpenClaw “learns” from you

People hear “learns” and assume model training. That’s not what is happening.

OpenClaw does not retrain Claude or OpenAI models. It adapts by writing and retrieving information from your memory files. That can happen in two ways.

1) Explicit memory

You tell it to remember something and it writes it down. Simple. If you want to be very direct, say it like this:

“Add to USER.md that I want short answers and copy-pastable commands.”

This kind of instruction is the fastest way to get consistent behavior because you are not hoping it “figures it out” later.

2) Pattern-based memory

Over time, OpenClaw may notice patterns and promote them from daily notes into longer-term memory. Example: you keep asking for Bash snippets and you keep rejecting long theoretical explanations. The memory ends up reflecting that style.

This is not magic, it is just accumulation plus curation. Still, it makes OpenClaw feel more personal after a few weeks.

Why memory matters more in long sessions

Even with large context windows, long sessions eventually get heavy. OpenClaw addresses this by capturing lasting bits into memory before it has to shrink or summarize the running conversation.

The result is that “what mattered” survives, even if the blow-by-blow chat is summarized. That is one reason model choice matters. If you are picking between providers, see OpenClaw with Claude vs OpenAI model choice.

Memory retrieval and search

After a month of daily notes, you do not want to grep through dozens of files by hand. OpenClaw supports memory search that can combine keyword-style matching and semantic matching.

OpenClaw’s docs mention using sqlite-vec (when available) to accelerate vector search inside SQLite. Memory search details

In plain terms, that means you can ask something like:

“Find what we decided about Telegram privacy mode for the bot.”

and it can pull the relevant snippet from older notes, even if you do not remember the exact phrasing you used back then.

If you want the background on sqlite-vec itself, the project page is here: sqlite-vec.

Cross-channel memory

OpenClaw can run across multiple chat apps while keeping one shared workspace. That means a preference you set in Telegram can still apply when you message it from WhatsApp or a Discord DM, assuming you are using the same agent workspace.

This is where OpenClaw feels different from “a bot per platform.” It is one assistant with one memory store. If you are setting this up, the multi-channel guide is the clean path: OpenClaw multi-channel setup.

Privacy boundaries and shared channels

Memory is useful until it leaks into the wrong place.

A sensible pattern is: keep personal memory loaded only in private sessions, then keep group channels on tighter rules. Upstream docs and community guides describe keeping long-term memory out of group contexts to reduce accidental leakage. OpenClaw agent memory guidance

If you are building a team setup in Telegram, the Telegram platform itself has privacy mode for bots and it is enabled by default. Telegram documents how privacy mode works and when bots see group messages. Telegram bot privacy mode

Also, if you host OpenClaw on a VPS, protect the Gateway and the filesystem. Memory files live on disk and that is a good thing, but it also means you need basic hardening. Read how to host OpenClaw securely on a VPS.

How to edit memory safely

The “control” part is the best part.

  • If OpenClaw remembered something wrong, edit it.
  • If something is outdated, delete it.
  • If you want stronger behavior changes, put them in USER.md or SOUL.md so they are always loaded.

If you want a quick practical checkpoint for your setup, sending a first message then checking the web UI and logs is still the best sanity check: your first message to OpenClaw.

Limitations you should know

OpenClaw memory is strong, but it is not self-cleaning.

  • Daily notes can get noisy if you never prune or summarize.
  • Semantic search is good, not perfect. Bad queries happen, vague queries happen.
  • Context windows still exist. Memory survives, but you cannot load infinite material into one prompt.

Still, even with those limits, the “write it down and retrieve it later” model is a solid approach for agents.

Your idea deserves better hosting

24/7 support 30-day money-back guarantee Cancel anytime
Verrechnungszyklus

1 GB RAM VPS

€3.45 Save  50 %
€1.72 Monatlich
  • 1 vCPU AMD EPYC
  • 30 GB NVMe Speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Firewall-Verwaltung
  • Server-Überwachung

2 GB RAM VPS

€5.18 Save  17 %
€4.32 Monatlich
  • 2 vCPU AMD EPYC
  • 30 GB NVMe Speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Firewall-Verwaltung
  • Server-Überwachung

6 GB RAM VPS

€12.97 Save  33 %
€8.65 Monatlich
  • 6 vCPU AMD EPYC
  • 70 GB NVMe Speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P1

€6.91 Save  25 %
€5.18 Monatlich
  • 2 vCPU AMD EPYC
  • 4 GB RAM-speicher
  • 40 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P2

€12.97 Save  27 %
€9.51 Monatlich
  • 2 vCPU AMD EPYC
  • 8 GB RAM-speicher
  • 80 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P4

€25.95 Save  20 %
€20.76 Monatlich
  • 4 vCPU AMD EPYC
  • 16 GB RAM-speicher
  • 160 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P5

€31.58 Save  21 %
€25.09 Monatlich
  • 8 vCPU AMD EPYC
  • 16 GB RAM-speicher
  • 180 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P6

€49.32 Save  21 %
€38.94 Monatlich
  • 8 vCPU AMD EPYC
  • 32 GB RAM-speicher
  • 200 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

AMD EPYC VPS.P7

€60.57 Save  20 %
€48.46 Monatlich
  • 16 vCPU AMD EPYC
  • 32 GB RAM-speicher
  • 240 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G1

€4.32 Save  20 %
€3.45 Monatlich
  • 1 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 1 GB DDR5 RAM-speicher
  • 25 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G2

€11.24 Save  23 %
€8.65 Monatlich
  • 2 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 4 GB DDR5 RAM-speicher
  • 50 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G4

€22.49 Save  27 %
€16.43 Monatlich
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 8 GB DDR5 RAM-speicher
  • 100 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G5

€38.94 Save  33 %
€25.95 Monatlich
  • 4 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 16 GB DDR5 RAM-speicher
  • 150 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G6

€42.40 Save  31 %
€29.42 Monatlich
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 16 GB DDR5 RAM-speicher
  • 200 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

EPYC Genoa VPS.G7

€64.90 Save  27 %
€47.59 Monatlich
  • 8 vCPU AMD EPYC Gen4 AMD EPYC Genoa der 4. Generation 9xx4 mit 3,25 GHz oder ähnlich, basierend auf der Zen 4 Architektur.
  • 32 GB DDR5 RAM-speicher
  • 250 GB NVMe speicher
  • Unbegrenzte Bandbreite
  • IPv4 & IPv6 inklusive IPv6-Unterstützung ist derzeit in Frankreich, Finnland und den Niederlanden nicht verfügbar.
  • 1 Gbps Netzwerk
  • Auto-Backup enthalten
  • Firewall-Verwaltung
  • Server-Überwachung

FAQ

How do I see what OpenClaw remembers about me?

Open the memory files in your workspace, especially MEMORY.md and the daily note files under memory/YYYY-MM-DD.md. They are plain Markdown, so any editor works.

Automate faster, for less

Bring your winning ideas to life with AMD power, NVMe speed and unmetered bandwidth. Deploy your VPS in seconds, with a pre-installed OpenClaw template on Ubuntu 24.04.