Install
npm (recommended)
Section titled “npm (recommended)”npm install -g cogni-codecogni-code installAuto-detects Claude Code, Codex CLI, and OpenCode. Initializes graph memory at ~/.graph-memory/ if needed. For a custom location:
cogni-code install --graph-root /path/to/memoryWith the background pipeline (Docker)
Section titled “With the background pipeline (Docker)”npm install -g cogni-codecogni-code install --dockerSets up the Docker daemon that runs the scribe/librarian/dreamer pipeline automatically. Requires Docker Desktop or Podman. Auto-detects the worker provider (codex, claude, or opencode) or specify with --worker codex.
Updates are automatic — npm update -g cogni-code updates all hooks instantly (they call the cogni-code CLI, not absolute file paths).
From source (git clone)
Section titled “From source (git clone)”git clone https://github.com/ConnorCallahan01/cogni-code.gitcd cogni-code/graph-memory-pluginnpm install && npm run build
./bin/install.sh # Claude Code./bin/install-codex.sh # Codex CLI./bin/install-opencode.sh # OpenCodeFirst run
Section titled “First run”Then start a session and run:
/memory-onboardThe onboard wizard walks you through runtime mode and seeds your first memory nodes. If you installed via npm, the graph is already initialized — onboarding is optional.