Skip to main content

Memory & Personalization

Memory: three stacked drawers, the middle one pulled outMemory: three stacked drawers, the middle one pulled out
Model-dependent quality

How well memories are stored and recalled depends heavily on the model. Frontier models manage memory well; small local models may store or retrieve information inconsistently.

Open WebUI includes a memory system that lets models remember facts, preferences, and context across conversations. With Native Tool Calling, the model manages this memory itself as an active "long-term memory."

How it Works​

The memory system stores snippets of information about you (e.g., "I prefer Python for backend tasks" or "I live in Vienna"). Memory records are stored in the Open WebUI database, and their content is also indexed in vector storage using the configured embedding model. Adding a memory or changing its content requires a working embedding model and vector database.

The slim image requires an external embedding engine and PostgreSQL with pgvector for vector storage. If adding or editing a memory returns Configure PGVECTOR_DB_URL for remote vector storage, configure the vector database connection. See What Slim Leaves Out and Switch to an External Vector Database.

There are two ways these memories are used:

1. Manual Management (Settings)​

Users can manually add, edit, or delete memories by navigating to: Settings > Personalization > Memory

Saved Memories is listed only while the Memory switch is on. Turning the switch off hides the list and stops memories being added to your chats, but it deletes nothing; turn it back on and the same memories return.

Add Memory asks for a Type. A User memory is a fact, preference, or instruction about you, and all of them are given to the model on every reply, up to the MEMORIES_USER_CHAR_LIMIT budget. A Context memory is given only when it relates to the chat: Open WebUI searches your memories with your last seven messages and adds the closest matches, up to the MEMORIES_CONTEXT_CHAR_LIMIT budget. Memories are listed in alphabetical order, with the path first when there is one, and text past a budget is cut off without a warning. With many User memories, the ones that sort last never reach the model.

This search also applies the Relevance Threshold from Settings > Documents (admin section), or RAG_RELEVANCE_THRESHOLD. When it is above 0, a Context memory whose vector similarity score to your messages is below it drops out of the search results, with no error or warning. No reranker runs on memories, and the threshold applies even while Hybrid Search is off and the field is hidden, so a value tuned for a reranker's scores can stop every Context memory from matching. If Context memories no longer reach the model, lower the threshold or set it to 0. User memories and the search_memories tool, which matches text, are not affected.

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 the Clear Memory dialog (Are you sure you want to clear all memories? This action cannot be undone.) Open WebUI deletes the memories from the database and drops their search index, and you see Memory cleared successfully. There is no undo or trash. To remove only some memories, delete them one at a time from the list instead.

2. Native Memory Tools (Agentic Mode)​

When using a model with Native Function Calling (Agentic Mode) enabled, quality models can manage your memory autonomously using built-in tools. For a detailed breakdown of how administrators can configure and manage these system-level tools, see the Central Tool Calling Guide.

Minimum model tier

Autonomous memory management needs a model that can decide which facts are worth saving and when to recall them. A frontier model is not required: GPT-5.6 Luna, Gemini 3.5 Flash-Lite, MiniMax M3, or locally Qwen 3.6 27B or Muse Glimmer 30B are the minimum. Only very small models struggle with memory selection. The list is not updated with every model release; any recent model with solid tool calling works.

Each memory carries a type and an optional path (see Memory Types & Paths below). The model manages memory through these tools:

  • add_memory: Save a new fact, preference, or instruction, tagged as user or context, optionally under a path.
  • update_memory: Apply a batch of changes (add / replace / move / remove) in a single call.
  • replace_memory_content: Update or correct a specific existing memory using its id.
  • delete_memory: Remove a memory that is no longer relevant or correct, using its id.
  • search_memories: Search or browse the memory bank by content, path, type, or exact id. Results include a unique id per snippet (default returns 5).
  • list_memories: Retrieve all stored memories for the user, including content and timestamps.
  • list_memory_paths: List the saved memory paths (groups), so the model can find where related memories already live before writing.
  • read_memory_path: Read the memories stored at a given path, including nearby parent and child paths.

Memory Types & Paths​

Each memory has a type and an optional path:

  • Type: user memories are facts, preferences, or instructions about you (e.g. "prefers Python for backend"); context memories are other durable context worth carrying between chats. The two are budgeted separately when injected into the prompt (see Background Review & Limits).
  • Path: an optional stable "address" used to group related memories (e.g. work/projects), so the model can organize and browse them hierarchically with list_memory_paths / read_memory_path instead of one flat list.

