MemoryRouter for Codex
Start a new Codex session. Pick up where you left off.
Paste. Sign in. New session. No API key. Nothing to install.
Connect MemoryRouter and Codex saves the decisions, reasoning, and next steps from your work, then searches them when you start fresh. Less re-explaining. More building.
Codex decides when to search and save. Want every turn captured automatically? Add hooks.
Setup promptPaste into Codex
Connect MemoryRouter to Codex with OAuth. No API key, no installs, no alternatives. 1. Run: codex mcp add memoryrouter --url https://mcp.memoryrouter.ai/mcp 2. If the browser sign-in doesn't open, run: codex mcp login memoryrouter 3. Tell me to sign in, pick my vault, and approve. Wait for me. 4. Tell me to open a new session, then run memory_status and show me the result. From now on, search MemoryRouter before answering anything about my work, and save important decisions to it.
- Paste
Drop the prompt into any Codex session. Codex adds MemoryRouter for you.
- Sign in
Your browser opens. Sign in to MemoryRouter, pick your vault, and approve.
- New session
Open a fresh Codex session. It runs memory_status and shows you the result.
New to MemoryRouter? You can create an account at the sign-in step, or start your 14-day free trial first. $20/month after the trial. Cancel anytime.
What it feels like
A fresh session
that already knows.
Decide something in one session. Open a new one tomorrow and ask Codex to continue. It searches your vault and starts from the decision and the reason, not from zero.
How it worksCodexYesterday’s session
- Decision
- Use polling for the order-status screen, not WebSockets.
- Why
- The warehouse proxy blocks WebSockets.
- Next
- Add reconnect tests before wiring up the UI.
CodexA fresh session
“Continue the order-status work.”
With relevant memory recalled
“We’re using polling because the warehouse proxy blocks WebSockets. Next up: reconnect tests, then the UI.”
And when you use Claude Code
The context comes with you.
Connect Claude Code to the same vault. The decisions you discussed in Codex are available there too, and vice versa. One shared record across sessions, repositories, and connected tools.
You already did this work
The expensive part
is explaining it again.
Before the next task, there’s the recap. Find the old conversation. Reconstruct why you ruled an approach out. Catch the requirement that didn’t make it into the handoff.
That is your time and paid agent usage going toward work you already did.
Build your project. Stop babysitting the context.
- The investigation you already finished.
- You found the cause yesterday. Today should start with the fix, not another search for the same answer.
- The decision you already settled.
- The code shows what you chose. The conversation holds why, and which tempting alternative you ruled out.
- The handoff you keep maintaining.
- Another status file. Another reminder to update it. MemoryRouter keeps the decisions in your vault instead.
Less memory maintenance
Keep the decisions.
Skip the repeat explanations.
Save as you work. Recall when you need it. Your saved context lives outside the session, so it survives compaction too.
Talk through the work.
Make decisions, explain constraints, and agree on next steps in Codex. With the quick connect, Codex saves what matters to your vault. Add hooks and every request and final reply is captured automatically.
Keep more than the conclusion.
The decision and its stated rationale stay together in your vault. A new session or compaction does not erase that saved conversation.
Continue with the relevant context.
When you ask Codex to continue, it searches MemoryRouter for relevant saved context before it answers. Your next session has the backstory without you writing it out again.
The quick connect is model-directed: Codex decides when to search and save. Hooks add automatic capture of user requests and final replies, not tool output or your whole repository. Recall typically takes 300–500 ms. See what gets saved
Not another file to maintain
Keep AGENTS.md.
Lose the recap routine.
Codex already has real memory. Files and free plugins can help too. MemoryRouter is for the context you still end up reconstructing, and the memory workflow you don’t want to manage.
Compare memory behaviorCodex’s built-in memory
Local project summaries, durable entries, and supporting evidence from prior chats. Useful memory you can keep using.
AGENTS.md and handoff files
Good for rules and written plans. You can maintain them yourself or have your agent update them. It is still a workflow to set up and keep current.
What MemoryRouter adds
The exact decisions and reasons you discussed, saved in one hosted vault. Relevant recall across fresh sessions, compaction, repos, and connected tools. Add hooks for automatic capture on every turn.
Less rebuilding context. Less managing memory.Optional upgrade: hooks
Want every turn saved automatically?
Add hooks.
The quick connect above is model-directed: Codex decides when to search and save. Hooks add automatic capture of your requests and final replies on every turn, plus automatic recall, using a Memory Key from your dashboard.
Your key stays out of chat. Supply it locally when prompted. Already connected in Claude Code? Codex can reuse that key.
From hooks install to your first recall
- 1Get your Memory Key.
Copy it from your dashboard. Use the key for the vault you picked at sign-in.
- 2Copy the hooks prompt into Codex.
Approve the install and hooks. Provide your key locally, never in chat.
- 3Check a fresh session.
Save a harmless test phrase, open a new session, and ask Codex to recall it.
Read the full prompt before copying
Install MemoryRouter memory for Codex on this machine. 1. Check node --version (18 or newer) and codex --version (0.145 or newer). If either is missing or too old, tell me what to install and stop. 2. Ask whether I already use MemoryRouter in Claude Code on this machine. If yes, reuse that key. Otherwise, ask me to copy my MemoryRouter Memory Key from my dashboard. Never ask me to paste the key into this chat. 3. The installer needs network access and writes to ~/.codex and ~/.memoryrouter. Ask me to approve the install before running it. Reusing the Claude Code key: npx -y memoryrouter-codex init --scope user --auth api-key On macOS, with my key on the clipboard: pbpaste | npx -y memoryrouter-codex init --scope user --auth api-key --api-key-stdin On Windows PowerShell, with my key on the clipboard: Get-Clipboard | npx -y memoryrouter-codex init --scope user --auth api-key --api-key-stdin On other systems, have me supply MEMORYROUTER_API_KEY privately in my own terminal and run npx -y memoryrouter-codex init --scope user --auth api-key there. Do not read or display the variable. 4. Run npx -y memoryrouter-codex doctor --scope user and explain any failing checks. Do not claim setup succeeded if checks fail. 5. Tell me to type /hooks, trust the MemoryRouter hooks, and start a new Codex session. 6. Guide me through saving a harmless test phrase, opening another session, and recalling it. Report the actual result, not an assumed success. Never print, log, echo, read back, or put my Memory Key in chat, a command argument, or a project file.
Node.js 18+ · Codex CLI 0.145+ with hooks
Prefer manual setup? Read the guide
Make the trial earn its place
Don’t test “more memory.”
Test less repeating yourself.
Use it on a project you’re already building. Discuss a decision, why you made it, and what comes next. Open a fresh Codex session and ask it to continue without pasting a recap.
The test: does it recall a detail you would otherwise have had to explain again? That is the reason to keep it.
14-day free trial
$20/month after trial
- Optional hooks: automatic capture on every Codex turn
- Relevant recall in fresh sessions and after compaction
- One vault across repositories and connected tools
- Claude Code shares the same saved context
- 200M memory tokens included each month
Cancel anytime. Your agent subscriptions stay separate.
Additional memory usage: $0.50 per 1M tokens.
Full pricing details
Before you connect
Good questions.
Straight answers.
Your next session is the test
You already did the thinking.
Build on it.
Start with Codex. Keep the decisions, the reasons, and the next step within reach of your next session.
Start my free trial14 days free. Then $20/month. Cancel anytime.