LightMem: Lightweight and Efficient Memory-Augmented Generation
⭐ If you like our project, please give us a star on GitHub for the latest updates!
LightMem is a lightweight and efficient memory management framework designed for Large Language Models and AI Agents. It provides a simple yet powerful memory storage, retrieval, and update mechanism to help you quickly build intelligent applications with long-term memory capabilities.
🚀 Lightweight & Efficient
Minimalist design with minimal resource consumption and fast response times🎯 Easy to Use
Simple API design - integrate into your application with just a few lines of code🔌 Flexible & Extensible
Modular architecture supporting custom storage engines and retrieval strategies🌐 Broad Compatibility
Support for cloud APIs (OpenAI, DeepSeek) and local models (Ollama, vLLM, etc.)
📢 News
- [2026-07-13]: 🎉🎉🎉LightMem has been selected for the CCF ODTC open source incentive program.
- [2026-04-24]: 🚀 LightMem now supports the latest DeepSeek models, including
deepseek-v4-flashanddeepseek-v4-pro, withreasoning_effortand thinking-mode configuration! - [2026-04-24]: 🎉🎉🎉 StructMem: Structured Memory for Long-Horizon Behavior in LLMs has been accepted by ACL 2026!
- [2026-03-21]: 🚀 We provide a more comprehensive baseline evaluation framework, supporting the benchmarking of memory layers such as Mem0, A-MEM, EverMemOS, LangMem on multiple datasets like LoCoMo and LongMemEval.
- [2026-02-15]: 🚀 StructMem is released: A hierarchical memory framework that preserves event-level memory bindings and cross-event memory connections.
- [2026-01-26]: 🎉🎉🎉 LightMem: Lightweight and Efficient Memory-Augmented Generation has been accepted by ICLR 2026!
- [2026-01-17]: 🚀 We provide a comprehensive baseline evaluation framework, supporting the benchmarking of memory layers such as Mem0, A-MEM, and LangMem on multiple datasets like LoCoMo and LongMemEval.
- [2025-12-09]: 🎬 Released a Demo Video showcasing long-context handling, along with comprehensive Tutorial Notebooks for various scenarios!
- [2025-11-30]: 🚌 LightMem now supports calling multiple tools provided by its MCP Server.
- [2025-11-26]: 🚀 Added full LoCoMo dataset support, delivering strong results with leading performance and efficiency! Here is the [reproduction script](https://github.com/zjunlp/LightMem/blob/main/experiments/locomo/read