Mem0
Long-term memory layer for AI agents and assistants.
- Star 数
- 69.6K
- Fork 数
- 8.3K
- 未关闭 Issue
- 1K
- 最近提交
- 2026-11-27
数据来自 GitHub API · 更新于 2026-11-30
Mem0 是什么?
Mem0 adds persistent, personalized memory to LLM apps. It extracts facts from conversations, stores them in vector and graph stores and retrieves the relevant ones on later turns, cutting token use compared with replaying full histories.
主要功能
- User, session and agent-level memory
- Automatic fact extraction and updates
- Vector and graph memory backends
- Python and TypeScript SDKs
- Self-hosted or managed platform
系统要求
- 平台
- Windows · macOS · Linux · Docker
- Python
- 3.9+
如何安装 Mem0
根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。
pip
- 1Install the SDK.
pip install mem0ai - 2Add and search memories (uses OpenAI by default; set OPENAI_API_KEY).
from mem0 import Memory m = Memory() m.add("I prefer vegetarian food", user_id="alice") print(m.search("What should I cook?", user_id="alice"))
npm
- 1Install the TypeScript SDK.
npm install mem0ai
优势
- Drop-in memory for any agent
- Good docs and SDKs
不足
- Needs an LLM call to extract memories
- Graph memory adds infrastructure
Mem0 替代品对比
| 软件 | Star 数 | 许可证 | 平台 | 显存 |
|---|---|---|---|---|
| Mem0 Long-term memory layer for AI agents and assistants. | 69.6K | Apache-2.0 | — | |
| Letta Stateful agents with self-editing memory (formerly MemGPT). | 25.6K | Apache-2.0 | — | |
| LangGraph Low-level orchestration for stateful, long-running agents as graphs. | 45.6K | MIT | — | |
| LlamaIndex Data framework for connecting LLMs to your documents. | 53.1K | MIT | — | |
| Open WebUI Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs. | 159.8K | Open WebUI License (BSD-3-Clause based) | — | |
| LibreChat Open-source ChatGPT clone supporting every major AI provider. | 47.7K | MIT | — |
常见问题
Mem0 免费吗?
是的——Mem0 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。
Mem0 支持 Windows、Mac 和 Linux 吗?
Mem0 支持:Windows, macOS, Linux, Docker。
如何安装 Mem0?
1. Install the SDK. 2. Add and search memories (uses OpenAI by default; set OPENAI_API_KEY).
Mem0 有哪些好的替代品?
常见替代品包括 Letta, LangGraph, LlamaIndex, Open WebUI,详见本页对比表。