Skip to content

Switching from ChatGPT/Codex to Claude: how do you migrate your context? ​

After months in ChatGPT and Codex, an assistant holds a lot about you: what it remembers, the instructions your coding agent follows, and a long trail of chats. Switching to Claude or Claude Code does not move an account as a whole, so the real question is which parts of that context have a carrier the receiving product understands. This page follows each carrier through the vendors' own documentation, read on 30 November 2026, and says what moves, what is rebuilt and what stays behind. It reviews documentation; it does not test migrations end to end.

TL;DR

  • Remembered facts move as text: you ask the old assistant to write them out with Anthropic's prompt, read the list, and paste it into Claude's memory import. Claude decides what to keep.
  • Coding instructions move as files. AGENTS.md and CLAUDE.md already live in the repository, and Claude Code documents when it reads AGENTS.md.
  • Chat history moves as an export archive. Gemini accepts such an archive and lets you continue the chats; another ChatGPT account gets it only as a reference file; Claude's memory import takes a text list.
  • Or move less: keep context in one memory layer that every tool connects to, and bring old context in once (see below).
  • The author's position: have the export before you need it, and ask a memory service what it lets you take before you put data in.

What moves between different products is what the receiving side can model. A list of remembered facts is text, so any assistant that accepts pasted text can take it in. Links and search data that a system built for itself move only where the receiver has a place for them; otherwise the new system builds its own. Three carriers, three rules; the table shows what each assistant documents for them:

AssistantExportImportWhat does not move or is not promised
ChatGPTData export as a ZIP: "Exports can take up to 7 days to arrive." (OpenAI)Exported conversations uploaded to another ChatGPT account as a reference file (OpenAI)"This is not a full account migration." The upload does not move custom instructions, memories, GPTs or other account settings (OpenAI)
ClaudeMemory written out as text; account data export (Anthropic, Anthropic)A pasted memory list, from which "Claude will extract key information" (Anthropic)"Claude may not retain imported personal details unrelated to work." (Anthropic). Account exports cannot be imported into another personal Claude account (Anthropic)
GeminiGemini Apps data through Google Takeout (Google)Remembered facts, and optionally full chat history from another AI platform (Google)Personal Google Accounts only; not available in the EEA, Switzerland or the United Kingdom (Google)
CodexLocal memories are files under the Codex home directory, "off by default" (OpenAI); a dedicated export tool: not covered on the pages read (30 November 2026)Instructions, settings, skills, plugins, projects and recent work from another agent (OpenAI)"Codex CLI imports up to 50 chats from the last 30 days." (OpenAI)

Memory export is a copy of what a system remembers about you, in a form you can save outside that system, such as the text list Anthropic's prompt produces.

Memory import is the receiving system's process for turning supplied material into its own memory; the receiver decides what it keeps.

Derived data is what a memory system builds for itself from your material: links between memories, extracted entities and facts, and the data it uses for search.

Shared memory is different from migration: a migration moves a snapshot or a file once, while shared memory keeps several tools connected to one continuing source.

What can you actually move from ChatGPT or Codex to Claude? ​

You can move three kinds of context, each by its own route.

What the assistant remembers. Anthropic documents a transfer in both directions: "You can transfer your memory between Claude and other AI providers." (Anthropic). You run Anthropic's prompt in the old assistant. It begins "I'm moving to another service and need to export my data.", asks the assistant to "preserve my words verbatim where possible", and asks for entries in a fixed shape: "Format each entry as: [date saved, if available] - memory content." You then paste the result into Claude's memory import. The prompt is a recommended procedure, not a guarantee that the old assistant writes out everything it holds, so read the list before you paste it.

In ChatGPT, custom instructions are an account setting of their own. Copy them as text separately rather than assuming they travel with anything else; OpenAI's account-to-account workaround, for example, does not move them (OpenAI).

