Learning resourcesReviewed · Mem0

Mem0 Add Memory guide

Mem0’s Add Memory guide is a tutorial for developers building AI agents that remember conversations, but adding memories leaves earlier entries unchanged. It covers managed and open-source SDK calls, automatic fact extraction, conversation identifiers, raw storage and expiration.

Researched 15 Nov 2026

In short.

Mem0’s Add Memory guide teaches developers to save conversation details for AI agents, with the catch that new entries accumulate without replacing older memories. It explains managed and open-source usage, inference modes, metadata and expiration. Platform writes return a pending event requiring completion confirmation, and Platform extraction automatically reuses earlier messages with matching conversation identifiers. Mixing raw and inferred storage can create duplicates. Prices, exact SDK compatibility and runtime performance are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected Add Memory documentation page at [https://docs.mem0.ai/core-concepts/memory-operations/add], including its examples, callouts, comparison table and page metadata. Linked API references, setup guides, pricing pages, MCP documentation, cookbooks and repository contents are excluded. License and service terms are not supplied on this page. The examples were not executed; runtime behavior, extraction accuracy, latency, reliability and SDK compatibility remain unassessed.

The overview

Identity

Add Memory is a Mem0 documentation guide explaining how applications save conversation details for later retrieval [https://docs.mem0.ai/core-concepts/memory-operations/add]. It covers the managed Mem0 Platform and the open-source SDK that runs in the developer’s environment.

The resource is an explanation of one memory operation with code examples. It is not a complete application, deployment guide or account of every Mem0 feature.

Assessment

The guide is useful for understanding the write side of agent memory: what to send, how to associate it with a user or session, and which storage mode to choose. Its most consequential details are that add preserves existing memories, managed writes initially return a pending status, and raw inserts can produce duplicates.

It supports initial integration planning, but installation, complete configuration and full request and response definitions require additional material. Production suitability is not established by the examples.

Users

The intended readers are developers building agents that retain preferences, decisions, goals, introduced entities or user feedback across interactions. The page points to support agents and personalized tutors as applications.

Beginners get definitions of messages, inference, metadata and identifiers. Experienced developers get SDK naming differences and asynchronous completion details. The examples assume familiarity with Python or JavaScript and API credentials.

Capabilities

The guide covers automatic extraction of facts, decisions and preferences, enabled by default through infer=True, and raw message storage through infer=False. It introduces optional metadata for later filtering and user_id, agent_id, app_id and run_id as identifiers that scope memories.

It also documents an optional expiration_date in YYYY-MM-DD format, called expirationDate in JavaScript. Platform examples show automatic reuse of earlier conversation messages, so callers send only new turns with consistent identifiers.

Using it

Requirements

The Platform examples use MemoryClient from Python’s mem0 module or JavaScript’s mem0ai package, together with a Mem0 API key. The open-source examples use Memory from mem0 or mem0ai/oss; the Python example sets OPENAI_API_KEY.

The page does not specify supported runtime versions, SDK release numbers, hardware minimums, storage defaults or complete provider configuration. Running the SDK in your environment does not establish that its model processing happens locally.

Mechanism

With inference enabled, Mem0 sends messages through an LLM to extract useful details, adds the resulting memories without overwriting or deleting existing ones, and makes them available for later relevance-ranked searches. Disabling inference stores the supplied payload without that extraction step.

On the Platform, extraction automatically draws on earlier messages sharing user_id and, when supplied, run_id. The page does not specify the extraction model, ranking algorithm, amount of earlier context retrieved or equivalent context behavior for the open-source SDK.

Setup

Prepare an ordered messages array containing role and content fields, initialize the appropriate client, and call add with an identifier such as user_id in Python or userId in JavaScript. Metadata, inference mode and expiration are additional options illustrated on the page.

For Platform writes, the documented initial response contains status "PENDING" and an event_id. Poll GET /v1/event/{event_id}/ to confirm completion. The open-source Python example creates Memory() after setting its provider key; installation and a complete deployment configuration are not included.

Example

The Platform example first records that Alice has a golden retriever named Biscuit. A later call sends only a new message saying that he turned five, using the same user_id. The intended result connects the age update to Biscuit through the earlier conversation context.

The open-source Python example records movie preferences with category metadata and separately illustrates raw storage and expiration. These are usage illustrations, not execution results. The page warns that storing the same content in raw and inferred modes can create a second memory.

Assessment & evidence

Limitations

The documented add operation accumulates memories. A newly supplied preference should not be assumed to remove an older, conflicting preference. Raw inserts skip inference, and repeated raw inserts or mixing raw and inferred modes can create duplicates.

Expiration hides memories from search and get_all by default; show_expired, called showExpired in JavaScript, includes them again. Fetching an expired memory by ID still returns it, so expiration does not establish deletion.

The page provides no measured extraction accuracy, latency, throughput or reliability. Exact quotas, conflict handling and complete SDK compatibility are unspecified.

Reasoning

The practical choice is whether the application needs extracted facts or the exact supplied messages. Inference produces structured memories; raw mode retains the supplied payload and requires attention to duplicate storage. The page does not demonstrate which mode improves an agent’s answers.

For changing preferences or temporary facts, the documented accumulation and expiration behavior imply a need to plan how older entries are handled. The guide does not explain the separate update and delete operations.

Alternatives

The guide presents managed Platform usage with a dashboard and workspace quotas, alongside open-source usage where developers control storage and inspect it through tools such as logs or a custom interface. It supplies no measured cost or performance comparison between them.

It also identifies Mem0 MCP as an alternative through which agents can add memories based on context [https://docs.mem0.ai/platform/mem0-mcp]. MCP setup and behavior are not explained on this page. Competing memory libraries are not compared.

Evidence

The source is Mem0’s Add Memory documentation page. It contains terminology, Python and JavaScript examples for both deployment options, operational warnings, expiration rules and a managed-versus-open-source comparison.

Its expected pending response and illustrative extracted memories describe intended behavior. They are not runtime traces or benchmarks, and they do not establish extraction quality or application-level improvements.

Access & freshness

Costs

Platform prices, included allowances, overage rates, provider charges and total operating cost are unknown from this page. It identifies managed workspace quotas for Platform usage and hardware and provider API limits for open-source usage, without numerical values.

The open-source option gives developers responsibility for their environment and storage, but the page does not establish a zero-cost configuration.

Rights

The page describes an open-source option and links to Mem0’s GitHub project, but supplies no applicable license text for the SDK, documentation or examples. Specific commercial-use and redistribution permissions are therefore unknown from this page.

Platform service terms, ownership of stored conversation data, data handling commitments and retention policies are not specified.

Freshness

The page metadata records a last modification on 14 July 2026; the supplied copy was captured on 15 November 2026. These dates do not identify a compatible SDK release.

The page says Platform conversation context reuse is now the default and that the older version="v2" argument on add is ignored. It does not name the SDK releases affected. Changes after the capture date are unknown.

Actions

Choose the managed or open-source path, define consistent user and session identifiers, and decide whether to extract facts or retain raw messages. For Platform usage, confirm event completion before relying on a new memory. Decide separately whether temporary information should be hidden through expiration or explicitly deleted.

Consult the linked Add Memories API reference for complete fields and response definitions [https://docs.mem0.ai/api-reference/memory/add-memories], and obtain current pricing details before budgeting [https://docs.mem0.ai/platform/pricing]. Check extraction, duplicate handling and retrieval with representative conversations in the intended SDK version; those outcomes remain unassessed.

Evidence for this report

selected-page.htmlselected · checked 2026-11-15