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
- Go to openrouter.ai and sign up or sign in
- Navigate to API Keys and click Create Key
- Copy your API key
Step 2: Clone and build Claude Mem
Step 3: Configure OpenRouter provider
- Interactive setup (recommended)
- Manual configuration
Step 4: Restart Cursor and verify
http://localhost:37777 to confirm the memory viewer is running.
Recommended models
| Model | Cost | Notes |
|---|---|---|
xiaomi/mimo-v2-flash:free | Free | Default free model |
google/gemini-2.0-flash-exp:free | Free | Fast, capable |
anthropic/claude-3-haiku | ~$0.25/1M tokens | Fast and efficient |
CLAUDE_MEM_OPENROUTER_MODEL to your settings:
Next steps
Cursor Integration Overview
All Cursor features and hook mappings
Gemini Setup
Free tier alternative with Google Gemini