Coding Tools
Give Codex, Claude Code, Cursor, Windsurf, and other coding tools persistent memory.
Give your coding tools persistent memory. Same vault, same memories, whether you're chatting in OpenClaw or coding in Cursor.
How It Works
MemoryRouter acts as a proxy between your coding tool and your AI provider. Set ANTHROPIC_BASE_URL or OPENAI_BASE_URL to MemoryRouter's endpoint, and every request gets relevant memories injected automatically.
Coding Tool → MemoryRouter → AI Provider → Response
↑
injects relevant memoriesYour API keys pass through untouched (BYOK). MemoryRouter just adds context.
Read-Only Keys
For coding tools, use a read-only key so coding sessions don't pollute your memory vault with tool calls and file diffs.
Take your normal key:
mk_40a267...Add ro_ after mk_:
mk_ro_40a267...That's it. Read-only keys inject memories but never store. No new key to generate: it's the same key with a prefix convention.
Setup
Claude Code
export ANTHROPIC_BASE_URL=https://api.memoryrouter.ai/v1
export ANTHROPIC_API_KEY=sk-ant-... # Your real Anthropic key
export MEMORY_KEY=mk_ro_your-key-here # Read-only memory keyOpenAI Codex
export OPENAI_BASE_URL=https://api.memoryrouter.ai/v1
export OPENAI_API_KEY=sk-... # Your real OpenAI key
export MEMORY_KEY=mk_ro_your-key-here # Read-only memory keyCursor
In Cursor settings, set the API base URL to:
https://api.memoryrouter.ai/v1Set your MEMORY_KEY environment variable to your read-only key.
Windsurf
Same pattern: set the base URL to https://api.memoryrouter.ai/v1 in your Windsurf configuration and export MEMORY_KEY.
Aider
export OPENAI_API_BASE=https://api.memoryrouter.ai/v1
export OPENAI_API_KEY=sk-...
export MEMORY_KEY=mk_ro_your-key-hereContinue, Cody, and others
Any tool that supports a custom base URL works. Point it at https://api.memoryrouter.ai/v1 and set the MEMORY_KEY environment variable.
Cross-Tool Memory
The killer feature: all your tools share the same memory vault.
- Chat with your AI in OpenClaw at night → memories stored
- Code in Cursor the next morning → those memories are injected
- Switch to Codex for a different task → same context available
One vault. Every tool. Unified memory across your entire workflow.
Read-Only vs Read-Write
| Key Type | Format | Retrieves Memories | Stores Sessions |
|---|---|---|---|
| Read-Write | mk_40a267... | ✅ | ✅ |
| Read-Only | mk_ro_40a267... | ✅ | ❌ |
Recommended: Use read-only keys for coding tools. Coding sessions generate tons of tool calls, file diffs, and intermediate output that would add noise to your vault. Read-only gives you the context without the clutter.
Pricing
Same as all MemoryRouter usage:
| Plan | Price | Includes |
|---|---|---|
| Free | $0 | 50M tokens. No credit card required. |
| Pro | $0.10 / 1M tokens | Pay as you go. |
Get your free memory key at app.memoryrouter.ai.