Instructions for the coding agent. These already live as files in your repository, so they move with it. Claude Code has its own carriers: instruction files and auto memory, which Anthropic describes as "notes Claude writes itself based on your corrections and preferences" (Claude Code memory). On AGENTS.md, the shared instruction file, Anthropic sets conditions: "Reading AGENTS.md directly requires Claude Code v2.1.277 or later." and "By default Claude reads AGENTS.md only when you have no CLAUDE.md or CLAUDE.local.md in your working directory or above it." Where that default does not apply, Anthropic gives a bridge: "you can still keep it as the one file every tool shares by putting an @AGENTS.md import in a CLAUDE.md next to it." Auto memory does not travel with the repository: "Auto memory is machine-local." and "Files are not shared across machines or cloud environments."

The Claude app's imported memory and Claude Code's file-based context are separate documented mechanisms. The cited pages do not say that filling one fills the other.

Codex's own memory. OpenAI says "ChatGPT web uses ChatGPT memory, while local Codex clients use a separate local memory store and controls." and "Local Codex memories are off by default." (OpenAI). Where they are on, "Codex stores memories under your Codex home directory.", which is ~/.codex by default. These are files on your machine: read them and carry the parts you want over as text or as a repository file. OpenAI also advises: "Keep required team guidance in AGENTS.md or checked-in documentation." OpenAI also documents the opposite direction: its import flow brings "instructions, settings, skills, plugins, projects, and recent work from another agent into the ChatGPT desktop app or Codex CLI", and its table lists project memories from Claude Code among the things it can import (OpenAI). That is an import into OpenAI's tools; the pages read say nothing about the reverse direction.

Chat history. OpenAI's data export produces a ZIP; the page says "The downloaded ZIP file includes your chat history and other relevant account data." (OpenAI). The cited page does not specify whether saved memories are in that ZIP, so write those out separately with the prompt above. Claude's memory import takes a text list of remembered facts; Anthropic's page describes it as storing memory entries, not restoring chat history.

For how the instruction files compare, see CLAUDE.md, AGENTS.md and Cursor rules, which tools support AGENTS.md and setup parameters across dev environments. Keeping one live memory that several tools read at once is a different question from a one-time move; it is covered in agent memory across ChatGPT and coding tools.

What gets lost when you move AI memory? ​

Loss has two sides: whatever the old export never contained, and whatever the receiving side cannot model.

The receiver decides what becomes memory. Anthropic says "Claude will extract key information and store it as individual memory entries." and "Claude may not retain imported personal details unrelated to work." (Anthropic). Google says "Gemini Apps will create a new chat thread and integrate this content to "remember" these details for future conversations." (Google). Anthropic also warns that "Memory imports are experimental and still in active development, and at this stage, Claude may not always successfully incorporate imported memories." A pasted list is therefore input, not proof that every entry survived.

Dates can change meaning. A date can describe when something happened or when a memory was saved. Anthropic's export format asks for the "date saved, if available", which is the second kind. Mem0 documents a way to "Import historical data with proper timestamps", and says "This timestamp will be used instead of the current time." (Mem0). Check which date a receiver stores, and whether it stores it as a date or as part of the text.

Links and derived data are rebuilt or carried, depending on the receiver. Zep's migration guide from Mem0 says "Do not translate each Mem0 memory into a Zep fact. Ingest the source messages or records so Zep can build the graph." (Zep). Cognee offers both behaviours. Its preserve mode maps "the source's already-extracted entities and facts straight into the graph"; its re-derive mode ingests raw content, and then "The source's own graph is ignored." (Cognee). A service that can rebuild a graph from records may produce a useful graph, but that is a different operation from preserving the source graph's facts and connections. Pieces' export tool keeps "the links between them" in its Markdown output, on one condition: "Keep the folder together so the links keep working." (Pieces export tool).

Inside one vendor's products the promise can be different. Anthropic says "Claude Duet carries over your memory, skills, and connected apps from your Claude account" (Anthropic). That is a move within one company's products, not a move between companies.

"Chat memory full" is not lost memory. In a reply on its community forum, OpenAI's support account explained this message as the conversation reaching its context limit. Since OpenAI says saved memories are stored separately from chat history (OpenAI), the message is not, on this reading, a sign that saved memories are gone or that an export failed. See Common questions.

How do ChatGPT, Claude and Gemini export and import memory? ​

Each vendor describes its own route, and the routes do different things.

ChatGPT. The data export arrives as a download link: "Exports can take up to 7 days to arrive." and "The download link expires 24 hours after you receive it." (OpenAI). The page adds that "An export cannot restore chats that have already been deleted." This export path is "Not available for ChatGPT Business, Enterprise, or ChatGPT for Healthcare workspaces." That is a restriction on this workflow, not a claim about every organizational export route. Between ChatGPT accounts, "ChatGPT does not support fully merging accounts or moving conversations from one account's chat history into another account's chat history." (OpenAI); the workaround uploads the exported conversations as a reference file.

Claude. Memory transfer and account data export are separate paths. The memory path into Claude is the prompt and paste described above. To write out Claude's own memory, Anthropic suggests asking it in a chat, "Write out your memories of me verbatim, exactly as they appear in your memory.", and adds: "You can save this exported memory as a backup or bring it to another AI service by copying and pasting it into a local file on your computer." (Anthropic). The account data export has its own window: "The download link will expire 24 hours after it's created, and it may work only once, so download the file right away." It also has a limit on where it can go: "Exported data can't be imported into another personal Claude account, and we don't support migrating data between personal accounts." (Anthropic). Separately from the import, Anthropic's release notes say "Topics such as health or beliefs stay out of memory unless you turn on Include sensitive topics in memory." (Anthropic).

Gemini. Google's import covers both kinds: "You can bring over your preferences, remembered facts & details, and general contextual information (sometimes called "memory") from other AI platforms." and "You can also choose to import your full chat history." (Google). The same page sets the limits: you must "Be signed in with a personal Google Account", the feature is not available in the EEA, Switzerland or the United Kingdom, and "The file size limit is 5 GB." On imported and continued chats it says: "This data is used to improve our services (including training generative AI models), and to protect Google, our users and the public." For the way out, "You can export and download your Gemini Apps data." through Takeout, and the emailed link has its own window: "This link is active for 7 days." (Google).

ChatGPT desktop and Codex CLI. OpenAI's import flow runs into its own tools, from another agent on the same machine (OpenAI). It brings instructions, settings, skills, plugins, projects and recent work; it states that "Importing doesn't change or delete your existing agent setup."; and it bounds the chats: "Codex CLI imports up to 50 chats from the last 30 days." The page also advises: "Review imported setup before you rely on it".

What happens to your memory when a tool shuts down or changes its plan? ​

The company sets the terms, and the terms decide what you can still retrieve. Two recent cases show the range.

Limitless. The company's site says "We just launched a feature to make it easy to export all of your data." and "you can delete your Limitless account or export your Limitless data at any time" (Limitless). Its help centre gives the steps "To download your entire history of Limitless transcripts (Lifelogs / meetings), chats, and audio files" (Limitless help). For some regions the site set a deadline, written in its own future tense: "Users in these regions will have until December 19, 2025 to download their information, after which, their account and all associated information will be permanently deleted." That is a past regional deadline, not a new export window. The same site says "The Rewind app is sunsetting."

Pieces. Pieces changed its plan terms: "Without Pro, Pieces no longer forms new memories." and "Existing users have full access through August 16, 2026 and may qualify for a discount." (Pieces). That date has passed. The same page says "your existing memories remain accessible on your device". Access is not export. For export, Pieces publishes a separate tool: "Pieces OS must be installed.", and "The tool only reads your local Pieces data. Nothing in Pieces is changed or deleted." (Pieces export tool). The tool also names its limit: "Deleted history and unavailable/cloud-only data cannot be recovered." A user's question on Pieces' support tracker shows the other need, moving to a new account: "How can I export all the data from my Pieces OS and import it to a new Pieces OS account with a different email?" (GitHub). That question is evidence of a portability need, not proof of any particular behaviour.

