Use when the user wants to run cognee with Docker or docker compose — trying it out from the prebuilt image, starting the API server in a container, or bringing up the full stack (UI, MCP, Postgres, Neo4j) with compose profiles.
Capabilities
Fastest path: prebuilt image, one file
For a local try-out, do NOT clone or build anything
Full stack from the repo
The repository's docker-compose.yml builds from source and adds opt-in
Gotchas
Getting started
Full instructionsExample command
Fastest path: prebuilt image, one file
docker compose upInstructions: SKILL.mdv1.0.1
Start cognee from the Docker image
Fastest path: prebuilt image, one file
For a local try-out, do NOT clone or build anything. Follow
docs/minimal-docker-compose.md: save this as docker-compose.yml in an
empty directory:
services:
cognee:
image: cognee/cognee:main
ports:
- "8000:8000"
environment:
LLM_API_KEY: ${LLM_API_KEY:?set LLM_API_KEY to your OpenAI API key}
# Single-user try-out: no auth, shared local databases.
ENABLE_BACKEND_ACCESS_CONTROL: "false"
Then:
export LLM_API_KEY="sk-..." # OpenAI key (default LLM + embedding provider)
docker compose up
curl http://localhost:8000/health
Interactive API reference: http://localhost:8000/docs. First requests:
echo "Cognee turns documents into AI memory." > note.txt
# remember = ingest + build the graph in one call (multipart form)
curl -X POST http://localhost:8000/api/v1/remember -F "[email protected]" -F "datasetName=main_dataset"
# recall = query it (JSON)
curl -X POST http://localhost:8000/api/v1/recall -H "Content-Type: application/json" \
-d '{"query": "What does Cognee do?", "datasets": ["main_dataset"]}'
/api/v1/recall takes the question as query. Omit search_type (or pass
null) and the query is auto-routed by the same rule-based router the SDK
recall() uses, with HYBRID_COMPLETION as the fallback; pass a value such as
"search_type": "GRAPH_COMPLETION" to pin a strategy. The rule table is in
docs/recall-vs-search.md.
Request DTOs accept both snake_case and camelCase for every field
(alias_generator=to_camel + populate_by_name in cognee/api/DTO.py), so
search_type and searchType are equally valid.
The legacy /api/v1/add + /api/v1/cognify + /api/v1/search endpoints still
exist and are what remember/recall call underneath; use them only when you
need a single stage on its own. /api/v1/improve and /api/v1/forget complete
the memory API.
Data lives inside the container by default. To persist it, set
DATA_ROOT_DIRECTORY=/cognee-data/data and
SYSTEM_ROOT_DIRECTORY=/cognee-data/system and mount a named volume at
/cognee-data (full example in docs/minimal-docker-compose.md).
Full stack from the repo
The repository's docker-compose.yml builds from source and adds opt-in
profiles. From the repo root (needs a .env with at least LLM_API_KEY;
copy .env.template):
docker compose up # API server only, port 8000
docker compose --profile ui up # + frontend on port 3000
docker compose --profile mcp up # + MCP server on port 8001
docker compose --profile postgres --profile neo4j up # + databases
Postgres profile: pgvector/pg17, user/password/db cognee/cognee/cognee_db
on 5432. Neo4j profile: neo4j/pleaseletmein on 7474/7687. When cognee runs
in a container and the database on the host, use DB_HOST=host.docker.internal.
Gotchas
- With
ENABLE_BACKEND_ACCESS_CONTROLunset (defaults to true), every API
call requires authentication — the single-user try-out sets it tofalse. - The image defaults to OpenAI for both LLM and embeddings; configuring only
one of them leaves the other on OpenAI, so keep a valid OpenAI key or
configure both (see the cognee-integrations skill).
Explore more skills
Browse all- Cognee IngestionUse when putting data into cognee memory with remember() — choosing inputs (text, files, folders, URLs, repos,…
- Cognee ServerUse when the user wants to run the cognee API server (and optional UI) on their own machine — starting it, checking…
- Cognee PerformanceUse when cognee is slow, expensive, or hitting rate limits — speeding up or throttling ingestion (remember/cognify…
- Cognee Custom Graph ModelsUse when defining the shape of cognee's knowledge graph with graph_model= — writing DataPoint node classes, choosing…
- Cognee Improve SessionsUse when working with cognee's session memory or improve() — storing conversation turns, agent traces and feedback with…
- Cognee Custom PipelinesUse when building your own cognee processing — writing custom tasks, chaining them into a pipeline with…
Security
Reviews (0)
More from Cognee
View source →Frequently asked questions about cognee-docker
What does the cognee-docker skill do?
Use when the user wants to run cognee with Docker or docker compose — trying it out from the prebuilt image, starting the API server in a container, or bringing up the full stack (UI, MCP, Postgres, Neo4j) with compose profiles. 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-docker skill?
Run `npx @skills-hub-ai/cli install cognee-docker` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cognee-docker/ 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-docker work with?
cognee-docker 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-docker 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-docker after installing it?
In Claude Code, type `/cognee-docker` (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-docker 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.
[](https://skills-hub.ai/skills/cognee-docker)<a href="https://skills-hub.ai/skills/cognee-docker"><img src="https://skills-hub.ai/api/badges/skill/cognee-docker" alt="Install on Skills Hub"></a>More options in the badge docs.