Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证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.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Cognee - The Open-Source AI Memory Platform for Agents
Demo
.
Docs
.
Learn More
·
Join Discord
·
Join r/AIMemory
.
Community Plugins & Add-ons
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
🌐 This README is also available in:
📄 Read the research paper: Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning — Markovic et al., 2025查看完整 README ↗📄 Read the research paper: Optimizing the Interface Between Knowledge Graphs and LLMs for Complex Reasoning — Markovic et al., 2025
| I want to… | Start here |
|---|---|
| See a memory graph without an API key | Bundled demo |
| Build with text, code, and session memory | Python quickstart |
| Give an existing agent memory | Plugins and MCP |
| Run Cognee on my infrastructure | Deployment options |
| Use a managed service | Cognee Cloud |
Requires Python 3.10–3.14.
You can install Cognee with pip, uv, or your preferred Python package manager.
uv pip install cognee
cognee-cli demo
import os
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY"
Alternatively, create a .env file using our template.
The default uses OpenAI for language models and embeddings. Processing and generated answers make provider calls. See installation, other providers, or local Ollama models for other setups.
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())
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.
| Operation | What it does | Learn more |
|---|---|---|
remember | Store content or code in permanent memory, or in a session when a session ID is supplied. | Store memory |
recall | Retrieve context and answers, using automatic routing or a chosen search strategy. | Query memory |
improve | Enrich memory, apply feedback, and bridge session knowledge into the graph. | Improve memory |
forget | Remove a specific item or dataset. | Delete memory |
Explore the architecture and session lifecycle.
Install the Claude Code plugin:
claude plugin marketplace add topoteretes/cognee-integrations
claude plugin install cognee-memory@cognee
or Codex plugin
Make sure to enable hooks:
# ~/.codex/config.toml
[features]
hooks = true
codex plugin marketplace add topoteretes/cognee-integrations --ref main
codex plugin add cognee@cognee
Follow the plugin setup guide to configure local or remote memory.
| Interface | Start here |
|---|---|
| Claude Code memory plugin | Install and configure the plugin |
| OpenClaw memory plugin | Install @cognee/cognee-openclaw |
| Cursor, Cline, and other MCP clients | Cognee MCP guide and server README |
| Python applications | Python API reference |
| TypeScript applications | TypeScript SDK |
| Rust applications | Cognee-RS |
| Applications using HTTP | REST 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.
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.
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 frontend defaults to host port 3001 so port 3000 remains available to
other ArcFunction services. Set COGNEE_FRONTEND_PORT to override the host port;
the frontend continues to listen on port 3000 inside its container.
ArcFunction's fork keeps persistent Compose state outside the source checkout.
Set ARCFUNCTION_COGNEE_HOME to the managed absolute host path (normally
$HOME/.arc-function/arc-cognee); both backend services mount it at
/var/lib/cognee and use its system/, data/, cache/, and logs/
directories. When the variable is unset, Compose uses the
arc_cognee_state named volume instead of writing into the checkout. The
source bind mount remains code-only; do not store active databases or vector
indexes under ./cognee/.cognee_system.
The managed deployment reconciles verified legacy absolute database and source
document paths at startup, creating a relational backup before any update. It
also places TMPDIR under the managed cache so LanceDB spill files do not fill
the container overlay. See
docs/cognee/modules/storage/managed_paths.md.
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. In cognee 1.0 you can run the entire memory layer on a single Postgres instance.
⚠️ Warning: Using Postgres as a graph store is currently a released as a demo feature. The production ready feature is available as a licenced product. Use it to demo keeping relational metadata, PGVector, and graph working together
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 context | Reported score (0–1) | Scope |
|---|---|---|
| 100K tokens | 0.79 | Fixed hybrid retrieval; four evaluation rounds over 20 questions from one held-out conversation. |
| 10M tokens | 0.67 | Exploratory 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).
We welcome contributions from the community! Your input helps make Cognee better for everyone. See CONTRIBUTING.md to get started.
We're committed to fostering an inclusive and respectful community. Read our Code of Conduct for guidelines.
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},
}