cognee
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
What is cognee?
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
Overview of cognee
What it is
Cognee is a free open-source AI memory platform that gives AI agents persistent long-term memory across sessions. It turns documents, code, and conversations into a self-hosted knowledge graph that agents can search and reuse. Cognee runs locally for free with no API key required, relying on free small models that use the CPU.
Key features
- Persistent long-term memory for AI agents across sessions - Builds knowledge graphs from documents, code, and conversations - Runs locally for free with small models (no API key required)
- Supports four core operations: remember, recall, improve, forget - Provides plugins for Claude Code, Codex, OpenClaw, and MCP clients - Offers Python, TypeScript, Rust SDKs and a REST API - Includes a CLI and a UI for local inspection
Use cases
- Build a Company Brain: bring documentation, conversations, tickets, code, and agent work into shared memory - Give agents memory across runs: retain project context, past decisions, fixes, and learned rules - Ground agents in your domain: structure memory around custom data models and ontologies
Getting started
Requires Python 3.10–3.14. 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]' After installation, you can build and query memory using the CLI: bash cognee-cli remember 'Marie Curie was born in Warsaw.' -d local_quickstart cognee-cli recall 'Where was Marie Curie born?' -d local_quickstart For a full quickstart with Python code, see the repository README.
License and pricing
Licensed under Apache-2.0. Open source and free to use.
Based on the project's public README and repository metadata.