Mem0
Intelligent memory layer for AI agents — automatically extracts, stores, and retrieves relevant context across sessions.
Mem0
Mem0 provides AI agents and assistants with a persistent, intelligent memory layer. Unlike simple conversation buffers, Mem0 uses an LLM to extract salient facts from conversations, deduplicates them, and retrieves only the most relevant memories for each new interaction — enabling truly personalized long-running agents.
Key Features
- Auto-extraction — LLM-powered fact extraction from raw conversations
- Multi-level memory — user-level, agent-level, session-level, and org-level memory scopes
- Hybrid storage — vector store (semantic search) + graph store (entity relationships) + key-value (fast facts)
- Provider-agnostic — works with OpenAI, Anthropic, Groq, and local models; Qdrant, Pinecone, Chroma for storage
- MCP server — official Mem0 MCP server exposes
add_memoryandsearch_memoryas tool calls - REST API — managed cloud option or self-hosted OSS
Quick Start
pip install mem0ai
from mem0 import Memory
mem = Memory()
# Store a memory
mem.add("I prefer Python over JavaScript", user_id="alice")
# Retrieve relevant memories
results = mem.search("What language does Alice prefer?", user_id="alice")
for r in results:
print(r["memory"])
Install via ai-supply
npx ai-supply add mem0-agent-memory
Curated mirror of the open-source Mem0 project (Apache-2.0). Install upstream from the repository.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/mem0-agent-memory/check). Click a policy:
Consume Mem0 programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/mem0-agent-memory
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/mem0-agent-memory/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add mem0-agent-memory
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/mem0-agent-memory/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "mem0-agent-memory" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.