mem0ai 1.0.10


pip install mem0ai

  Latest version

Released: Apr 01, 2026

Project Links

Meta
Author: Mem0
Requires Python: <4.0,>=3.9

Classifiers

Mem0 - The Memory Layer for Personalized AI

mem0ai%2Fmem0 | Trendshift

Learn more Β· Join Discord Β· Demo

Mem0 Discord Mem0 PyPI - Downloads GitHub commit activity Package version Npm package Y Combinator S24

πŸ“„ Building Production-Ready AI Agents with Scalable Long-Term Memory β†’

⚑ +26% Accuracy vs. OpenAI Memory β€’ πŸš€ 91% Faster β€’ πŸ’° 90% Fewer Tokens

πŸŽ‰ mem0ai v1.0.0 is now available! This major release includes API modernization, improved vector store support, and enhanced GCP integration. See migration guide β†’

πŸ”₯ Research Highlights

  • +26% Accuracy over OpenAI Memory on the LOCOMO benchmark
  • 91% Faster Responses than full-context, ensuring low-latency at scale
  • 90% Lower Token Usage than full-context, cutting costs without compromise
  • Read the full paper

Introduction

Mem0 ("mem-zero") enhances AI assistants and agents with an intelligent memory layer, enabling personalized AI interactions. It remembers user preferences, adapts to individual needs, and continuously learns over timeβ€”ideal for customer support chatbots, AI assistants, and autonomous systems.

Key Features & Use Cases

Core Capabilities:

  • Multi-Level Memory: Seamlessly retains User, Session, and Agent state with adaptive personalization
  • Developer-Friendly: Intuitive API, cross-platform SDKs, and a fully managed service option

Applications:

  • AI Assistants: Consistent, context-rich conversations
  • Customer Support: Recall past tickets and user history for tailored help
  • Healthcare: Track patient preferences and history for personalized care
  • Productivity & Gaming: Adaptive workflows and environments based on user behavior

πŸš€ Quickstart Guide

Choose between our hosted platform or self-hosted package:

Hosted Platform

Get up and running in minutes with automatic updates, analytics, and enterprise security.

  1. Sign up on Mem0 Platform
  2. Embed the memory layer via SDK or API keys

Self-Hosted (Open Source)

Install the sdk via pip:

pip install mem0ai

Install sdk via npm:

npm install mem0ai

CLI

Manage memories from your terminal:

npm install -g @mem0/cli   # or: pip install mem0-cli

mem0 init
mem0 add "Prefers dark mode and vim keybindings" --user-id alice
mem0 search "What does Alice prefer?" --user-id alice

See the CLI documentation for the full command reference.

Basic Usage

