Reference and help
Command-line reference
Every memindex command, with its options, what it does, and an example. Run them with npx memindex <command>. Add -h or --help after a command name to print its help.
Install and keep up
| Command | What it does |
|---|---|
install |
Sets MemIndex up for your agents. See below. |
repair |
Rebuilds the supporting tools and plugin files without changing your settings. |
update |
Reinstalls from the newest release and keeps your saved note writer and runtime. Run it as npx memindex@latest update. |
prune [--dry-run] [--keep <n>] |
Removes superseded plugin copies. Keeps the newest two unless --keep says otherwise. |
uninstall |
Removes the plugin and its integrations and keeps your data folder. |
version |
Prints the version. Also -v and --version. |
npx memindex install --ide cursor
npx memindex install --yes
npx memindex install --provider gemini --runtime worker
install accepts these options:
| Option | Meaning |
|---|---|
--ide <id> |
Connect one agent. IDs: claude-code, cursor, grok, grok-bot, opencode, openclaw, omp, hermes, pi, dsh, windsurf, codex-cli, t3code (also t3, t3-code), kimi, muse, copilot-cli, antigravity, goose, roo-code and warp. |
--provider <name> |
Pick the note writer: claude, codex, gemini, openrouter or host. |
--model <id> |
Pick the Claude or Codex model. |
--runtime worker|server |
worker keeps memory on this computer. server uses MemIndex hosting. |
--server-url <url> |
Point the hosting runtime at a specific address. |
--dsh-profile <name> |
The DeepSeek Harness profile. The default is web. |
--yes |
Never ask a question. Takes every default, starts the service, and exits with an error if it cannot. |
--no-auto-start |
Leave the service stopped. |
--disable-auto-memory |
Turn off Claude Code's own built-in memory. |
--status-line / --no-status-line |
Add or skip the Claude Code status line that shows whether memory is saving. |
The service
| Command | What it does |
|---|---|
start, stop, restart |
Start, stop or restart the background service. |
status |
Says whether it is running. |
doctor |
Checks the install and the service, and says what to fix. |
viewer [--print] |
Opens the memory viewer, signed in. --print prints the full sign-in link instead. Keep that link private. |
Each service command prints one plain sentence. Add --json for a machine-readable reply.
$ npx memindex start
MemIndex is running.
Find and keep notes
| Command | What it does |
|---|---|
search <query> |
Searches your notes. Everything after search is the query. |
pin <id> [--why "<line>"] [--branch <name> | --project-wide] |
Keeps a note at the top of every session start. The default is this git branch. |
unpin <id> [--branch <name> | --project-wide | --all] |
Removes a pin. |
unpromote [--branch <name>] |
Puts pins that became project-wide, after a merge, back on their branch. |
savings [--days <n>] [--project <name> | --here] [--json] |
Shows the tokens and dollars your memory has saved, by day and by project. An estimate. |
adopt [--dry-run] [--branch <name>] |
Folds notes from merged git worktrees into their parent project. |
project merge <from> <into> [--dry-run] |
Folds one project's notes into another. Nothing is deleted. |
snapshot [list | restore <file-or-latest>] |
Saves, lists or restores local copies of your database. Stop the service before a restore. |
$ npx memindex pin 1 --why "Rounding bugs in v1"
Pinned #1 on branch feat/payment. Why: Rounding bugs in v1
$ npx memindex project merge shop shop-old --dry-run
Project merge (dry-run, no changes made) by the running worker
From: shop
Into: shop-old
Observations merged: 4
Summaries merged: 0
Bring memory in and take it out
| Command | What it does |
|---|---|
export [--project <name>] [--out <file>] |
Saves your memory, or one project's, to a file that import reads back. |
import --from <file> [--dry-run] |
Brings in a MemIndex export or a memory database, skipping what is already here. |
import chats --from <codex|gemini|claude-code> [--dir <folder>] [--since <time>] [--dry-run] |
Turns another agent's saved chats into notes. |
import reviews --repo <owner/name> [--limit <n>] [--since <date>] [--dry-run] |
Brings in settled GitHub review threads as decision notes. |
import jira --project <KEY> [--limit <n>] [--since <date>] [--dry-run] [--jql "..."] |
Brings in Jira tickets, one note each. |
distill [--project <name>] [--apply [--only 1,3 | --yes]] |
Suggests project rules. Writes nothing unless you approve. |
memory ingest [--source <dir> | --all] [--dry-run] [--require-cwd] |
Stores your agent's memory files as notes, with no model cost. |
transcript import [--since <time>] [--until <time>] [--project-dir <folder>] [--dry-run] |
Replays saved Claude Code transcripts into memory. |
transcript watch |
Starts a watcher that follows an agent's transcript files. |
sync connect | status | disconnect |
Keeps your memory the same on every machine, through MemIndex hosting. |
Guides: Import from Jira, GitHub reviews, past chats, distill, ingest, export and import.
Setup helpers for one agent
These manage a single agent's connection. Each takes install, status or uninstall, except t3code, which takes only status and uninstall.
npx memindex antigravity-cli status
npx memindex kimi status
npx memindex grok status
npx memindex muse status
npx memindex copilot-cli status
npx memindex t3code status
npx memindex pi status
Other
| Command | What it does |
|---|---|
mcp |
Starts the search server that agents connect to. Agents run this for you. |
hook <platform> <event> |
Runs a hook. Agents call it; you rarely do. |
telemetry status | enable | disable |
Anonymous usage reporting is on by default. Turn it off with npx memindex telemetry disable. status writes nothing; enable needs a terminal and shows every field first. The saved choice survives later runs, updates, and installs. |
server api-key create | list | revoke |
Manages local API keys. |
worker start | stop | restart | status |
Older names for the service commands. |
cleanup [--dry-run] |
A one-time clean-up of leftovers from an older release. |