These are set automatically by the memory tools; you do not need to assign them manually.

Benefits of the Memory System​

  • Proactive Learning: Instead of you manually typing preferences, a model can say: "I'll remember that you prefer dark mode for your UI projects" and call add_memory behind the scenes.
  • Contextual Retrieval: If a conversation drifts into a topic mentioned months ago, the model can "search its brain" using search_memories to find those past details.
  • Dynamic Correction: If the model remembers something incorrectly, it can use replace_memory_content to fix the fact rather than creating a duplicate.
  • Cleanup: The model can use delete_memory to remove outdated or irrelevant facts, keeping your memory bank clean.
  • Full Visibility: Using list_memories, the model can review everything it knows about you and identify gaps or contradictions.
  • User Control: Even though models can add memories, users retain full control. Every memory added by a model can be reviewed and deleted in the Personalization settings.

Enabling Memory Tools​

  1. Administrative Enablement: Ensure the Memory feature is enabled globally by an administrator and that you have the required permissions.
  2. Native Mode (Agentic Mode): Enable Native Function Calling in the model's advanced parameters (Settings > Models > Edit (admin section) the model > Advanced Params).
  3. Per-Model Toggles: Ensure the Memory capability and the Memory category under Builtin Tools are enabled for the model in Settings > Models > Edit (admin section) (or Workspace > Models for your own model), both on by default. The model also needs Builtin Tools on.

Automations get the memory tools under the same conditions, whenever memory is on for the user who owns them. That follows the user's Memory switch in Settings > Personalization. If the user never set it, the default interface settings decide, and without those the instance-wide Memories setting.

Blank replies instead of memory operations

Memory runs as a native tool call, so it only works on a connection whose streaming output follows the OpenAI schema. On an endpoint that omits the index field on streamed tool calls, notably Google's OpenAI compatibility layer, the call is dropped and the turn returns an empty assistant message with nothing in the logs. Because the model decides on its own when to call list_memories or add_memory, this shows up as occasional blank replies rather than an obvious memory failure. See Blank Replies When the Model Uses a Tool.

Central Tool Documentation

For complete details on all built-in agentic tools (including memory, web search, and knowledge bases) and how to configure them, see the Native/Agentic Mode Tools Guide.

Administrative Controls​

Administrators have full control over the Memory feature, including the ability to disable it globally or restrict it to specific user groups.

Global Toggle​

The Memory feature can be toggled on or off for the entire instance. When disabled, the "Personalization" tab is hidden from all users, the memory-related API endpoints are blocked, stored memories are no longer added to the model's context and the model is no longer given the memory tools.

  • Admin UI: Settings > General > Features > Memories (admin section)
  • Environment Variable: ENABLE_MEMORIES (Default: True)

Granular Permissions​

Administrators can also control Memory access on a per-role or per-group basis from the Permissions interface.

Taking the permission away closes every route memories take to a model. The affected users lose the Personalization tab, the memory API endpoints answer them with 403, the model is no longer handed the memory tools and their stored memories are no longer added to the model's context. That last check runs server-side on each chat request, so a request that still asks for memory (a personal Memory toggle left on from before, or an API client sending features: {"memory": true}) does not bring the memories back. Administrators are exempt from the permission check.

Background Review & Limits​

The character limits apply when Open WebUI includes memories in a model request. Raising a limit gives the model more room to see existing memories. Saved memory entries keep their full text.

For an instance with persistent configuration enabled, changing the environment variable after the limit has been saved leaves the stored value in effect. To update the stored user memory limit, send this JSON to POST /api/v1/configs/import using an administrator session token:

{
  "config": {
    "memories.user_char_limit": 6000
  }
}

Use memories.context_char_limit for the context memory budget.

Memory System Context​

By default Open WebUI adds the user's stored memories to the model's context so the model is aware of them. With Native function calling they arrive once per reply as a hidden recall_memories tool result after the user's message, otherwise they are appended to the user's message. Recall also needs the model's Memory capability. This injection can be turned off independently of the memory tools: when disabled, the model can still add, update and delete memories on request, but remembered information is no longer added to the prompt automatically.

  • Admin UI: Settings > General > Features > Memory System Context (admin section) (shown when Memories is enabled)
  • Environment Variable: ENABLE_MEMORY_SYSTEM_CONTEXT (Default: True)

Privacy & Security​

Memories are stored locally in your Open WebUI database and are scoped to your user account. They are not shared with other users by default, and you can clear your entire memory bank at any time.

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.