cognee

topoteretes/cognee

Open-Source AI Memory Platform

27k
Stars
2.5k
Forks
628
Open issues
79
Watchers
Python Apache-2.0Last pushed Jul 7, 2026

Overview

Cognee provides persistent long-term memory for AI agents by ingesting data of any format and building a self-hosted knowledge graph.

Categories

Tags

Similar tools

Install

pip install cognee

README

Cognee Logo

Cognee - The Open-Source AI Memory Platform for Agents

Demo . Docs . Learn More · Join Discord · Join r/AIMemory . Community Plugins & Add-ons

Sponsor

topoteretes%2Fcognee | Trendshift

Cognee 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

🌐 This README is also available in: :

Deutsch | Español | Français | 日本語 | 한국어 | Português | Русский | 中文

📄 Read the research paper: Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning — Markovic et al., 2025

About Cognee

Cognee 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.

:star: Help us reach more developers and grow the cognee community. Star this repo!

:books: Check our detailed documentation for setup and configuration.

:crab: Available as a plugin for your OpenClaw — cognee-openclaw

✴️ Available as a plugin for your Claude Code — claude-code-plugin

🦀 Available as a Rust client — cognee-rs

🟦 Available as a TypeScript client — @cognee/cognee-ts

Why use Cognee:

  • Easily Build Company Brain - unify data from various sources in one place and enable Agents with your domain knowledge
  • Knowledge infrastructure — unified ingestion, graph/vector search, runs locally, ontology grounding, multimodal
  • Persistent and Learning Agents - learn from feedback, context management, cross-agent knowledge sharing
  • Reliable and Trustworthy Agents - agentic user/tenant isolation, traceability, OTEL collector, audit traits

How it Works