Mem0:5.8 万 Star 的 AI Agent 长期记忆层

2026-06-16 22:00:00

Mem0 开源项目分析

仓库:github.com/mem0ai/mem0 · 官网:mem0.ai · License: Apache-2.0 · ⭐ 58k+

项目是什么

Mem0(读作 mem-zero)是 AI Agent 与应用的记忆层——让 Chatbot、Copilot、自治 Agent 记住用户偏好与历史,而非每轮 Session 从零开始。

核心能力

  • 自动事实提取用户画像 维护
  • 矛盾消解过期信息遗忘
  • Hybrid Search:RAG 知识库 + 个性化 Memory 一次查询
  • 集成:LangGraph、CrewAI、OpenAI Assistants

产品形态

  • 开源 SDK(Python/TS)
  • 托管 APImem0.ai
  • Chrome 扩展:跨 ChatGPT/Claude/Perplexity 共享记忆

快速开始

pip install mem0ai
from mem0 import Memory
m = Memory()
m.add("用户偏好 Python 和 FastAPI", user_id="alice")
results = m.search("技术栈偏好", user_id="alice")

与 Supermemory 对比

项目 Star 侧重
Mem0 58k 成熟 SDK + 托管 + 浏览器扩展
Supermemory 26k Memory+RAG+Connector 一体化 API

黑豹点评

Mem0 是 Agent 记忆层的事实标准之一——若产品需要「越用越懂用户」,优先评估 Mem0 而非自建 Vector DB + 抽取 Pipeline。

项目链接https://github.com/mem0ai/mem0