Open WebUI Memory lets your self-hosted AI remember facts about you across every chat. Tell it once that you prefer Python, live in Vienna or want short answers, and each new conversation starts with that context already in place.
There are two ways to use it. You can add and edit memories yourself in Settings, or, with native function calling, let a capable model save, search, fix and delete memories on its own. Either way, every memory stays in your own Open WebUI database, and you can review or wipe it at any time.
This guide covers turning Memory on, adding User and Context memories, the agentic memory tools, paths, admin controls, character budgets, the settings that quietly break recall, and fixes for common problems. It follows the official Open WebUI documentation as of December 2026.
- Manual: Settings > Personalization > Memory, switch on, then Add Memory.
- Two types: User memories go into every reply; Context memories are added only when they match your last seven messages.
- Agentic: with native function calling, models get
add_memory,search_memories,replace_memory_content,delete_memoryand more. - Needs: a working embedding model and vector database to add or edit memories.
- Budgets: 2,000 characters each for User and Context memories by default; extra text is cut silently.
- Admin:
ENABLE_MEMORIESand the per-group Memories permission control access.
How Open WebUI Memory Works
A memory is a short snippet about you, such as “I prefer Python for backend tasks”. Each one is saved in the Open WebUI database, and its text is also indexed in vector storage with your configured embedding model. That index is what lets Open WebUI find the right Context memory for a chat.
When you send a message, Open WebUI adds your stored memories to the model’s context. With native function calling they arrive once per reply as a hidden recall_memories tool result after your message. Without it, they are appended to your message.
| Part | What it does |
|---|---|
| Database record | Holds the memory text, type, optional path and timestamps |
| Vector index | Lets Open WebUI find Context memories related to your chat |
| Memory System Context | Adds memories to the prompt automatically (on by default) |
| Memory tools | Let a model add, search, update and delete memories itself |
Important: adding a memory or changing its text needs a working embedding model and vector database. The slim Docker image ships without them, so it needs an external embedding engine and PostgreSQL with pgvector.
Turn Memory On
If Open WebUI is not installed yet, start with our Open WebUI with Ollama setup guide. If the options below are missing, update Open WebUI first.
- Admin: open Settings > General > Features (admin section) and make sure Memories is on. The environment variable is
ENABLE_MEMORIES, which defaults toTrue. - Admin: in Admin Panel > Users > Permissions > Features, allow Memories for the roles or groups that should have it (
USER_PERMISSIONS_FEATURES_MEMORIES, defaultTrue). - User: open Settings > Personalization > Memory and turn the Memory switch on.
- The Saved Memories list appears. You can now add memories by hand or let a model add them.
For group permissions in detail, see our Open WebUI users, groups and permissions guide.
Add, Edit and Clear Memories Yourself
- Go to Settings > Personalization > Memory.
- Select Add Memory.
- Pick a Type: User for facts, preferences or instructions about you, or Context for other lasting background.
- Write one clear fact per memory, for example “Answer in British English” or “My home server has an RTX 5080 with 16 GB VRAM”.
- Save. The memory shows in the alphabetical list, with its path first if it has one.
- To change one, edit it in the list. To remove one, delete it from the list.
Turning the switch off hides the list and stops memories reaching your chats, but deletes nothing. Turn it back on and the same memories return.
Clear memory, in the Actions menu above the list, deletes every memory on your account, including any hidden by the search box. After you confirm “Are you sure you want to clear all memories? This action cannot be undone.” you see “Memory cleared successfully”.
There is no undo or trash, so delete single memories one by one if you only want to remove some.
User vs Context Memories
| User memory | Context memory | |
|---|---|---|
| What it holds | Facts, preferences or instructions about you | Other lasting background worth carrying between chats |
| When the model gets it | On every reply | Only when it matches your last seven messages |
| How it is picked | All of them, in alphabetical order | Vector search, closest matches first |
| Budget setting | MEMORIES_USER_CHAR_LIMIT (default 2,000) |
MEMORIES_CONTEXT_CHAR_LIMIT (default 2,000) |
| Example | “Prefers short answers with code first” | “Project Atlas uses FastAPI and Postgres 17” |
Watch the budget. Text past a budget is cut off with no warning. With many User memories, the ones that sort last alphabetically never reach the model. Keep User memories short, and move project details into Context memories.
Let the Model Manage Memory
With native function calling, a capable model can treat memory as long-term memory it runs itself. It might say “I’ll remember that you prefer dark mode for UI projects” and call add_memory in the background.
- Make sure Memory is enabled for the instance and you have the permission.
- Open Settings > Models > Edit (admin section) for the model, or Workspace > Models for your own model.
- Under Advanced Params, set function calling to Native.
- Check that the Memory capability, Builtin Tools, and the Memory category under Builtin Tools are on. They are on by default.
- Chat normally and say things like “Remember that I deploy with Docker Compose.”
| Tool | What it does |
|---|---|
add_memory |
Saves a new fact tagged user or context, optionally under a path |
update_memory |
Applies a batch of add, replace, move or remove changes in one call |
replace_memory_content |
Corrects one existing memory by its id |
delete_memory |
Removes a memory by its id |
search_memories |
Searches by content, path, type or id (returns 5 by default) |
list_memories |
Lists all your memories with timestamps |
list_memory_paths |
Lists the saved path groups |
read_memory_path |
Reads the memories at a path, plus nearby parent and child paths |
Useful prompts:
- “What do you remember about me? Point out anything that contradicts itself.”
- “Forget that I use Windows, I moved to Linux.”
- “Search your memory for what I said about my GPU.”
- “Save my preferred code style under the path coding/style.”
Every memory a model adds still shows in Settings > Personalization, so you can check and delete it. Open WebUI Automations get the same memory tools when memory is on for the user who owns them. To give models outside tools as well, see our Open WebUI MCP guide.
Memory Types and Paths
Each memory has a type and an optional path. A path is a stable address such as work/projects that groups related memories. Instead of one flat list, the model can browse groups with list_memory_paths and read_memory_path before it writes, which keeps related facts together and cuts duplicates.
The memory tools set type and path automatically, so you never have to assign them by hand. Asking for a path (“save this under travel/2027”) works when you want a clear structure.
Admin Controls and Budgets
| Setting | Where | Default | Effect |
|---|---|---|---|
| Memories | Settings > General > Features, or ENABLE_MEMORIES |
True | Off hides Personalization, blocks memory APIs, stops injection and tools |
| Memories permission | Admin Panel > Users > Permissions > Features, or USER_PERMISSIONS_FEATURES_MEMORIES |
True | Removing it closes every memory route for those users (API returns 403) |
| Memory System Context | Settings > General > Features, or ENABLE_MEMORY_SYSTEM_CONTEXT |
True | Off stops automatic injection; tools still work on request |
| Background review | ENABLE_MEMORY_BACKGROUND_REVIEW |
False | The chat’s model reviews recent turns and updates memories itself |
| Review interval | MEMORIES_REVIEW_INTERVAL_TURNS |
10 | How many turns between background reviews |
| User budget | MEMORIES_USER_CHAR_LIMIT |
2000 | Characters of User memories per request |
| Context budget | MEMORIES_CONTEXT_CHAR_LIMIT |
2000 | Characters of Context memories per request |
Administrators are exempt from the permission check. The permission check also runs on the server for each chat request, so an old personal Memory toggle or an API client sending features: {"memory": true} cannot bring memories back for a blocked user.
Raising a budget on a persistent-config instance: changing the environment variable after the value was saved does nothing, because the stored value wins. Send this JSON to POST /api/v1/configs/import with an admin session token instead:
{
"config": {
"memories.user_char_limit": 6000
}
}
Use memories.context_char_limit for the Context budget. Saved memories always keep their full text; the budget only limits what goes into each request.
Which Models Handle Memory Well
Memory quality depends heavily on the model. Deciding what is worth saving, and when to recall it, needs solid tool calling.
The Open WebUI docs name GPT-5.6 Luna, Gemini 3.5 Flash-Lite and MiniMax M3 as the minimum online tier, and Qwen 3.6 27B or Muse Glimmer 30B locally. Very small models store and retrieve facts unreliably.
For local picks that call tools well, see our best Ollama models list. Manual User memories work with any model, because they are injected as text whether or not the model can call tools.
Memory vs Notes vs Knowledge
| Memory | Notes | Knowledge bases | |
|---|---|---|---|
| Best for | Short personal facts and preferences | Long specs, drafts and references | Large sets of documents |
| Reaches the model | Automatically, within budgets | When attached or read by tools | Matching chunks via search |
| Size | One sentence each | Pages of text | Many files |
For document search, see our Open WebUI RAG guide.
Privacy and Security
- Memories live in your own Open WebUI database and are scoped to your account. Other users cannot see them by default.
- If you use an API model, the memories added to a request are sent to that provider with the rest of the prompt. Use local models if that matters.
- You can clear your whole memory bank at any time, but it cannot be restored afterwards.
- Do not store passwords, keys or ID numbers as memories.
Troubleshooting
“Configure PGVECTOR_DB_URL for remote vector storage”
You are on the slim image without a vector database. Set up PostgreSQL with pgvector and an external embedding engine, then try adding the memory again.
I cannot see the Personalization tab
Memories is off for the instance, or your group lacks the Memories permission. Ask an admin to check both.
Context memories never reach the model
Check the Relevance Threshold in Settings > Documents (admin section), or RAG_RELEVANCE_THRESHOLD. It also applies to memory search, even when Hybrid Search is off and the field is hidden. A value tuned for a reranker can stop every Context memory from matching. Lower it or set it to 0.
Some User memories are ignored
You passed the 2,000 character User budget, and the memories that sort last are cut. Shorten them, merge them, or raise MEMORIES_USER_CHAR_LIMIT.
Blank replies appear now and then
Memory runs as a native tool call. Some endpoints, notably Google’s OpenAI compatibility layer, omit the index field on streamed tool calls, so the call is dropped and the reply comes back empty with nothing in the logs. Use a connection that follows the OpenAI streaming schema.
The model never saves anything
Set function calling to Native, confirm the Memory capability and Builtin Tools are on, and use a model from the minimum tier above.
FAQ
Is Open WebUI Memory free?
Yes. It is part of self-hosted Open WebUI.
Does memory work with local Ollama models?
Yes. Manual memories work with any model. Agentic memory needs a local model with solid tool calling, such as Qwen 3.6 27B.
Where are memories stored?
In your Open WebUI database, with their text also indexed in your vector store.
Does turning Memory off delete my memories?
No. It only hides them and stops them reaching chats. Only Clear memory or single deletes remove them.
Can admins see my memories?
They are scoped to your account and not shared with other users by default.
How many memories can I have?
There is no stated cap on saved memories, but only 2,000 characters of each type reach the model per request by default.
What is the difference between User and Context memory?
User memories go into every reply. Context memories are added only when they match your recent messages.




