8 Best Memary Alternatives in 2026 (Open Source)
Memary — The Open Source Memory Layer For Autonomous Agents. vs LangChain Memory / Mem0: graph-database-backed memory system emulating human memory (breadth + depth tracking) — agents automatically build and query knowledge graphs rather than flat conversation history
These 8 open-source tools do the same job. They are ordered by how closely they match Memary, with live GitHub data so you can see which projects are actively maintained.
| Tool | GitHub stars | Stars / 30d | Last commit |
|---|---|---|---|
| Memary(original) | 2.7k | +12 | 2024-10-18 |
| Mem0 | 66.4k | +2,429 | 2026-09-25 |
| Cognee | 31.2k | +2,656 | 2026-09-29 |
| Letta | 25.0k | +515 | 2026-09-10 |
| Letta | 25.0k | +515 | 2026-09-10 |
| ThinkGPT | 1.6k | +0 | 2023-05-16 |
| Generative Agents | 22.2k | +190 | 2023-08-11 |
| GPTeam | 1.7k | +1 | 2024-06-28 |
| AI Legion | 1.4k | +1 | 2025-05-27 |
1. Mem0
Universal memory layer for AI Agents
What sets it apart: Unlike Zep (session-focused memory) or ChatGPT's built-in memory (closed, limited), Mem0 provides a standalone, open-source memory layer with proven +26% accuracy gains over OpenAI Memory, multi-level (user/session/agent) state management, and 90% token reduction via intelligent memory retrieval.
Best for: AI assistant developers who need persistent, personalized memory across conversations without building custom infrastructure; Customer support chatbots that need to recall past tickets and user preferences
2. Cognee
Knowledge Engine for AI Agent Memory in 6 lines of code
What sets it apart: Unlike Mem0 (conversation memory) or Chroma (pure vector search), Cognee builds an evolving knowledge graph from documents, combining vector + graph search with cognitive science approaches, ontology grounding, and cross-agent knowledge sharing — making it AI memory infrastructure rather than just a vector database.
Best for: AI agent developers who need persistent, learning memory that combines vector search with knowledge graph relationships; Enterprise use cases requiring tenant isolation, audit trails, and cross-agent knowledge sharing
3. Letta
Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
What sets it apart: Pioneered virtual context management for LLMs — enabling unlimited conversation history through intelligent memory paging
Best for: Long-running AI agents with persistent memory; Research on memory architectures for LLMs
4. Letta
Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
What sets it apart: Purpose-built memory architecture that enables agents to self-improve over time — vs generic agent frameworks that only have short-term chat history
Best for: Building long-running AI agents that learn from interactions; Applications requiring persistent context across sessions
5. ThinkGPT
Agent techniques to augment your LLM and push it beyong its limits
What sets it apart: vs LangChain Memory/LlamaIndex: purpose-built Chain of Thought library combining memory, self-refinement, knowledge compression, and inference — focused on making LLMs 'think' rather than just retrieve
Best for: Teaching LLMs new concepts through memory and self-refinement; Building agents with persistent knowledge across sessions; Knowledge-intensive tasks requiring compression and reasoning
6. Generative Agents
Generative Agents: Interactive Simulacra of Human Behavior
What sets it apart: The original Stanford research paper implementation that introduced generative agents — the foundational work that inspired AI Town and subsequent agent simulation projects, featuring memory stream architecture with reflection and planning that produces remarkably human-like emergent behavior
Best for: AI researchers studying emergent social behavior and collective agent dynamics; Game designers prototyping NPC behavior systems with LLM-powered decision-making
7. GPTeam
GPTeam: An open-source multi-agent simulation
What sets it apart: vs single-agent systems: agents with individual memory communicate as a team using messaging as a tool — spatial simulation with location-based interaction adds a unique social dynamics layer
Best for: Multi-agent collaboration simulations and research; Exploring agent communication and coordination patterns; Simulating team dynamics with AI agents
8. AI Legion
An LLM-powered autonomous agent platform
What sets it apart: Multi-agent platform where autonomous LLM agents with persistent memory collaborate through console interaction, learning from their own mistakes
Best for: multi-agent-experimentation; exploring-agent-self-organization; autonomous-task-delegation