cognee
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Cognee is an open-source AI memory platform available as a Claude Code plugin that gives AI agents persistent long-term memory across sessions. It ingests data in any format and builds a self-hosted knowledge graph that combines vector embeddings, graph reasoning, and cognitive-science-grounded ontology generation. The plugin captures prompts, tool traces, and assistant responses into session memory, injects relevant context on every prompt, and syncs session memory into the permanent knowledge graph at session end. Developers can run it locally or connect to Cognee Cloud for managed hosting.
Key Features
Use Cases
- 01Customer support agents that resolve issues using unified personal data across finance, support, and product history
- 02Expert knowledge distillation for SQL copilots that help junior analysts reuse expert-level queries and patterns
- 03Building company knowledge bases that unify data from various sources for domain-specific AI agents
- 04Creating learning agents that improve from feedback and maintain context across sessions
- 05Multi-tenant agent deployments with isolated memory per user and dataset
- 06Long-context conversation tracking that maintains state across extended interactions
Related Plugins
View moreandrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
claude-mem
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
rtk
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
cognee — FAQ
What is the Cognee Claude Code plugin?+
The Cognee memory plugin gives Claude Code persistent memory across sessions by capturing prompts, tool traces, and responses into session memory, injecting relevant context on every prompt, and syncing to a permanent knowledge graph. It turns Claude Code into a learning agent that remembers past interactions and improves over time.
How do I install the Cognee plugin for Claude Code?+
Install from the Claude Code marketplace by running 'claude plugin marketplace add topoteretes/cognee-integrations' then 'claude plugin install cognee-memory@cognee' before launching Claude. Set LLM_API_KEY for local mode or COGNEE_BASE_URL and COGNEE_API_KEY for cloud mode.
What API keys are required for the Cognee plugin?+
For local mode, only LLM_API_KEY (OpenAI API key) is required; the Cognee API key is auto-generated. For Cognee Cloud or remote servers, you need both COGNEE_BASE_URL and COGNEE_API_KEY in addition to your LLM provider key.
Which AI clients work with Cognee?+
Cognee works with Claude Code as a plugin, and can integrate with any AI agent via its Python SDK, REST API, TypeScript client, or Rust client. It's designed as infrastructure for AI agents rather than a client-specific tool.
Is Cognee free to use?+
Yes, Cognee is open-source under a permissive license for self-hosted deployments. A managed Cognee Cloud option is also available for developers who prefer not to maintain infrastructure.
What are the prerequisites for running Cognee locally?+
You need Python 3.10 to 3.14 for the local API server. For Docker deployments, you need Docker Desktop, Colima, or any OCI-compatible runtime with a working docker CLI. An LLM API key (OpenAI or another supported provider) is required for all modes.
How do I install cognee?+
Open the source repository on GitHub and follow its README. cognee is a plugin — MCP Agents Market links you directly to the official repo.
Is cognee free?+
cognee is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.