topoteretes/cognee

cognee-server

Use when the user wants to run the cognee API server (and optional UI) on their own machine — starting it, checking it's healthy, connecting the SDK or other clients to it, and choosing the right auth posture.

  • SKILL.md 已保存
  • 英文来源资料
  • 安装与运行未实测
先判断是否解决你的问题

cognee-server 是什么?

Use when the user wants to run the cognee API server (and optional UI) on their own machine — starting it, checking it's healthy, connecting the SDK or other clients to it, and choosing the right auth posture.

以上为来源原文,中文用途说明尚待整理。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 cognee-server,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 cognee-server

请在 Codex 的当前工作环境中安装并检查 cognee-server 这个 Skill。

项目身份:topoteretes/cognee / cognee-server
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-server/SKILL.md
已定位的源文件:.agents/skills/cognee-server/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-23T04:29:48.865Z
中文使用说明
尚待整理,保留英文来源内容
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

.agents/skills/cognee-server/SKILL.md · 抓取时间 2026-11-23T04:29:48.865Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Use when the user wants to run the cognee API server (and optional UI) on their own machine — starting it, checking it's healthy, connecting the SDK or other clients to it, and choosing the right auth posture.

查看源文件章节 / Source sections
  • 原文:Start the cognee server locally
  • 原文:From an installed cognee (no Docker)
  • 原文:Auth posture
  • 原文:URL ingestion
  • 原文:Connecting clients to the running server
  • 原文:Graph visualization without the full UI
  • 故障排查 / Troubleshooting
原文:From an installed cognee (no Docker)

```bash cognee-cli -ui ``` launches the full local stack: FastAPI backend on **http://localhost:8000** and the UI on **http://localhost:3000**. Needs `LLM_API_KEY` in the environment or `.env`. The interactive API reference is at http://localhost:8000/docs, health at `/health`. For API-only serving via Docker instead, use the cognee-docker skill (the prebuilt `cognee/cognee:main` image or `docker compose up` from the repo).

原文:Auth posture

`ENABLE_BACKEND_ACCESS_CONTROL` decides everything: - `true` (default): multi-tenant — auth required on every API call, per user+dataset database isolation. - `false`: single-user local mode — no auth, shared local databases. Right choice for a personal dev server; never for anything exposed. `REQUIRE_AUTHENTICATION=false` is ignored while access control is on; to turn auth off you must set `ENABLE_BACKEND_ACCESS_CONTROL=false`. Behind a TLS-terminating proxy set `AUTH_TOKEN_COOKIE_SECURE=true` so the auth cookie gets the `Secure` attribute; leave it off for plain `http://localhost`, where a browser refuses to store a Secure cookie.

原文:URL ingestion

API requests cannot fetch URLs or clone remote repositories unless the server sets `ALLOW_HTTP_REQUESTS=true`. A blocked attempt raises an error naming that setting. With the variable unset or blank, SDK, CLI and MCP calls still allow fetching. Only `true`, `1`, `yes` or `on` enable it; any other value (`false`, or a misspelling) disables it on every surface. This setting does not disable LLM or embedding provider calls.

原文:Connecting clients to the running server

- **SDK / CLI against the server** (instead of embedded local mode): ```bash cognee-cli serve --url http://localhost:8000 # local instance cognee-cli serve --url https://... --api-key ck_... # cognee cloud instance cognee-cli serve # reconnect to the saved keyed instance cognee-cli serve --logout # disconnect ``` In Python: `await cognee.serve(url="http://localhost:8000")`. - **HTTP**: main routes live under `/api/v1/` — the memory API is `remember` (plus `remember/entry`), `recall`, `improve`, `forget`; `sessions` covers session memory; `datasets`, `users`, `visualize` handle the rest. The legacy `add`, `cognify`, `search`, and `delete` routes still exist and are what the memory routes call underneath (see `cognee/api/client.py` for the registered routers, or `GET /openapi.json` on a running server). Note there is **no `/api/v1/feedback` route** — `feedback` exists as a CLI command and in the SDK, but is not exposed over HTTP.

原文:Graph visualization without the full UI

```python from cognee.api.v1.visualize import visualization_server shutdown = visualization_server(port=8080) # synchronous; returns a shutdown callable ```

故障排查 / Troubleshooting

- Port 8000 already taken → stop the other service or remap (compose: `"8080:8000"`). - 401/403 on every call → you're in multi-tenant mode; either authenticate or set `ENABLE_BACKEND_ACCESS_CONTROL=false` and restart. - `recall`/`search` returns `[]` instead of erroring → permission-filtered result; check dataset access rights for the calling user.

文件 SHA256:9654469f635cde4b8536cd0e312e46fd71d03f92653890144c2f859191a27f58

仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。

SKILL.md原文description · 2026-11-23T04:29:48.865Z

Use when the user wants to run the cognee API server (and optional UI) on their own machine — starting it, checking it's healthy, connecting the SDK or other clients to it, and choosing the right auth posture.

查看历史简介来源

历史收录数据

来源仓库topoteretes/cognee
Skill源路径.agents/skills/cognee-server/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源