cognee logo

cognee

topoteretes/cognee

Cognee is the open-source AI memory platform for agents.

GraphCanon updated 1d · GitHub synced 1d · 26 views this month

30k stars2.9k forksLast push 1d Python Apache-2.0

Decision brief

When evaluating Cognee, consider its self-hosted persistence capability and the extensive support it offers through multiple programming languages (Python, Rust, TypeScript). It uses vector databases to provide efficient

Good fit when

  • - You are developing AI agents that require persistent long-term memory across different sessions.
  • - You prefer a self-hosted solution where data privacy is critical and you need full control over the knowledge graph engine.

Avoid when

  • - Your project does not require persistent memory storage, or your agents operate fully within short-lived sessions without the need for past context.
  • - You are aiming for minimal setup overhead and prefer a cloud-based solution that requires less maintenance on your infrastructure side.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 1d
Provenance
Not a fork · Organization account
As of 1d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install cognee
PyPI

How it fits your stack(7)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Provides persistent long-term memory to AI agents using a self-hosted knowledge graph engine.

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Aug 19, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Aug 19, 2026

CLI
CLI entrypoint

Source: pyproject.toml:[project.scripts] · Aug 19, 2026

Languages
python

Source: github.language+pyproject.toml · Aug 19, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Aug 19, 2026)

w.npmjs.com/package/@cognee/cognee-ts) package to add, cognify, and search from Node.js or the browser.
Source link
Python runtimePython

Source: README excerpt (regex_v1, Aug 19, 2026)

You can install Cognee with **pip**, **poetry**, **uv**, or your preferred Python package manager.
Source link

Tags

README

Step 1: Install Cognee

You can install Cognee with pip, poetry, uv, or your preferred Python package manager.

uv pip install cognee

Run with Docker

Prefer containers? Cognee publishes prebuilt images to Docker Hub on every push to main: cognee/cognee (the API server) and cognee/cognee-mcp (the MCP server).

Just want to try it? Follow the minimal docker-compose try-out — a single copy-pasteable compose file that runs the prebuilt image, no clone or build needed.


Option A — Docker Compose (build from source)

Clone the repo, create a .env with at least LLM_API_KEY, then:

cp .env.template .env   # then edit .env and set LLM_API_KEY

---

# Add the marketplace and install the plugin (one-time, user-scoped)
claude plugin marketplace add topoteretes/cognee-integrations
claude plugin install cognee-memory@cognee

---

### Getting Started with Rust

Use the [cognee-rs](https://github.com/topoteretes/cognee-rs) crate to add, cognify, and search from Rust.

```bash
cargo add cognee

See the cognee-rs repository for full setup and examples.


Getting Started with TypeScript

Use the @cognee/cognee-ts package to add, cognify, and search from Node.js or the browser.

npm install @cognee/cognee-ts

See the @cognee/cognee-ts package for full setup and examples.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.