cognee

Из публичных источников

Cognee — open-source платформа памяти для ИИ-агентов. Дайте вашим ИИ-агентам постоянную долговременную память с помощью небольших моделей бесплатно

Машинный перевод · Показать оригинал

Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free

AI-инструментКатегория: AI-агентыOpen sourceданные проверены 16 окт. 2026 г.

Обзор

  • agent-memory
  • agent-skills
  • ai
  • ai-agents
  • ai-memory
  • cognitive-architecture
  • cognitive-memory
  • context-engineering
  • contributions-welcome
  • good-first-issue
  • good-first-pr
  • graph-database

Установка

Команды только показываются, маркетплейс их не выполняет. Сверяйтесь с официальной документацией.
  • Официальный сайтИз публичных источниковиз метаданных каталога
    www.cognee.ai/ ↗
  • Файлы официального релизаИз публичных источниковиз последнего официального релиза
    github.com/topoteretes/cognee/releases/tag/v1.6.6 ↗
  • Реестр пакетов языкаpythonИз публичных источниковиз манифеста пакета — публикация в реестре не проверена
    pipx install cognee

    Не проверено: перед установкой убедитесь, что пакет в реестре принадлежит этому проекту.

    pypi.org/project/cognee/ ↗
  • Сборка из исходниковИз публичных источниковиз метаданных каталога

    Сборка из исходников: проверенного рецепта сборки нет — следуйте инструкциям репозитория.

    github.com/topoteretes/cognee ↗

Совместимость

«Неизвестно» значит, что доказательств не найдено, а не что продукт несовместим.
ПлатформаСтатусАрхитектураДоказательствоУверенность
WindowsНеизвестно———
macOSНеизвестно———
LinuxНеизвестно———
Web browserНеизвестно———
Server / self-hostedНеизвестно———
Container (OCI)Неизвестно———
PythonСовместимо—официальная сборка в релизе v1.6.6: cognee-1.6.6-py3-none-any.whl0.60

Релизы

проверено 30 окт. 2026 г.
v1.6.6Последний29 окт. 2026 г.Официальный источник ↗

Файлы версии 1.6.6

Маркетплейс не хранит эти файлы: загрузка идёт из официального источника. Мы их не сканировали.
ФайлПлатформаРазмерSHA-256Скачать из официального источника
cognee-1.6.6-py3-none-any.whlpython · wheel22 MBbee551bd81c8…Официальный источник ↗
cognee-1.6.6.tar.gzНеизвестно39,7 MB8d0a749f7cbb…Официальный источник ↗
cognee-1.6.6.intoto.jsonlподпись1,8 KB05a42fe6f282…Официальный источник ↗
cognee-1.6.6.sigstore.jsonподпись11 KB6e4f59b31f65…Официальный источник ↗

История релизов

Профиль качества

алгоритм quality-v1.0 · оценено 16 окт. 2026 г.
Оценка качества95
Оценка риска0
Уверенность 1.00
Оценка качества и оценка риска — разные показатели. Высокое качество не гарантирует безопасность.

Составляющие оценки

Поддержка · 2020
last activity 0 days ago
Документация · 1515
README 18181 chars, description present
Готовность к использованию · 1515
install instructions: yes; releases: yes
Метаданные · 1010
4/4 of description, homepage, license, topics
Релизы · 1010
10 release(s), latest 2 days ago
Точность категории · 105
classifier confidence 0.5
Популярность · 1010
32358 stars (log-dampened, 10k = max)
Ясность лицензии · 55
SPDX Apache-2.0
Сообщество · 55
issues enabled, 3376 forks

Лицензия

Apache-2.0
Лицензия известнапо данным хостинга репозитория

Это статус политики каталога, а не юридическое заключение.

Источники

github.com/topoteretes/cogneeОсновной★ 32 358 звёздактивность 15 окт. 2026 г.Основной репозиторий · Уверенность 1.00

Отзывы

Войдите, чтобы написать отзыв

Отзывов пока нет.

Альтернативы

