Prerequisites
- Python 3.10 or higher
- OpenAI API key (Get one here)
Uses OpenAI by default. Want to use Ollama, Anthropic, or local models? See Configuration.
Installation
Using Mem0? Star us on GitHub to help more developers discover memory for AI apps.
By default
Memory() wires up:- OpenAI
gpt-5-minifor fact extraction and updates - OpenAI
text-embedding-3-smallembeddings (1536 dimensions) - Qdrant vector store with on-disk data at
/tmp/qdrant - SQLite history at
~/.mem0/history.db - No reranker (add one in the config when you need it)
What’s next?
Memory operations
Search, update, and manage memories with the full CRUD API.
Configure for production
Swap in your own LLM, embedder, and vector store.
Add to your framework
Wire Mem0 into LangChain, CrewAI, LangGraph, and 20+ more.
Discord
Join our community
GitHub
Ask questions on GitHub
Support
Talk to founders