topoteretes /cognee
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
★ 33,331⑂ 3,518👁 101⑃ 4,692● 1,770▤ 160
+21
Daily
+302
Weekly
33,331
stars
3,518
forks
101
watchers
4,692
prs
1,770
issues
160
releases
README
Cognee - The Free Open-Source AI Memory Platform for Agents
Demo
.
Docs
.
Learn More
·
Join Discord
·
Join r/AIMemory
.
Community Plugins & Add-ons
Cognee is a free open-source AI memory platform that gives AI agents persistent long-term memory across sessions. Turn documents, code, and conversations into a self-hosted knowledge graph your agents can search and reuse.
Runs locally for free — no API key required.
We rely on free small models that use your CPU.
🌐 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
When to use Cognee
- Build a Company Brain. Bring documentation, conversations, tickets, code, and agent work into shared memory. Help your team and agents connect a decision to the discussion and implementation behind it. Explore Company Brain.
- Give agents memory across runs. Retain project context, past decisions, fixes, and learned rules. Distill useful session lessons into durable knowledge that another session can retrieve. Connect your agent.
- Ground agents in your domain. Structure memory around the entities and relationships your application needs, with custom data models and ontologies. Explore ontologies.
Choose your starting point
| I want to… | Start here |
| --- | --- |
| Build memory without an LLM | Local Python quickstart |
| Explore a prebuilt graph without downloading models | Bundled demo |
| Generate answers with a local or hosted LLM | Optional LLM setup |
| Give an existing agent memory | Plugins and MCP |
| Run Cognee on my infrastructure | Deployment options |
| Use a managed service | Cognee Cloud |
Quickstart
Requires Python 3.10–3.14.
1. Install Cognee with pip, uv, or your preferred Python package manager. The gliner extra brings the local extraction model used when no LLM key is configured:
bash
uv pip install "cognee[gliner]"
Run locally without an LLM
2. Build and query memory. With no LLM key configured, Cognee extracts the graph with the local GLiNER model and embeds with a local embedding model; both download on first use.
Save this as quickstart.py and run python quickstart.py if you are feeling old school, or tell your LLM to do it:
python
import asyncio
import cognee
async def main():
Extract a knowledge graph and embed the text with local models.
await cognee.remember(
"Marie Curie was born in Warsaw and worked at the University of Paris.",
dataset_name="local_quickstart",
)
Retrieve the matching source text; no LLM generates an answer.
results = await cognee.recall(
"Where was Marie Curie born?",
datasets=["local_quickstart"],
)
for result in results:
print(result)
if __name__ == "__main__":
asyncio.run(maiTop issues
#4778Hackathon [Feature]: Add Rollbar data-source connector30 comments · 2026-08-28#4811Hackathon [Feature]: Add Reddit data-source connector29 comments · 2026-08-28#3625Hackathon: JSON Schema → Pydantic → cognee graph utilities — extend the base + full tests29 comments · 2026-06-28#5776Hackathon [Feature]: Add WooCommerce data-source connector28 comments · 2026-10-13#5470Hackathon [Feature]: Add Mattermost data-source connector28 comments · 2026-10-07#4784Hackathon [Feature]: Add Mailchimp data-source connector27 comments · 2026-08-28#4723Hackathon [Feature]: Add ReadMe data-source connector27 comments · 2026-08-28#5466Hackathon [Feature]: Add Backstage data-source connector26 comments · 2026-10-07
Discussions
#6722Chopper: a small open model that cuts only the needed sentences out of retrieved text0 comments · 2026-11-15#6501Clarification on consent for AML evaluation and leaderboard publication0 comments · 2026-11-02#6500I built Cloud Alter Ego: an MCP connector that gives every AI chat your rules and memory as plain Markdown files in your own cloud storage0 comments · 2026-11-02#6376Mergetober: could someone review integration proposal #6038?0 comments · 2026-10-27#6296Accountable Contributions pilot — Slid Phi Labs0 comments · 2026-10-23#6203My GafBrain: Making All My AI Conversation History Accessible0 comments · 2026-10-21#6000Cognee CLI included in AgentManager's tool catalog0 comments · 2026-10-18#5986It's too slow3 comments · 2026-10-18
Latest release
v1.6.8 Integrations & Connectors v1.6.8 2026-11-12v1.6.8 Integrations & Connectors Release Date: 2026-11-12 Changes: v1.6.7 → v1.6.8 Pull Requests: 5189, 6410, 6417, 6593, 6612, 6634, 6642 --- Summary This release focuses on expanding and hardening integrations (new Slack support and many connector improvements) and on building reliable background work for embeddings and data updates. You’ll find a new Slack connector and app, better Google/Drive/Gmail/Calendar connector behavior, a RabbitMQ-based embedding worker option, and many reliability and provenance (audit) fixes so your imports, updates, and deletions behave more predictably.
News & coverage (9)
Hacker NewsShow HN: Cognee – Open-Source AI Memory Layer That Remembers Context▲ 9 · 2 comments · 2025-06-03Hacker NewsShow HN: Auto-optimizing deterministic LLM outputs using knowledge graphs▲ 7 · 0 comments · 2024-04-22Hacker NewsShow HN: Cognee – Turn RAG and GraphRAG into custom dynamic semantic memory▲ 6 · 1 comments · 2025-02-13Hacker NewsShow HN: I got Claude Code to run in Binary▲ 2 · 0 comments · 2026-04-02Hacker NewsCognee: Reliable LLM Memory for AI Applications and AI Agents▲ 2 · 0 comments · 2025-01-13Hacker NewsMemory for AI agents in 6 lines of code▲ 1 · 0 comments · 2026-02-06noteThe Complete Guide to Implementing Persistent Memory in Hermes Agent with Cognee — From Knowledge Graph AI Memory Setup to Operation2026-07-06noteWhat is cognee, the tool that gives AI memory across sessions? A basic guide to running it via self-hosting2026-07-05Neo4jMeet Lenny’s Memory: Building context graphs for AI agents2026-02-02