YourMemory is an open-source persistent memory layer for AI agents that models human memory using the Ebbinghaus forgetting curve. Memories decay exponentially over time but resist decay based on importance and recall frequency. It uses a hybrid retrieval system combining BM25, vector search, and graph-based BFS expansion to surface relevant context. Benchmarked on LoCoMo-10 (1,534 QA pairs), it achieves 59% Recall@5 versus Zep Cloud's 28%. Installation is a single pip command with no external infrastructure required. It integrates with MCP-compatible AI coding clients including Claude Code, Cursor, Cline, and Windsurf. Supports multi-agent setups with isolated private memories and shared context, backed by DuckDB and NetworkX by default, with optional PostgreSQL+pgvector and Neo4j backends.
Table of contents
The ProblemHow Well Does It Work?DemoQuick StartMCP ToolsHow It WorksMulti-Agent MemoryStackArchitectureDataset ReferenceLicenseSort: