Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
cognee is a free, open-source AI memory platform that gives AI agents persistent long-term memory across sessions. It turns documents, code, and conversations into a self-hosted knowledge graph that agents can search and reuse. It is aimed at developers building agents that need to retain project context, past decisions, and learned rules rather than starting each session from scratch.
cognee runs locally for free using small models that run on a CPU, with no API key required, and both the local extraction model and the embedding model download on first use. Text becomes entities, relationships, and searchable chunks, while code becomes a graph of symbols and dependencies. At query time, retrieval selects relevant graph, vector, or code context that an application can inspect and use to answer a question or continue an agent task.
cognee supports four core operations: remember stores content or code in permanent memory or a session, recall retrieves context and answers using automatic routing or a chosen search strategy, improve enriches memory with feedback, and forget removes a specific item or dataset. It can run the entire memory layer on a single Postgres instance instead of separately operating a graph database, a vector database, Redis, and a relational database.
cognee is released under the Apache-2.0 license and requires Python 3.10 to 3.14. It can be installed with pip or uv, run from the command line with cognee-cli, deployed with Docker Compose exposing an API on port 8000, a UI on port 3000, and an MCP server on port 8001, or used through Cognee Cloud as a managed service. Running Cognee as a graph store on Postgres is a demo feature, with a production-ready version offered as a licensed product.