Does Codex Share Memory With ChatGPT? No. Here's the Fix
Same company, same account, two separate memories, and how to give both the same context.

Codex doesn't share memory with ChatGPT, even on the same account. OpenAI documents them as two separate stores, and nothing copies one into the other, so months of ChatGPT conversations about your stack, your conventions and how you like code explained mean nothing when Codex opens in your terminal.
It feels like a bug, but it's the design. Below: what each one remembers, why a copy-paste doesn't hold, and how to give both tools one shared context.
Does Codex share memory with ChatGPT?
No, and OpenAI says so directly. The Codex memories docs put it in one line: "ChatGPT web uses ChatGPT memory, while local Codex clients use a separate local memory store and controls."
So the preferences ChatGPT saved about you, and the chat history it references, stay in ChatGPT. Codex can't query them, and signing in with the same OpenAI account doesn't change that. It cuts the other way too: whatever Codex learns while working in your repo doesn't flow back into ChatGPT.
Part of the confusion is that the two now share an app. In the ChatGPT desktop app, Codex sits next to chat, and chats there can use the local Codex memory store. That store lives on one machine and is separate from the ChatGPT memory you've built up on the web.
What does Codex remember on its own?
Codex has two sources of context, and both live on your machine.
AGENTS.md: the instructions you write
Codex reads AGENTS.md files before doing any work (OpenAI, AGENTS.md guide). It builds a chain at startup: a global ~/.codex/AGENTS.md first, then one file per directory from the repo root down to where you're working, with closer files taking precedence. The combined chain stops at 32 KiB by default (project_doc_max_bytes).
AGENTS.md isn't Codex-only. It's an open format used by more than 60,000 open-source projects, and in December 2025 it became a founding project of the Linux Foundation's Agentic AI Foundation (Linux Foundation, 2025). Cursor reads it natively and Claude Code reads it too, which makes it the closest thing to a shared instruction file for coding agents.
Local memories: the notes Codex writes
With memories turned on, Codex turns useful context from earlier chats into memory files under ~/.codex/memories/. It works in the background: it skips active and short-lived sessions, waits until a chat has been idle, and redacts secrets from what it generates.
Memories are off by default. Turn them on under Settings > Personalization > Enable Codex memories in the ChatGPT desktop app, or in config.toml:
[features]
memories = true
Use /memories in a chat to decide whether that chat can read existing memories or feed future ones. OpenAI's own advice: keep rules that must always apply in AGENTS.md, and treat memories as "a helpful recall layer". Note one setting in particular: with memories.disable_on_external_context = true, chats that used MCP tools or web search don't generate memories at all.
Can you copy your ChatGPT memory into Codex?
You can, by hand, and it stops being accurate fast. Ask ChatGPT to list what it knows about how you work, paste the result into ~/.codex/AGENTS.md, and Codex will read it in every repo.
Three problems show up within weeks:
- It's a snapshot. ChatGPT keeps learning; your pasted file doesn't. A stale instruction gets applied with full confidence.
- It's one-way. Decisions you make in Codex never reach ChatGPT unless you paste them back.
- It competes for space. Your profile shares the 32 KiB budget with project rules, and it says nothing about this week's priorities or the client you're building for.
For saving and moving context inside ChatGPT itself, see How to Save Context in ChatGPT.
How do you give Codex and ChatGPT the same context?
Put your context in one place outside both products and let each read it over MCP. Both ChatGPT and Codex can use tools and information from MCP servers, according to OpenAI's MCP docs, so a context layer connected to one can serve the other.
Unabyss is built for this. It builds your context from the apps where it already lives (Gmail, Google Calendar, Notion, Slack, GitHub, Linear), keeps it current, and serves it over MCP. ChatGPT and Codex use the same Unabyss plugin:
- Connect your sources. Your first source is ready in about 90 seconds; the context layer starts from your real work instead of a blank form.
- Install the Unabyss plugin in ChatGPT. It loads your context before answering.
- Connect it in Codex. The same plugin installs from the Codex app, so the terminal reads the same context the chat does.
- Choose what gets saved back. Unabyss's global instructions come in three versions: save only what matters, save everything, or save nothing. With saving on, a decision you reach in Codex is there the next time you open ChatGPT, and the reverse.
Keep AGENTS.md for what belongs to the repo: build commands, conventions, files not to touch. The context layer carries what's true across every repo and every tool. The difference is measurable: in an August 2026 Unabyss benchmark, a hand-written instruction file barely moved cost, time or quality, while Unabyss cut cost by 36% and time by 38% (What Structured AI Context Is Worth).
Running Claude Code or Cursor next to Codex? The three-tool setup is in How to Give Claude Code, Cursor and Codex the Same Context, and the instruction-file side of it in What Is CLAUDE.md?