[{"source":{"position":38,"lines":["https://github.com/topoteretes/cognee"]},"target":{"position":38,"lines":["<a href="https://github.com/topoteretes/cognee" target="_blank" rel="noopener">https://github.com/topoteretes/cognee"]},"type":"CHANGE"},{"source":{"position":42,"lines":["https://docs.cognee.ai/"]},"target":{"position":42,"lines":["<a href="https://docs.cognee.ai/" target="_blank" rel="noopener">https://docs.cognee.ai/"]},"type":"CHANGE"},{"source":{"position":273,"lines":["
与
Ollama 配合:官方文档有 local Ollama 指南(https://docs.cognee.ai/guides/local-ollama
),把 LLM_API_KEY 留空、改配 Ollama
地址,整个记忆层完全跑在本地,敏感文档不出内网。
与
Ollama 配合:官方文档有 local Ollama 指南(<a href="https://docs.cognee.ai/guides/local-ollama"
target="_blank" rel="noopener">https://docs.cognee.ai/guides/local-ollama
),把 LLM_API_KEY 留空、改配 Ollama
地址,整个记忆层完全跑在本地,敏感文档不出内网。
安装部署(实操步骤)
1. 前置准备
- 项目仓库:topoteretes/cognee(https://github.com/topoteretes/cognee)
- 需要本机具备 Git;按项目语言准备对应运行时(Python / Node.js / Go / Java 等)
- 建议先在本机或测试服务器上跑通,再部署到生产环境
- 遇到依赖版本问题时,以仓库 README 与 Releases 说明为准
2. 官方安装 / 启动命令(摘自项目 README,可直接复制执行)
uv pip install "cognee[gliner]"Alternatively, create a `.env` file using our [template](https://github.com/topoteretes/cognee/blob/main/.env.template).
Once a key is set, Cognee uses OpenAI for language models and embeddings, and processing and generated answers make provider calls. See [installation](https://docs.cognee.ai/getting-started/installation), [other providers](https://docs.cognee.ai/setup-configuration/llm-providers), or [local Ollama models](https://docs.cognee.ai/guides/local-ollama) for other setups.
### Explore the bundled demo
To explore a prebuilt graph without downloading extraction or embedding models:`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](docs/minimal-docker-compose.md)). 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`](.env.template) to `.env`, and configure your providers. Then run:3. 部署流程
- 克隆仓库:
git clone https://github.com/topoteretes/cognee - 进入目录后按上面的官方命令安装依赖
- 参考 README 的配置说明填写配置文件或环境变量
- 按官方说明启动服务,确认监听端口与访问地址
- 浏览器访问验证功能,确认无报错后再开放外网
4. 常见问题排查
- 依赖安装失败:先升级包管理器,再确认运行时版本符合 README 要求
- 启动报端口占用:修改配置中的端口或释放被占用端口
- 页面打不开:检查防火墙 / 安全组是否放行对应端口
- 功能异常:查看运行日志,对照 Issues 中同类问题处理