MemoryRouter
Works with any tool that supports custom base URLs

Your Coding Tools, Same Brain

Code in Cursor during the day, chat in OpenClaw at night. One memory across every tool. No plugins. No patches. Just a base URL.

Which coding tools remember across sessions?

Short answer: Claude Code does by default, Codex does if you turn Memories on, and most others keep only the instructions you write. Every native memory below stays inside one tool, and usually on one machine. Checked against each vendor's docs on .

"Remembers" means the tool itself brings past conversations into a new session without you pasting them.

Native cross-session memory in AI coding tools, checked 2026-09-29
ToolWhat persists nativelyRemembers past chats?LimitsMemoryRouter connects via
Claude CodeCLAUDE.md you write, plus auto memory: notes Claude writes about your corrections and preferencesYesAuto memory is on by default and machine-local, shared across worktrees of one repo. Not shared across machines or tools. SourceLifecycle hooks, automatic every turn
CodexAGENTS.md you write, plus Memories: summaries of idle past chats under ~/.codex/memoriesOpt inMemories are off by default, generated in a background pass, and local to one machine. Codex only. SourceLifecycle hooks, automatic every turn
CursorRules and AGENTS.md you write. @Chats pulls in one earlier chat when you ask. Memories was removed in 2.1.NoNew chats start from rules. Conversation search (3.11) finds old transcripts but injects nothing. SourceRemote MCP, model-directed
Windsurf (Devin Desktop)Rules you write, plus auto-generated Cascade memoriesPartlyMemories are per workspace, stored on your machine, and apply to the legacy Cascade agent only. The default Devin Local agent does not persist memories. SourceRemote MCP, model-directed
GitHub CopilotCustom instruction files, plus Copilot Memory: repository facts and user preferencesPartlyPublic preview. Used by cloud agent, code review, and Copilot CLI. Unused entries are deleted after 28 days. GitHub only. SourceRemote MCP in agent-mode clients
Gemini CLIGEMINI.md context files. The agent can save facts into them.PartlySaved facts are markdown instructions loaded every session. No record of the conversation itself. SourceMCP server
Cline.clinerules, plus the Memory Bank file convention the agent maintainsPartlyMemory Bank is markdown the agent chooses to write. Local to the project. SourceRemote MCP, model-directed
AiderConventions files you load with /read, plus the repo mapNoA new session starts from files and the repo map. SourceOpenAI-compatible base URL
ZedRules and instruction files (.rules, AGENTS.md, CLAUDE.md and others)NoInstructions only. Threads do not carry into new threads. SourceMCP context server
ContinueRules files for standards and behaviorNoRules shape behavior. Nothing from past sessions is stored. SourceMCP server

Deeper answers: does Codex have memory, does Cursor remember past conversations, Claude Code memory, and every tool in the memory guide library.

How It Works

MemoryRouter runs as a proxy between your coding tool and the LLM provider (Anthropic, OpenAI, etc.).

Your Tool MemoryRouter LLM Provider
  1. Your tool sends a request to MemoryRouter instead of directly to the provider
  2. MemoryRouter searches your memory vault for relevant context
  3. Memories are injected into the system prompt in milliseconds
  4. The request is forwarded to the real provider with your memories included
  5. The response streams back to your tool as normal

Read-Only Keys

Coding sessions generate tons of noise: file diffs, tool calls, error traces. You don't want that in your memory vault. That's why we recommend read-only keys for coding tools.

Same key, different prefix

# Your regular key (read + write)

mk_40a267f...

# Read-only version (just add ro_ after mk_)

mk_ro_40a267f...

Read-only keys inject memories into every request but never store coding sessions back. Your vault stays clean. No new database entry, no dashboard toggle. It's just a naming convention.

Setup Guides

+

Any other tool

Any tool that lets you set a custom base URL works the same way:

Base URL: https://api.memoryrouter.ai/v1

API Key: mk_ro_40a267f...

If it talks to OpenAI or Anthropic, it works with MemoryRouter.

The Big Picture

Every tool feeds into the same memory vault. Chat with your AI assistant at night, code with Cursor during the day. Your AI always knows the full picture.

OpenClaw ──── mk_40a267f... ──── read + write

Codex ───── mk_ro_40a267f... ── read only

Claude Code ─ mk_ro_40a267f... ── read only

Aider ────── mk_ro_40a267f... ── read only

↕ All pointing to the same vault ↕

FAQ

Give your AI a memory that lasts.

14 days free. Set up in two minutes. Your AI remembers you from the very next conversation.