In both cases the user's room to act was set by what the company published, and by when.

How do memory services move data in and out? ​

Memory services that agents and apps use behind the scenes publish their own transfer routes. These are different transfer contracts, not a ranking. Each row uses the service's own words.

ServiceWay outWay inWhat the docs say is rebuilt or left behind
Mem0"Export memories in a structured format using customizable Pydantic schemas" (Mem0); "Exported data expires after 7 days." (Mem0 cookbook)Direct Import lets users "skip the memory deduction phase and directly input pre-defined memories" (Mem0); historical timestamps "will be used instead of the current time" (Mem0)Not covered on the pages read (30 November 2026)
ZepGraph edges can be listed through the API; "Each edge contains a temporal fact." (Zep)Source messages or records, from which "Zep extracts entities and temporal facts" (Zep)Memories are not translated one to one: "Ingest the source messages or records so Zep can build the graph."
CogneeCOGX, "the common shape that memory data takes when it moves into or out of Cognee" (Cognee)Imports "from Mem0, LangMem, Letta, Zep, Graphiti, or another Cognee instance" (Cognee); typed records carry scope and timestamps "so ownership and time information survive the move" (Cognee)Depends on the mode: "Each source picks a sensible default (Mem0, LangMem, and Letta default to re-derive, Zep/Graphiti to hybrid, COGX archives to preserve), and you can override it." (Cognee)
SupermemoryNot covered on the pages read (30 November 2026)A guide for "exporting your memories from Mem0 and importing them into Supermemory" (Supermemory)The guide's quick script carries the memory text only; its step-by-step import script also passes the Mem0 creation date and metadata along as metadata
LettaAgent File (.af), which Letta calls an "open standard file format for serializing stateful AI agents" (Letta)An Agent File, between compatible frameworksLetta describes the transfer as working between compatible frameworks
Mnemoverse (the author's company)"Download every memory in your account as a plain file, whenever you want." The console pages for export and import are in beta: "it is new and may fail." (Mnemoverse)"Imported memories arrive as flat records. They keep their original date"; "An item whose source gives no date gets the import date." The secret check "works by pattern, so a secret with no recognisable shape gets through: read the preview." (Mnemoverse)Not exported: "How your memories connect to each other, and the search data Mnemoverse computes from each one." On re-import "the links are learned again with use". Undoing an import "removes the memories, not links Mnemoverse has already learned from using them."

Is there a standard format for portable AI memory? ​

Several formats exist, and they describe different objects. Each is described here in its owner's words; nothing on this page says how widely any of them is used.

  • DTI's conversation export specification. The Data Transfer Initiative describes an "Open specification for AI conversation data exports" (DTI), "defining a structured, interoperable format covering messages, context, and metadata" (DTI). It covers conversations, not a memory store.
  • MacPaw Portable Memory. The repository describes "An open, vendor-neutral format and protocol for carrying AI memory across apps, devices, and vendors". The research paper it links is titled as a proposal: "Memory Belongs to the User: Portable Memory, an Open Standard Proposal for Cross-Vendor AI Memory" (MacPaw).
  • Letta Agent File. Letta's format for whole stateful agents, described above.
  • Cognee COGX. Cognee's own exchange format, described above.
  • memory.jsonl. This is the default storage file of the reference MCP memory server, set by its MEMORY_FILE_PATH option (Model Context Protocol). It is a storage file, not a portable-memory standard.

A named format does not answer what a particular receiver preserves. That gap between formats and receivers is the subject of the agent-memory interop gap.

What should a memory service let you take with you? ​

The author's position: ask these five questions before you put data into a memory service, and treat a service that gives you neither a file nor a documented way to extract your data as lock-in, not a feature.

  1. Can you export any time, as a plain file, without a support ticket? Mem0 documents structured exports (Mem0); Google documents Gemini Apps data through Takeout (Google); OpenAI's export page names the workspaces where its export path is not available (OpenAI).
  2. Does export still work after you stop paying, or while the service winds down? Ask for that in writing in advance. Limitless kept export open while it wound down a product, and set a dated deadline for some regions (Limitless). Pieces keeps existing memories accessible on the device without Pro and publishes a separate export tool (Pieces).
  3. Does the service say plainly what the export leaves out? Pieces does: "Deleted history and unavailable/cloud-only data cannot be recovered." (Pieces export tool). OpenAI does: "An export cannot restore chats that have already been deleted." (OpenAI). Mnemoverse's export page names the links and search data it leaves out, as quoted in the table above.
  4. Does import keep original dates and leave your existing setup alone? Mem0 accepts historical timestamps (Mem0); OpenAI's agent import says "Importing doesn't change or delete your existing agent setup." (OpenAI).
  5. Are losses named before the move? Zep's guide says up front that it builds its graph from source records rather than translating memories one by one (Zep); Pieces says to keep the export folder together so its links keep working (Pieces export tool).

Export and deletion are separate questions. Before you remove anything from the old service, see agent memory deletion.

How to move your context, step by step ​

These steps describe the process. They do not promise a result.

  1. Export everything while you still have access, and save the files. Each export link has its own window, quoted in the vendor sections above; Mem0 adds that "Exported data expires after 7 days." (Mem0). Export before you need it.
  2. Write out what the old assistant remembers, then read the list. Use Anthropic's prompt in the old assistant (Anthropic). Remove anything sensitive, outdated or no longer true before you paste it, and copy custom instructions separately.
  3. Carry instruction files as files. Keep AGENTS.md or CLAUDE.md in the repository, and check Claude Code's conditions for reading AGENTS.md (Claude Code memory). If you turned Codex's local memories on, they are files under the Codex home directory: read them and move the parts you want as text.
  4. Import, then check what the receiver kept. Look at the memory entries Claude extracted or the details Gemini integrated, against the list you pasted (Anthropic, Google).
  5. Check what the import changed. Look at which dates arrived and what they mean, whether instructions apply in the scope you expect, whether sensitive information came across, and whether a few typical questions bring back the facts you moved.
  6. Keep the original export as a backup. Delete from the old service only after you have checked the new one.

Can you avoid moving context at all? ​

A migration is a one-time copy, and every copy loses what the receiver cannot model. The other approach is to keep context in one memory layer outside any single assistant and connect each tool to it, usually over MCP. Switching from ChatGPT to Claude, or running Codex and Claude Code side by side, then changes which tool reads the memory, not where the memory lives. Agent memory across ChatGPT and coding tools compares the documented ways to connect one layer to ChatGPT and to coding tools, with several layers side by side.

A shared layer does not remove the first move: context that already sits in ChatGPT, Claude or Codex still has to be brought in once, and that is where a layer's import page matters. Mnemoverse, the author's company, documents a console import that accepts a ChatGPT export, the folder Pieces' export tool writes, a Claude Code memory folder, and a pasted list produced by Claude's or Gemini's memory-import prompt (Mnemoverse import). The same page states its terms: imported items "arrive as flat records", links between them are learned again with use, and "There is no other way yet. If that does not suit you, do not import." The console page is in beta. The questions are the same as for any other move: what arrives, which dates survive, and what is rebuilt.

What this page does not claim ​

Each vendor is described in its own documentation on the date in Sources; these pages change often. "Not covered on the pages read" means the pages read, not that a feature does not exist. Nothing here says which tool is better, and no format is described by how widely it is used. The page reviews documentation; none of the migrations above was run end to end for it.

Common questions ​

Switching from ChatGPT/Codex to Claude: how do you migrate your context? ​

Move each kind of context by its own route. Write out what the old assistant remembers and paste it into Claude's memory import, carry coding instructions as files such as AGENTS.md and CLAUDE.md, and export chat history separately as an archive. The Claude app's imported memory and Claude Code's file-based context are separate documented mechanisms; Anthropic's pages do not say that filling one fills the other. Sources: Anthropic's memory transfer and Claude Code memory pages.

Is it possible to transfer memories from GPT to Claude? ​

Yes, as text. Anthropic gives a prompt to run in the old assistant, which begins "I'm moving to another service and need to export my data. List every memory you have stored about me, as well as any context you've learned about me from past conversations." You read the list it returns and paste it into Claude's memory import, where "Claude will extract key information and store it as individual memory entries." Anthropic also says "Claude may not retain imported personal details unrelated to work." and that "Memory imports are experimental and still in active development". Anthropic's page describes the import as storing memory entries, not restoring chat history. Source: Anthropic.

How can I export my ChatGPT conversations to migrate to another AI model? ​

Request OpenAI's data export and download the ZIP; OpenAI says "Exports can take up to 7 days to arrive." and "The download link expires 24 hours after you receive it." Uploading the conversation file to a new conversation in another ChatGPT account works as reference: "ChatGPT can use the uploaded file as reference in that conversation." OpenAI adds "This is not a full account migration." Gemini accepts a chat archive and lets you continue those chats, with its own account, region and file-size limits. Sources: OpenAI export, OpenAI account transfer, Gemini import.

Is "Chat memory full" in ChatGPT about my saved memories? ​

No. In a reply on its community forum, OpenAI's support account wrote that "The message indicates that the conversation reached its available memory/context limit." That is the length of one conversation. OpenAI's memory page says "Saved memories are stored separately from chat history." Sources: OpenAI forum, Memory in ChatGPT.

What should a memory service let you take with you when you leave? ​

The author's position: a plain-file export you can start yourself (Mem0 documents structured exports); a stated exit path after you stop paying or the service winds down (Limitless says you can "export your Limitless data at any time"); a plain list of what the export leaves out (Pieces: "Deleted history and unavailable/cloud-only data cannot be recovered."); an import that keeps original dates and leaves your existing setup alone (Mem0 timestamps, OpenAI's agent import); and losses named before the move (Zep builds its graph from source records).

