Skip to main content
Model variety: Access Claude, GPT-4, Gemini, Llama, Mistral, and more through a single API key. Several free models are available.

Step 1: Get an OpenRouter API key

  1. Go to openrouter.ai and sign up or sign in
  2. Navigate to API Keys and click Create Key
  3. Copy your API key

Step 2: Clone and build Claude Mem

git clone https://github.com/thedotmack/claude-mem.git
cd claude-mem
bun install
bun run build

Step 3: Configure OpenRouter provider

Step 4: Restart Cursor and verify

bun run worker:status
bun run cursor:status
Open http://localhost:37777 to confirm the memory viewer is running.
ModelCostNotes
xiaomi/mimo-v2-flash:freeFreeDefault free model
google/gemini-2.0-flash-exp:freeFreeFast, capable
anthropic/claude-3-haiku~$0.25/1M tokensFast and efficient
To specify a model, add CLAUDE_MEM_OPENROUTER_MODEL to your settings:
{
  "CLAUDE_MEM_PROVIDER": "openrouter",
  "CLAUDE_MEM_OPENROUTER_API_KEY": "your-key",
  "CLAUDE_MEM_OPENROUTER_MODEL": "google/gemini-2.0-flash-exp:free"
}
Paid OpenRouter models charge per token. Use free models (:free suffix) to avoid charges. Monitor usage at openrouter.ai/activity.

Next steps

Cursor Integration Overview

All Cursor features and hook mappings

Gemini Setup

Free tier alternative with Google Gemini

Build docs developers (and LLMs) love