Skip to main content

Build

Cognee Server

CogneeOfficialCertified

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.

  • New
  • v1.0.3
  • Reviewed Aug 18
  • No reviews yet

Capabilities

  • From an installed cognee (no Docker)

    For API-only serving via Docker instead, use the cognee-docker skill…

  • Auth posture

    REQUIRE_AUTHENTICATION=false is ignored while access control is on; to…

  • URL ingestion

    API requests cannot fetch URLs or clone remote repositories unless the…

  • Connecting clients to the running server

    Note there is no /api/v1/feedback route — feedback exists as a CLI

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.3

Start the cognee server locally

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.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from Cognee

View source →
self-hosted-companionChat with a companion that knows your notes folder (a journal, an Obsidian vault, any .md or .txt files) and every earlier chat, using cognee memory with local databases. Use when someone wants to ask questions about their own notes, or to…0 installsgoogle-workspace-memoryRemember a user's Google Calendar, Gmail and Drive in one cognee memory and answer questions across them, by default preparing their client meetings of the coming week (which orders are late or at risk, why, and what to say). Use when…0 installscompany-brain-follow-up-agentTurn your latest Granola call into next steps (owner, team, due date, and the Linear issue that already tracks each one) and post them to Slack, using cognee memory of your calls, Linear issues and Gmail inbox. Use when someone asks for…0 installsdocstring-criticReview a docstring-author patch in the Cognee pilot. Independently verify truthfulness and promotional tone, preserve supported positive framing, and write the claim ledger. Pass 2; corrects claims without expanding coverage.0 installscognee-permissionsUse when working with cognee's users, permissions, and multi-tenancy — creating users, tenants and roles, sharing datasets (read/write/delete/share grants), acting as a specific user in the SDK or authenticating over HTTP (login, API…0 installsdocstring-authorWrite or improve Python docstrings on the ten files in pilot_files.md, making supported Cognee benefits and connections between capabilities explicit. Pass 1 of the docstring pilot; a separate critic verifies the patch and writes the claim…0 installs

Frequently asked questions about cognee-server

What does the cognee-server skill do?

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the cognee-server skill?

Run `npx @skills-hub-ai/cli install cognee-server` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cognee-server/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does cognee-server work with?

cognee-server runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the cognee-server skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use cognee-server after installing it?

In Claude Code, type `/cognee-server` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the cognee-server skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/cognee-server)](https://skills-hub.ai/skills/cognee-server)
HTML
<a href="https://skills-hub.ai/skills/cognee-server"><img src="https://skills-hub.ai/api/badges/skill/cognee-server" alt="Install on Skills Hub"></a>

More options in the badge docs.