cognee
Frameworktopoteretes/cognee
AI memory platform for persistent agent memory with knowledge graphs.
Overview
Cognee provides persistent long-term memory for AI agents using a self-hosted knowledge graph engine. It ingests data in any format, builds knowledge graphs, and enables agents to recall, connect, and act with full context across sessions.
README Preview
\n \n \n \n\n \n\n Cognee - The Open-Source AI Memory Platform for Agents\n\n \n Demo\n .\n Docs\n .\n Learn More\n ·\n Join Discord\n ·\n Join r/AIMemory\n .\n Community Plugins & Add-ons\n \n\n\n [](https://GitHub.com/topoteretes/cognee/network/)\n [](https://GitHub.com/topoteretes/cognee/stargazers/)\n [](https://GitHub.com/topoteretes/cognee/commit/)\n [](https://github.com/topoteretes/cognee/tags/)\n [](https://pepy.tech/project/cognee)\n [](https://github.com/topoteretes/cognee/blob/main/LICENSE)\n [](https://github.com/topoteretes/cognee/graphs/contributors)\n \n\n\n \n \n \n\n\nCognee is the open-source AI memory platform that gives AI agents persistent long-term memory across sessions. Ingest data in any format, build a self-hosted knowledge graph, and let every agent recall, connect, and act with full context\n\n \n 🌐 This README is also available in:\n :\n \n Deutsch |\n Español |\n Français |\n 日本語 |\n 한국어 |\n Português |\n Русский |\n 中文\n \n\n\n\n \n\n\n\n📄 Read the research paper: [Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning](https://arxiv.org/abs/2505.24478) — Markovic et al., 2025\n\n\n## About Cognee\n\nCognee is an open-source AI memory platform for AI Agents. Ingest data in any format, and Cognee continuously builds a self-hosted knowledge graph that gives your agents persistent long-term memory across sessions. Cognee combines vector embeddings, graph reasoning, and cognitive-science-grounded ontology generation to make documents both searchable by meaning and connected by relationships that evolve as your knowledge does.\n\n:star: _Help us reach more developers and grow the cognee community. Star this repo!_\n\n:books: _Check our detailed [documentation](https://docs.cognee.ai/getting-started/installation#environment-configuration) for setup and configuration._\n\n:crab: _Available as a plugin for your OpenClaw — [cognee-openclaw](https://www.npmjs.com/package