Mem0 requires an LLM to function, with `gpt-4.1-nano-2025-04-14 from OpenAI as the default. However, it supports a variety of LLMs; for details, refer to our Supported LLMs documentation.

First step is to instantiate the memory:

from openai import OpenAI
from mem0 import Memory

openai_client = OpenAI()
memory = Memory()

def chat_with_memories(message: str, user_id: str = "default_user") -> str:
    # Retrieve relevant memories
    relevant_memories = memory.search(query=message, user_id=user_id, limit=3)
    memories_str = "\n".join(f"- {entry['memory']}" for entry in relevant_memories["results"])

    # Generate Assistant response
    system_prompt = f"You are a helpful AI. Answer the question based on query and memories.\nUser Memories:\n{memories_str}"
    messages = [{"role": "system", "content": system_prompt}, {"role": "user", "content": message}]
    response = openai_client.chat.completions.create(model="gpt-4.1-nano-2025-04-14", messages=messages)
    assistant_response = response.choices[0].message.content

    # Create new memories from the conversation
    messages.append({"role": "assistant", "content": assistant_response})
    memory.add(messages, user_id=user_id)

    return assistant_response

def main():
    print("Chat with AI (type 'exit' to quit)")
    while True:
        user_input = input("You: ").strip()
        if user_input.lower() == 'exit':
            print("Goodbye!")
            break
        print(f"AI: {chat_with_memories(user_input)}")

if __name__ == "__main__":
    main()

For detailed integration steps, see the Quickstart and API Reference.

πŸ”— Integrations & Demos

  • ChatGPT with Memory: Personalized chat powered by Mem0 (Live Demo)
  • Browser Extension: Store memories across ChatGPT, Perplexity, and Claude (Chrome Extension)
  • Langgraph Support: Build a customer bot with Langgraph + Mem0 (Guide)
  • CrewAI Integration: Tailor CrewAI outputs with Mem0 (Example)

πŸ“š Documentation & Support

Citation

We now have a paper you can cite:

@article{mem0,
  title={Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory},
  author={Chhikara, Prateek and Khant, Dev and Aryan, Saket and Singh, Taranjeet and Yadav, Deshraj},
  journal={arXiv preprint arXiv:2504.19413},
  year={2025}
}

βš–οΈ License

Apache 2.0 β€” see the LICENSE file for details.

1.0.10 Apr 01, 2026
1.0.9 Mar 28, 2026
1.0.8 Mar 26, 2026
1.0.7 Mar 20, 2026
1.0.6 Mar 17, 2026
1.0.5 Mar 03, 2026
1.0.4 Feb 17, 2026
1.0.3 Feb 03, 2026
1.0.2 Jan 13, 2026
1.0.1 Nov 13, 2025
1.0.0 Oct 16, 2025
1.0.0b0 Sep 18, 2025
0.1.118 Sep 25, 2025
0.1.117 Sep 03, 2025
0.1.116 Aug 13, 2025
0.1.115 Jul 24, 2025
0.1.114 Jul 04, 2025
0.1.113 Jun 30, 2025
0.1.112 Jun 27, 2025
0.1.111 Jun 23, 2025
0.1.110 Jun 20, 2025
0.1.109 Jun 18, 2025
0.1.108 Jun 14, 2025
0.1.107 Jun 11, 2025
0.1.107rc2 Jun 13, 2025
0.1.107rc1 Jun 05, 2025
0.1.106 Jun 09, 2025
0.1.104 Jun 02, 2025
0.1.103 Jun 02, 2025
0.1.102 May 26, 2025
0.1.101 May 20, 2025
0.1.100 May 19, 2025
0.1.99 May 15, 2025
0.1.99a3 May 15, 2025
0.1.99a2 May 15, 2025
0.1.99a1 May 15, 2025
0.1.99a0 May 15, 2025
0.1.98 May 09, 2025
0.1.97 May 05, 2025
0.1.96 May 02, 2025
0.1.96rc1 May 02, 2025
0.1.95 Apr 30, 2025
0.1.94 Apr 26, 2025
0.1.93 Apr 21, 2025
0.1.92 Apr 17, 2025
0.1.91 Apr 16, 2025
0.1.90 Apr 11, 2025
0.1.89 Apr 11, 2025
0.1.88 Apr 09, 2025
0.1.87 Apr 09, 2025
0.1.86 Apr 07, 2025
0.1.85 Apr 07, 2025
0.1.84 Apr 07, 2025
0.1.84a1 Apr 07, 2025
0.1.83 Apr 07, 2025
0.1.82 Apr 07, 2025
0.1.81 Mar 30, 2025
0.1.81a2 Mar 29, 2025
0.1.81a1 Mar 29, 2025
0.1.81a0 Mar 29, 2025
0.1.80 Mar 29, 2025
0.1.79 Mar 29, 2025
0.1.78 Mar 29, 2025
0.1.78a2 Mar 29, 2025
0.1.78a1 Mar 28, 2025
0.1.78a0 Mar 27, 2025
0.1.77 Mar 26, 2025
0.1.76 Mar 25, 2025
0.1.75 Mar 24, 2025
0.1.74 Mar 21, 2025
0.1.73 Mar 20, 2025
0.1.72 Mar 19, 2025
0.1.71 Mar 19, 2025
0.1.70 Mar 18, 2025
0.1.69 Mar 17, 2025
0.1.67 Mar 10, 2025
0.1.66 Mar 07, 2025
0.1.65 Mar 05, 2025
0.1.63 Mar 04, 2025
0.1.62 Mar 04, 2025
0.1.61 Mar 03, 2025
0.1.60 Mar 01, 2025
0.1.59 Mar 01, 2025
0.1.58 Feb 28, 2025
0.1.57 Feb 28, 2025
0.1.56 Feb 26, 2025
0.1.55 Feb 23, 2025
0.1.54 Feb 21, 2025
0.1.53 Feb 20, 2025
0.1.52 Feb 19, 2025
0.1.50 Feb 18, 2025
0.1.49 Feb 14, 2025
0.1.48 Jan 23, 2025
0.1.47 Jan 22, 2025
0.1.46 Jan 21, 2025
0.1.45 Jan 19, 2025
0.1.45rc1 Jan 17, 2025
0.1.44 Jan 15, 2025
0.1.43 Jan 13, 2025
0.1.42 Jan 11, 2025
0.1.41 Jan 09, 2025
0.1.40 Jan 06, 2025
0.1.39 Jan 03, 2025
0.1.38 Dec 28, 2024
0.1.37 Dec 28, 2024
0.1.36 Dec 19, 2024
0.1.35 Dec 15, 2024
0.1.34 Nov 28, 2024
0.1.33 Nov 26, 2024
0.1.32 Nov 22, 2024
0.1.31 Nov 22, 2024
0.1.30 Nov 20, 2024
0.1.29 Nov 07, 2024
0.1.28 Nov 07, 2024
0.1.27 Nov 02, 2024
0.1.26 Oct 30, 2024
0.1.25 Oct 29, 2024
0.1.24 Oct 25, 2024
0.1.23 Oct 24, 2024
0.1.22 Oct 22, 2024
0.1.21 Oct 18, 2024
0.1.20 Oct 18, 2024
0.1.20a0 Oct 11, 2024
0.1.19 Oct 03, 2024
0.1.18 Oct 01, 2024
0.1.17 Oct 01, 2024
0.1.16 Sep 25, 2024
0.1.15 Sep 18, 2024
0.1.14 Sep 16, 2024
0.1.13 Sep 11, 2024
0.1.12 Sep 10, 2024
0.1.11 Sep 04, 2024
0.1.10 Sep 04, 2024
0.1.9 Sep 04, 2024
0.1.8 Sep 03, 2024
0.1.7 Sep 02, 2024
0.1.6 Aug 30, 2024
0.1.5 Aug 27, 2024
0.1.4 Aug 27, 2024
0.1.3 Aug 27, 2024
0.1.2 Aug 21, 2024
0.1.1 Aug 20, 2024
0.1.0 Aug 20, 2024
0.0.21 Aug 20, 2024
0.0.20 Aug 15, 2024
0.0.20rc1 Aug 14, 2024
0.0.19 Aug 14, 2024
0.0.18 Aug 13, 2024
0.0.17 Aug 12, 2024
0.0.16 Aug 12, 2024
0.0.15 Aug 09, 2024
0.0.14 Aug 04, 2024
0.0.13 Aug 03, 2024
0.0.12 Aug 03, 2024
0.0.11 Aug 02, 2024
0.0.10 Aug 02, 2024
0.0.9 Jul 20, 2024
0.0.8 Jul 20, 2024
0.0.7 Jul 18, 2024
0.0.6 Jul 18, 2024
0.0.5 Jul 18, 2024
0.0.4 Jul 16, 2024
0.0.3 Jul 15, 2024
0.0.2 Jul 10, 2024
0.0.1 May 18, 2024

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
openai (>=1.90.0)
posthog (>=3.5.0)
protobuf (<7.0.0,>=5.29.6)
pydantic (>=2.7.3)
pytz (>=2024.1)
qdrant-client (>=1.9.1)
sqlalchemy (>=2.0.31)