Cognee 是 AI Skill Hub 本期精选Agent工作流之一。在 GitHub 上收获超过 18.4k 颗 Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
Cognee 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Cognee 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install cognee
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install cognee
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/topoteretes/cognee
cd cognee
pip install -e .
# 验证安装
python -c "import cognee; print('安装成功')"
# 命令行使用
cognee --help
# 基本用法
cognee input_file -o output_file
# Python 代码中调用
import cognee
# 示例
result = cognee.process("input")
print(result)
# cognee 配置文件示例(config.yml) app: name: "cognee" debug: false log_level: "INFO" # 运行时指定配置文件 cognee --config config.yml # 或通过环境变量配置 export COGNEE_API_KEY="your-key" export COGNEE_OUTPUT_DIR="./output"
<br />
Cognee - The Open-Source AI Memory Platform for Agents
<p align="center"> <a href="https://www.youtube.com/watch?v=8hmqS2Y5RVQ&t=13s">Demo</a> . <a href="https://docs.cognee.ai/">Docs</a> . <a href="https://cognee.ai">Learn More</a> · <a href="https://discord.gg/NQPKmU5CCg">Join Discord</a> · <a href="https://www.reddit.com/r/AIMemory/">Join r/AIMemory</a> . <a href="https://github.com/topoteretes/cognee-community">Community Plugins & Add-ons</a> </p>
<a href="https://github.com/sponsors/topoteretes"><img src="https://img.shields.io/badge/Sponsor-❤️-ff69b4.svg" alt="Sponsor"></a>
<p> <a href="https://trendshift.io/repositories/13955" target="_blank" style="display:inline-block;"> <img src="https://trendshift.io/api/badge/repositories/13955" alt="topoteretes%2Fcognee | Trendshift" width="250" height="55" /> </a> </p>
Cognee is the open-source AI memory platform that gives AI agents persistent long-term memory across sessions. Ingest data in any format, build a self-hosted knowledge graph, and let every agent recall, connect, and act with full context
<p align="center"> 🌐 This README is also available in: : <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=de">Deutsch</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=es">Español</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=fr">Français</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=ja">日本語</a> | <a href="README_ko.md">한국어</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=pt">Português</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=ru">Русский</a> | <a href="https://www.readme-i18n.com/topoteretes/cognee?lang=zh">中文</a> </p>
📄 Read the research paper: Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning — Markovic et al., 2025
Cognee is an open-source AI memory platform for AI Agents. Ingest data in any format, and Cognee continuously builds a self-hosted knowledge graph that gives your agents persistent long-term memory across sessions. Cognee combines vector embeddings, graph reasoning, and cognitive-science-grounded ontology generation to make documents both searchable by meaning and connected by relationships that evolve as your knowledge does.
:star: Help us reach more developers and grow the cognee community. Star this repo!
:books: _Check our detailed documentation for setup and configuration.
:crab: _Available as a plugin for your OpenClaw — cognee-openclaw
✴️ _Available as a plugin for your Claude Code — claude-code-plugin
<p align="center"> <img src="assets/cognee_products.png" alt="Cognee Products" width="80%" /> </p>
You can install Cognee with pip, poetry, uv, or your preferred Python package manager.
uv pip install cognee
pip install cognee
Use Cognee Cloud for a fully managed experience, or self-host with one of the 1-click deployment configurations below.
| Platform | Best For | Command |
|---|---|---|
| **Cognee Cloud** | Managed service, no infrastructure to maintain | [Sign up](https://www.cognee.ai) or await cognee.serve() |
| **Modal** | Serverless, auto-scaling, GPU workloads | bash distributed/deploy/modal-deploy.sh |
| **Railway** | Simplest PaaS, native Postgres | railway init && railway up |
| **Fly.io** | Edge deployment, persistent volumes | bash distributed/deploy/fly-deploy.sh |
| **Render** | Simple PaaS with managed Postgres | Deploy to Render button |
| **Daytona** | Cloud sandboxes (SDK or CLI) | See distributed/deploy/daytona_sandbox.py |
See the distributed/ folder for deploy scripts, worker configurations, and additional details.
To learn more, check out this short, end-to-end Colab walkthrough of Cognee's core features.
Let’s try Cognee in just a few lines of code.
Browse more examples in the examples/ folder — demos, guides, custom pipelines, and database configurations.
Use Case 1 — Customer Support Agent
```python Goal: Resolve customer issues using their personal data across finance, support, and product history.
User: "My invoice looks wrong and the issue is still not resolved."
Cognee tracks: past interactions, failed actions, resolved cases, product history
import os
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY" Alternatively, create a .env file using our template.
To integrate other LLM providers, see our LLM Provider Documentation.
export LLM_API_KEY="your-openai-key"
Cognee's API gives you four operations — remember, recall, forget, and improve:
import cognee
import asyncio
async def main():
# Store permanently in the knowledge graph (runs add + cognify + improve)
await cognee.remember("Cognee turns documents into AI memory.")
# Store in session memory (fast cache, syncs to graph in background)
await cognee.remember("User prefers detailed explanations.", session_id="chat_1")
# Query with auto-routing (picks best search strategy automatically)
results = await cognee.recall("What does Cognee do?")
for result in results:
print(result)
# Query session memory first, fall through to graph if needed
results = await cognee.recall("What does the user prefer?", session_id="chat_1")
for result in results:
print(result)
# Delete when done
await cognee.forget(dataset="main_dataset")
if __name__ == '__main__':
asyncio.run(main())
git clone https://github.com/topoteretes/cognee-integrations.git
高质量的开源AI工作流平台,具有广泛的应用前景
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,Cognee 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | cognee |
| Topics | aiagent-memorypython |
| GitHub | https://github.com/topoteretes/cognee |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-06-21 · 更新时间:2026-06-21 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端