The open-source AI memory platform for agents
open coreApache-2.0self-hostablefreeMCP
Cognee is an Apache-2.0 memory engine for AI agents that turns documents, conversations, tickets and code into a knowledge graph plus vector embeddings, with four operations: remember, recall, improve and forget. Since 1.6 it builds and searches text memory with no LLM key: a local GLiNER model extracts entities and a local model embeds them, returning retrieved passages, and an LLM (OpenAI by default, or Anthropic, Gemini, Ollama and others) is only needed for generated answers and the improvement stages. Graphs go in Neo4j, Neptune, Memgraph or the embedded Ladybug, vectors in LanceDB, PGVector or ChromaDB, metadata in SQLite or Postgres, and it can run the whole memory layer on one Postgres instance (a demo feature in the open source edition). It connects to Claude Code, Codex and OpenClaw as memory plugins, to other clients through its MCP server, and to apps through Python, a REST API, a TypeScript SDK and a Rust engine; Cognee Cloud hosts it and an Enterprise edition deploys in your own cloud.
Problems it solves
- give my coding agent memory of past decisions and fixes that carries over to the next session
- build a knowledge graph from our docs, Slack threads and tickets without paying an LLM to extract every chunk
- extract entities and relationships locally on CPU with a small model instead of a cloud LLM
- a company brain that links a decision to the discussion and the code that implemented it
- structure agent memory around my own entity types and ontology rather than a generic schema
- run graph memory, vector search and metadata for my agent on a single Postgres database
- persistent memory for Claude Code and Codex through a plugin rather than a custom MCP setup
- move an agent's memory out of Mem0, Letta, Zep or Graphiti into another system
- delete one document or dataset from an agent's memory when a user asks
- turn lessons from an agent session into durable knowledge another session can retrieve
- index a code repository as a graph of symbols and dependencies for an agent to query
- visualise the knowledge graph my agent has built and inspect its connections
Features
- remember, recall, improve and forget operations, with session memory and permanent memory
- keyless mode: local GLiNER entity extraction and local embeddings, no LLM key needed for ingestion and retrieval
- graph stores: Neo4j, Amazon Neptune, Neptune Analytics, Memgraph, Ladybug
- vector stores: LanceDB, PGVector, ChromaDB, Neptune Analytics; community adapters for Qdrant, Redis, FalkorDB
- relational metadata in SQLite or Postgres; whole memory layer on one Postgres instance (demo in the open source edition)
- LLMs: OpenAI, Azure OpenAI, Gemini, Anthropic, Mistral, Bedrock, Ollama, llama.cpp and custom endpoints
- custom data models and ontologies
- code graphs of symbols and dependencies
- memory plugins for Claude Code, Codex and OpenClaw; MCP server for Cursor, Cline and other clients
- REST API, Python API, TypeScript SDK and a Rust engine (Cognee-RS)
View 2 more
- COGX exchange format to import memory from Mem0, Letta, Zep or Graphiti
- Google Drive and Gmail connectors; local UI and graph visualisation
Limitations
- Doesn't write generated answers without an LLM: with no key it returns retrieved passages, and vision or transcription needs a model too1
Ways to run it
Cognee (open source)
Not included
- production-ready Postgres graph store (the open source one is a demo)
- the production small-model extraction runtime (the bundled GLiNER extractor is a demo)
You arrange
- an LLM API key or local Ollama for generated answers
- graph, vector and relational stores for production (Neo4j or Postgres, LanceDB or PGVector)
- authentication and persistent storage for a multi-user API
Cognee Cloud
Standard $0/month (100M tokens, then $0.10 per 1M); Premium $99/month plus tokens; Enterprise contact sales3
Only in this edition
- Slack, Notion, Linear and Google Drive integrations
- auto-ontology and Ontology Editor (Premium)
Cognee Enterprise (BYOC)
contact sales3
Only in this edition
- deployment in your own cloud (VPC)
- proprietary Cognee runtime and Postgres adapter
- bi-temporal memory, conflict resolution and provenance on every answer
- SSO (optional on the 12-month term)
You arrange
- your own cloud account
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Cognee does.
- GraphRAG A modular graph-based Retrieval-Augmented Generation (RAG) system
- Zep The enterprise context layer for reliable agents
- Mem0 The memory layer for AI agents
- Graphiti Build real-time knowledge graphs for AI agents
- Letta Build stateful agents with memory that can learn and improve over time
- Supermemory Memory and context layer for AI: memory, RAG, user profiles and connectors in one API
