Skip to content

Quickstart

Get from zero to a running stack in one wizard run. Choose your memory provider in the wizard (Hindsight by default; mem0 or Cognee if you prefer) — same CLI either way. Cloning the repo is optional; npx personal-memory is the usual path.

Requirement Why
Docker + Compose v2 Runs the stack; your user must run docker without sudo
Node.js ≥ 20.12 CLI and setup wizard
LLM for Hindsight (default provider) lemond, Ollama, or OpenAI-compatible — wizard wires LiteLLM
git, curl Wizard preflight

Default stack is Hindsight. Other providers: wizard or npx personal-memory providers (provider status).

From npm (recommended):

Terminal window
npx personal-memory

From a git checkout (repo directory is the stack root):

Terminal window
git clone https://github.com/bcmyguest/personal-memory.git
cd personal-memory
npm install
npx . setup

The wizard asks for a memory provider, provider settings, what to index, then starts Docker and runs a smoke test.

Useful variants:

Terminal window
npx personal-memory setup --dry-run # plan only, no writes
npx personal-memory configure --yes # defaults + start, no prompts

Wizard dry-run (what first setup plans — no writes):

Setup dry-run: npx personal-memory setup –dry-run

Terminal window
npx personal-memory doctor
curl -fsS http://127.0.0.1:8888/health # Hindsight default; see wizard output for other providers

Session memory: npx personal-memory install-coding-agent --yes — unified MCP plus session hooks for Claude Code, Codex, OpenCode, Cursor CLI (any active provider). Optional --hindsight-plugin adds the upstream Hindsight plugin. Not the same as install-mcp alone.

install-mcp merges the personal-memory unified MCP (memory_add, memory_search, memory_recall, memory_reflect, memory_consolidate, memory_forget on whichever provider you picked) and, when NotebookLM sync is on, the NotebookLM MCP:

Terminal window
npx personal-memory install-mcp --yes
npx personal-memory install-mcp --yes --notebooklm # force NotebookLM entry

Session hooks use the in-repo shim by default; add --hindsight-plugin if you also want the upstream Hindsight plugin. Optional native mem0/Cognee MCP: install-mcp --provider-only. See Architecture.

Restart Cursor Agent after MCP changes.

Terminal window
npx personal-memory up
npx personal-memory down
npx personal-memory switch mem0 --yes
npx personal-memory doctor
Command Purpose
up / down Start or stop the stack (down keeps data volumes)
switch <id> --yes Change provider (no memory migration)
doctor Validate config without the smoke test

In a checkout, use npx . instead of npx personal-memory.

Install Stack root (compose, .env)
npx personal-memory ~/.local/share/personal-memory/stack (override: PM_STACK_ROOT)
Git checkout The clone directory

Secrets and index config: ~/.config/hindsight/ (and optional ~/.config/personal-memory/config.toml).


This page is generated from docs/quickstart.md in the repository.