PageIndexПохожий
📑 PageIndex: Индекс документов для RAG без векторов и на основе рассужденийMIT · AI-агенты
haystackПохожий
Фреймворк оркестрации ИИ с открытым исходным кодом для создания готовых к промышленной эксплуатации приложений на основе LLM с контекстно-ориентированным проектированием. Проектируйте модульные конвейеры и рабочие процессы агентов с явным контролем над поиском, маршрутизацией, памятью и генерацией. Создан для масштабируемых агентов, RAG, мультимодальных приложений, семантического поиска иApache-2.0 · AI-агенты
cocoindexПохожий
Инкрементальный движок для агентов с длинным горизонтом планирования 🌟 Поставьте звезду, если вам нравится!Apache-2.0 · AI-агенты
langchainПохожий
Платформа для инженерии агентов.MIT · AI-агенты
ai-engineering-from-scratchПохожий
Изучайте AI-инженерию! Изучайте её. Создавайте. Выпускайте в мир для других.MIT · AI-агенты
mem0Похожий
Слой памяти для ИИ-агентов — готовая к подключению инфраструктура памяти для ИИ-агентов и приложений. Контекст сохраняется. Создано для промышленной эксплуатации.Apache-2.0 · AI-агенты

README

Из topoteretes/cognee · лицензия Apache-2.0 · загружено 30 окт. 2026 г.

📄 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 LLMLocal Python quickstart
Explore a prebuilt graph without downloading modelsBundled demo
Generate answers with a local or hosted LLMOptional LLM setup
Give an existing agent memoryPlugins and MCP
Run Cognee on my infrastructureDeployment options
Use a managed serviceCognee 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:

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:

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(main())

The same workflow is available from the CLI:

cognee-cli remember "Marie Curie was born in Warsaw." -d local_quickstart
cognee-cli recall "Where was Marie Curie born?" -d local_quickstart

Text ingestion, retrieval, and session storage work without an LLM. LLM-dependent improvement stages skip automatically.

Generated answers and media processing that requires a vision or transcription model need additional LLM configuration.

The bundled GLiNER extractor is a demo of Cognee's small-model pipeline. For a production-ready version with higher accuracy and broader label coverage, reach out to us.

Optional: Configure the LLM

3. Add an LLM to get generated answers instead of retrieved passages:

import os

os.environ["LLM_API_KEY"] = "YOUR_OPENAI_API_KEY"

Alternatively, create a .env file using our template.

Once a key is set, Cognee uses OpenAI for language models and embeddings, and processing and generated answers make provider calls. See installation, other providers, or local Ollama models for other setups.

Explore the bundled demo

To explore a prebuilt graph without downloading extraction or embedding models:

cognee-cli demo

This command works with the base pip install cognee package. It loads bundled sample data and runs keyword search without an API key. Use the local quickstart above to build a graph from your own text.

How Cognee works

Cognee builds connected memory from different sources. Text becomes entities, relationships, and searchable chunks; code becomes a graph of symbols and dependencies. Session distillation curates accepted lessons into permanent memory.

At query time, retrieval selects relevant graph, vector, or code context. Your application can inspect the retrieved evidence and use it to answer a question or continue an agent task.

OperationWhat it doesLearn more
rememberStore content or code in permanent memory, or in a session when a session ID is supplied.Store memory
recallRetrieve context and answers, using automatic routing or a chosen search strategy.Query memory
improveEnrich memory, apply feedback, and bridge session knowledge into the graph.Improve memory
forgetRemove a specific item or dataset.Delete memory

Explore the architecture and session lifecycle.

Connect your agent

Install the Claude Code plugin:

claude plugin marketplace add topoteretes/cognee-integrations
claude plugin install cognee-memory@cognee

Or install the Codex plugin. Enable hooks first, either with the CLI:

codex features enable hooks

or in ~/.codex/config.toml:

[features]
hooks = true

Then add the marketplace and the plugin:

codex plugin marketplace add topoteretes/cognee-integrations --ref main
codex plugin add cognee@cognee

Follow the setup guide for Claude Code or Codex to configure local or remote memory.

InterfaceStart here
Claude Code memory pluginInstall and configure the plugin
Codex memory pluginInstall and configure the plugin
OpenClaw memory pluginInstall @cognee/cognee-openclaw
Cursor, Cline, and other MCP clientsCognee MCP guide and server README
Python applicationsPython API reference
TypeScript applicationsTypeScript SDK
Rust applicationsCognee-RS
Applications using HTTPREST API reference

Browse the integrations repository for agent frameworks, plugins, and source connectors. Each guide describes its setup and memory capture behavior.