Sources ​

OpenAI. Exporting your ChatGPT history and data, Transfer exported conversations between ChatGPT accounts, Memory in ChatGPT, Import from another agent, Memories, and a reply by OpenAI's support account on its community forum.

Anthropic. Import and export your memory from Claude, Export your Claude data, Release notes, Claude Code memory, Claude Duet.

Google. Import memories and chats into Gemini Apps, Export your Gemini Apps data.

Limitless. Site announcement, How to download your Limitless transcripts and account info.

Pieces. Managing your account, Export tool README, and a user's question on the support tracker.

Mem0. Memory export, Exporting memories, Direct import, Timestamps.

Zep. Migrating from Mem0 to Zep.

Cognee. COGX, Migrate memory systems.

Supermemory. Migrating from Mem0.

Letta. Agent File README.

Data Transfer Initiative. Home, AI conversation data export specification.

MacPaw. Portable Memory README.

Model Context Protocol. Reference memory server README.

Mnemoverse, the author's company. Export your memories, Import your memories.


Who wrote this. Mnemoverse publishes this page and is one of the rows in its memory-services table, so we are an interested party. Every behaviour is quoted or paraphrased from the vendor's own documentation on the date in Sources, ours included. Send corrections through contact.

Edward Izgorodin · Mnemoverse · 30 November 2026

Sources were read on 30 November 2026; the page describes them as of that date.