docs/public/cursor/index.mdx
Give Cursor a memory that lasts across chats. The installer wires Cursor hooks (small scripts Cursor runs when a session starts, a file is read, or a tool runs), starts the local worker (the program that stores notes), and uses CMEM Pro (the hosted memory service) unless you pick another provider.
<CardGroup cols={2}> <Card title="One command" icon="terminal"> `npx claude-mem install` — do not clone the repo to install. </Card> <Card title="CMEM Pro default" icon="cloud"> Memory notes are written off-plan through the hosted service unless you pick Gemini, OpenRouter, or your Anthropic plan. </Card> <Card title="Cursor hooks" icon="bolt"> Cursor has hooks. Grok Bot does not — that host is a [different guide](/grok-bot). </Card> <Card title="Memory viewer" icon="eye"> Open the worker URL printed at install to browse saved notes. </Card> </CardGroup>npx claude-mem install
When the installer lists your apps, pick Cursor. The three stages are: install runtime, sign in (device code, no email in the CLI), then pick a memory provider. CMEM Pro is pre-selected.
Other provider choices: your Gemini key, your OpenRouter key, or your Anthropic plan (--provider claude, which skips cmem.ai). Details: Installation.
Do not clone this repository to install. Clone is for people changing the code.
127.0.0.1, port in ~/.claude-mem/.worker.port).Never restart a healthy worker. The note queue sits in memory; a restart drops it.
sk-or- key to https://cmem.ai/api/inferencecurl -s "http://127.0.0.1:${CLAUDE_MEM_WORKER_PORT}/api/health" (or the port in ~/.claude-mem/.worker.port).npx claude-mem install, not a global npm install.~/.claude-mem/logs/worker-YYYY-MM-DD.logRestart Cursor. Hooks live under .cursor/ in the project or your user Cursor config after install.