docs/public/cursor/index.mdx
Your AI stops forgetting. Give Cursor persistent memory.
Every Cursor session starts fresh - your AI doesn't remember what it worked on yesterday. Claude-mem changes that. Your agent builds cumulative knowledge about your codebase, decisions, and patterns over time.
<CardGroup cols={2}> <Card title="Free to Start" icon="dollar-sign"> Works with Gemini's free tier (1500 req/day) - no subscription required </Card> <Card title="Automatic Capture" icon="bolt"> MCP tools, shell commands, and file edits logged without effort </Card> <Card title="Smart Context" icon="brain"> Relevant history injected into every chat session </Card> <Card title="Works Everywhere" icon="check"> With or without Claude Code subscription </Card> </CardGroup> <Info> **No Claude Code subscription required.** Use Gemini (free tier) or OpenRouter as your AI provider. </Info>Claude-mem integrates with Cursor through native hooks:
Choose the installation method that fits your setup:
If you're using Cursor without a Claude Code subscription:
# Clone and build
git clone https://github.com/thedotmack/claude-mem.git
cd claude-mem && bun install && bun run build
# Run interactive setup wizard
bun run cursor:setup
The setup wizard will:
Detailed guides:
If you have Claude Code installed:
# Install the plugin (if not already)
/plugin marketplace add thedotmack/claude-mem
/plugin install claude-mem
# Install Cursor hooks
claude-mem cursor install
The plugin uses Claude's SDK by default but you can switch to Gemini or OpenRouter anytime.
After installation, these commands are available from the claude-mem directory:
| Command | Description |
|---|---|
bun run cursor:setup | Interactive setup wizard |
bun run cursor:install | Install Cursor hooks |
bun run cursor:uninstall | Remove Cursor hooks |
bun run cursor:status | Check hook installation status |
bun run worker:start | Start the worker service |
bun run worker:stop | Stop the worker service |
bun run worker:status | Check worker status |
After setup, verify everything is working:
Check worker status:
bun run worker:status
Check hook installation:
bun run cursor:status
Open the memory viewer: Open http://localhost:37777 in your browser
Restart Cursor and start a coding session - you should see context being captured
| Provider | Cost | Rate Limit | Best For |
|---|---|---|---|
| Gemini | Free tier | 1500 req/day | Individual use, getting started |
| OpenRouter | Pay-per-use + free models | Varies by model | Model variety, high volume |
| Claude SDK | Included with Claude Code | Unlimited | Claude Code subscribers |
# Check if port is in use
lsof -i :37777
# Force restart
bun run worker:stop && bun run worker:start
# Check logs
bun run worker:logs
bun run cursor:status.cursor/ directorybun run worker:status