To inspect a local installation in the UI:

cognee-cli -ui

The UI launcher requires Node.js/npm; Docker is needed for its MCP service. See local UI setup.

Explore examples

Deploy Cognee

For a local API demo using a prebuilt image, follow the minimal Docker Compose guide. It includes a persistent-volume configuration and explains the single-user demo settings. Or run the image directly:

docker run --rm -it -p 8000:8000 \
  -e LLM_API_KEY="sk-..." \
  -e ENABLE_BACKEND_ACCESS_CONTROL=false \
  -v cognee_storage:/cognee-storage \
  cognee/cognee:main

ENABLE_BACKEND_ACCESS_CONTROL=false is the single-user/local posture — without it the API defaults to multi-tenant mode and every /api/v1 call requires an authenticated user. To keep authentication on instead, set DEFAULT_USER_PASSWORD to make the default account loginable (see the compose guide). Note that --rm discards container-local data on exit; the -v cognee_storage:/cognee-storage named volume keeps your memory across runs.

To run the API, UI, and MCP server from a source checkout, clone this repository, enter its directory, copy .env.template to .env, and configure your providers. Then run:

docker compose --profile ui --profile mcp up

The default ports are API 8000, UI 3000, and MCP 8001. For deployment beyond a local demo, configure authentication, persistent storage, and compatible backends using the permissions guide and deployment templates. Cognee Cloud provides the managed option.

The cognee/cognee image ships with the GLiNER runtime baked in, so text ingestion and retrieval work in Docker without an LLM key; the local extraction and embedding models download on first use. Set LLM_API_KEY (as above) when you want generated answers.

Run the Whole Memory Layer on Postgres

Graph memory traditionally means operating a stack — a graph database for relationships, a vector database for embeddings, Redis for sessions, and a relational database for metadata — all deployed, secured, and paid for before an agent remembers anything. Since cognee 1.0 you can run the entire memory layer on a single Postgres instance.

⚠️ Warning: Using Postgres as a graph store is currently released as a demo feature. The production-ready version is available as a licensed product. Use the demo to keep relational metadata, PGVector, and graph state working together in one Postgres service.

Benchmarks and research

The BEAM evaluation measures conversational memory using synthetic long-context conversations and an LLM judge. The reported runs use Cognee's memory components with benchmark-specific data formatting, prompts, and retrieval configuration.

BEAM contextReported score (0–1)Scope
100K tokens0.79Fixed hybrid retrieval; four evaluation rounds over 20 questions from one held-out conversation.
10M tokens0.67Exploratory result; question-type routing selected and scored on the same question set, averaged over five rounds.

The two settings use different conversations, ingestion models, and retrieval-selection procedures. Read the methodology, models, limitations, and reproduction instructions before comparing these scores with other systems. The report also documents the remaining reproduction gap for the distributed 10M ingestion.

For the research behind Cognee's graph/LLM interface, see Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning (Markovic et al., 2025).

Latest News

[Watch Demo]

  • v1.6.1 — Google Sync & Visualization (September 24, 2026): Google Drive and Gmail OAuth connectors bundled in the SDK, /visualize/json streamed in chunks for large graphs, and the GLiNER installer moved off the event loop with CPU torch installed on first use.
  • Document external_metadata is stamped on every chunk and surfaced in hybrid retrieval. Breaking: dlt is now a core dependency — make sure it is installed if you manage dependencies by hand.
  • v1.6.0 — Keyless workflows & pipeline reliability (September 18, 2026): build and search text memory with local models and no cloud LLM key; LLM-dependent improvement stages skip when no LLM is configured, and pipeline recovery preserves completed documents after crashes.

Community & Support

Contributing

We welcome contributions from the community! Your input helps make Cognee better for everyone. See CONTRIBUTING.md to get started.

Code of Conduct

We're committed to fostering an inclusive and respectful community. Read our Code of Conduct for guidelines.

Research & Citation

We recently published a research paper on optimizing knowledge graphs for LLM reasoning:

@misc{markovic2025optimizinginterfaceknowledgegraphs,
      title={Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning},
      author={Vasilije Markovic and Lazar Obradovic and Laszlo Hajdu and Jovan Pavlovic},
      year={2025},
      eprint={2505.24478},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2505.24478},
}
Открыть репозиторий ↗