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.

ToolGitHub starsStars / 30dLast commit
Memary(original)2.7k+122024-10-18
Mem066.4k+2,4292026-09-25
Cognee31.2k+2,6562026-09-29
Letta25.0k+5152026-09-10
Letta25.0k+5152026-09-10
ThinkGPT1.6k+02023-05-16
Generative Agents22.2k+1902023-08-11
GPTeam1.7k+12024-06-28
AI Legion1.4k+12025-05-27
  1. 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. 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. 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. 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. 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. 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. 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. 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