Skip to content
Where are my chats?

Where are my chats?

Every AI tool keeps its chats in its own folder on your computer. NetCodex knows where to look, and you can see it too.

On this page

You never need to find these folders yourself: NetCodex reads them for you. This page is for when you want to know where a chat lives, back it up, or check why a tool shows no chats.

In the app

In Integrations, open each platform's row: it shows whether its chats were found on this computer, how many sessions there are, the exact folder (with Open location), its warnings and what NetCodex can do with it.

Where each tool keeps its chats

ToolStatusWindowsmacOSLinuxWhat to import
Codex CLI / VS Code / DesktopCODEX_HOMEsupported
  • %USERPROFILE%\.codex\state_*.sqlite
  • %USERPROFILE%\.codex\thread_history_*.sqlite
  • %USERPROFILE%\.codex\sessions\YYYY\MM\DD\rollout-*.jsonl
  • %USERPROFILE%\.codex\archived_sessions\rollout-*.jsonl
  • %USERPROFILE%\.codex\session_index.jsonl
  • ~/.codex/state_*.sqlite
  • ~/.codex/thread_history_*.sqlite
  • ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
  • ~/.codex/archived_sessions/rollout-*.jsonl
  • ~/.codex/session_index.jsonl
  • ~/.codex/state_*.sqlite
  • ~/.codex/thread_history_*.sqlite
  • ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl
  • ~/.codex/archived_sessions/rollout-*.jsonl
  • ~/.codex/session_index.jsonl
state_*.sqlite, thread_history_*.sqlite, rollout-*.jsonl, session_index.jsonl
Claude Code CLI / VS CodeCLAUDE_CONFIG_DIRsupported
  • %USERPROFILE%\.claude\projects\<project>\<session>.jsonl
  • ~/.claude/projects/<project>/<session>.jsonl
  • ~/.claude/projects/<project>/<session>.jsonl
<session>.jsonl, <session>/subagents/agent-*.jsonl
Claude Desktop (Code tab)CLAUDE_CONFIG_DIRsupported
  • %APPDATA%\Claude\claude-code-sessions\**\local_*.json
  • %USERPROFILE%\.claude\projects\<project>\<session>.jsonl
  • ~/Library/Application Support/Claude/claude-code-sessions/**/local_*.json
  • ~/.claude/projects/<project>/<session>.jsonl
  • ~/.config/Claude/claude-code-sessions/**/local_*.json
  • ~/.claude/projects/<project>/<session>.jsonl
local_*.json (titles), <session>.jsonl (transcripts)
Claude Coworksupported
  • %APPDATA%\Claude\local-agent-mode-sessions\**\local_<id>.json
  • %APPDATA%\Claude\local-agent-mode-sessions\**\local_<id>\.claude\projects\**\*.jsonl
  • ~/Library/Application Support/Claude/local-agent-mode-sessions/**/local_<id>.json
  • ~/Library/Application Support/Claude/local-agent-mode-sessions/**/local_<id>/.claude/projects/**/*.jsonl
  • ~/.config/Claude/local-agent-mode-sessions/**/local_<id>.json
  • ~/.config/Claude/local-agent-mode-sessions/**/local_<id>/.claude/projects/**/*.jsonl
local_<id>.json, local_<id>/.claude/projects/**/*.jsonl
Claude.ai (official data export)NETCODEX_CLAUDE_AI_EXPORTsupported
  • %USERPROFILE%\Downloads\data-*.zip
  • %USERPROFILE%\Downloads\<folder>\conversations.json
  • ~/Downloads/data-*.zip
  • ~/Downloads/<folder>/conversations.json
  • ~/Downloads/data-*.zip
  • ~/Downloads/<folder>/conversations.json
data-*.zip, conversations.json
ChatGPT (official data export, imported)NETCODEX_CHATGPT_EXPORTsupported
  • %APPDATA%\NetCodex\imports\chatgpt\conversations\*.json
  • ~/Library/Application Support/NetCodex/imports/chatgpt/conversations/*.json
  • ~/.config/netcodex/imports/chatgpt/conversations/*.json
conversations.json (inside the export ZIP)
GitHub Copilot Chatsupported
  • %APPDATA%\<editor>\User\workspaceStorage\<hash>\chatSessions\*.jsonl
  • %APPDATA%\<editor>\User\workspaceStorage\<hash>\chatSessions\*.json
  • %APPDATA%\<editor>\User\globalStorage\emptyWindowChatSessions\*.json
  • ~/Library/Application Support/<editor>/User/workspaceStorage/<hash>/chatSessions/*.jsonl
  • ~/Library/Application Support/<editor>/User/workspaceStorage/<hash>/chatSessions/*.json
  • ~/Library/Application Support/<editor>/User/globalStorage/emptyWindowChatSessions/*.json
  • ~/.config/<editor>/User/workspaceStorage/<hash>/chatSessions/*.jsonl
  • ~/.config/<editor>/User/workspaceStorage/<hash>/chatSessions/*.json
  • ~/.config/<editor>/User/globalStorage/emptyWindowChatSessions/*.json
chatSessions/*.jsonl, chatSessions/*.json
GitHub Copilot CLICOPILOT_HOMEsupported
  • %USERPROFILE%\.copilot\session-state\<id>\events.jsonl
  • ~/.copilot/session-state/<id>/events.jsonl
  • ~/.copilot/session-state/<id>/events.jsonl
events.jsonl
Cline / Roo Code / Kilo Codesupported
  • %APPDATA%\<editor>\User\globalStorage\saoudrizwan.claude-dev\tasks\<id>\api_conversation_history.json
  • %APPDATA%\<editor>\User\globalStorage\rooveterinaryinc.roo-cline\tasks\<id>\api_conversation_history.json
  • %APPDATA%\<editor>\User\globalStorage\kilocode.kilo-code\tasks\<id>\api_conversation_history.json
  • ~/Library/Application Support/<editor>/User/globalStorage/saoudrizwan.claude-dev/tasks/<id>/api_conversation_history.json
  • ~/Library/Application Support/<editor>/User/globalStorage/rooveterinaryinc.roo-cline/tasks/<id>/api_conversation_history.json
  • ~/Library/Application Support/<editor>/User/globalStorage/kilocode.kilo-code/tasks/<id>/api_conversation_history.json
  • ~/.config/<editor>/User/globalStorage/saoudrizwan.claude-dev/tasks/<id>/api_conversation_history.json
  • ~/.config/<editor>/User/globalStorage/rooveterinaryinc.roo-cline/tasks/<id>/api_conversation_history.json
  • ~/.config/<editor>/User/globalStorage/kilocode.kilo-code/tasks/<id>/api_conversation_history.json
api_conversation_history.json, ui_messages.json
Cursorsupported
  • %APPDATA%\Cursor\User\globalStorage\state.vscdb
  • ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb
  • ~/.config/Cursor/User/globalStorage/state.vscdb
state.vscdb
Gemini CLIGEMINI_CLI_HOMEsupported
  • %USERPROFILE%\.gemini\tmp\<hash>\chats\session-*.jsonl
  • %USERPROFILE%\.gemini\tmp\<hash>\chats\session-*.json
  • %USERPROFILE%\.gemini\tmp\<hash>\logs.json
  • ~/.gemini/tmp/<hash>/chats/session-*.jsonl
  • ~/.gemini/tmp/<hash>/chats/session-*.json
  • ~/.gemini/tmp/<hash>/logs.json
  • ~/.gemini/tmp/<hash>/chats/session-*.jsonl
  • ~/.gemini/tmp/<hash>/chats/session-*.json
  • ~/.gemini/tmp/<hash>/logs.json
session-*.jsonl, session-*.json, logs.json
ContinueCONTINUE_GLOBAL_DIRsupported
  • %USERPROFILE%\.continue\sessions\*.json
  • ~/.continue/sessions/*.json
  • ~/.continue/sessions/*.json
<session>.json
AiderNETCODEX_AIDER_PATHSsupported
  • <repo>\.aider.chat.history.md
  • <repo>/.aider.chat.history.md
  • <repo>/.aider.chat.history.md
.aider.chat.history.md
OpenCodeOPENCODE_DATA_DIR, XDG_DATA_HOMEsupported
  • %USERPROFILE%\.local\share\opencode\opencode.db
  • %USERPROFILE%\.local\share\opencode\storage\session\<projectID>\<sessionID>.json
  • ~/.local/share/opencode/opencode.db
  • ~/.local/share/opencode/storage/session/<projectID>/<sessionID>.json
  • ~/.local/share/opencode/opencode.db
  • ~/.local/share/opencode/storage/session/<projectID>/<sessionID>.json
opencode.db, storage/session|message|part/*.json
Google Antigravitybest effort
  • %USERPROFILE%\.gemini\antigravity\conversation_summaries.db
  • %USERPROFILE%\.gemini\antigravity\conversations\*.db
  • ~/.gemini/antigravity/conversation_summaries.db
  • ~/.gemini/antigravity/conversations/*.db
  • ~/.gemini/antigravity/conversation_summaries.db
  • ~/.gemini/antigravity/conversations/*.db
conversation_summaries.db, conversations/*.db
Traeencrypted, not supported
  • %APPDATA%\Trae\ModularData\ai-agent\database.db
  • %APPDATA%\Trae CN\ModularData\ai-agent\database.db
  • ~/Library/Application Support/Trae/ModularData/ai-agent/database.db
  • ~/Library/Application Support/Trae CN/ModularData/ai-agent/database.db
  • ~/.config/Trae/ModularData/ai-agent/database.db
  • ~/.config/Trae CN/ModularData/ai-agent/database.db
Encrypted: cannot be exported.
Windsurfencrypted, not supported
  • %USERPROFILE%\.codeium\windsurf\cascade\*.pb
  • ~/.codeium/windsurf/cascade/*.pb
  • ~/.codeium/windsurf/cascade/*.pb
Encrypted: cannot be exported.

<config> is ~/Library/Application Support on macOS and ~/.config on Linux. Trae and Windsurf encrypt their chats, so NetCodex can show where they are but cannot export them. Chats on claude.ai are not on your computer: request the official data export in claude.ai and keep the downloaded file in Downloads.

Your chats and your accounts

Switched accounts and your Claude Code chats are gone? They are still on your computer (.claude\projects) and belong to no account. The terminal (claude --resume) and VS Code always show them. Claude Desktop, instead, only shows in its Code tab the chats that have a card in the active account and organization.

Codex does not have this problem: the terminal, the desktop app and VS Code share one history (.codex), even across accounts.

To see them in VS Code

  1. File → Open Folder and choose exactly the chat's folder. In a multi-folder workspace it must be the first one.
  2. Open the Claude Code panel.
  3. Click Past conversations and pick the chat, or search for it.

To see them in Claude Desktop

In the NetCodex app, open Integrations → Claude accounts → Bring to my current account. NetCodex lists the chats with no card in your current account; the ones you deleted in Claude Desktop start unticked. Open in Claude Desktop uses the official route (claude --desktop --resume). To bring several at once, quit Claude Desktop and click Add to my current account: NetCodex adds a copy of the card, never replaces an existing one or touches your chats, and you can Undo. Then open Claude Desktop.

Claude Code by folder

The Claude Code extension for VS Code lists in Past conversations only the chats of the folder you opened (the first one, if the workspace has several), or of your home folder when no folder is open. claude --resume in a terminal does the same with the terminal's folder. Your other chats are still there: they belong to other folders.

NetCodex groups those chats by folder in Projects, together with every other agent's. In a project, Open project in… ▾ opens the folder in VS Code (or another editor), a terminal or the file manager, and each session has its own Continue.

Pick up a chat in the terminal

Every Claude Code and Codex session comes with the exact command that resumes it in its own folder: on the Overview, in Sessions and in the Continue ▾ menu (Copy the command). Copy it and paste it in PowerShell or a terminal, or let Continue open the terminal for you (Settings › Terminal and editor). Claude Code chats from the CLI, VS Code and Claude Desktop all resume this way, because they share one history.

  • Windows (PowerShell)

    cd 'D:\projects\shop' ; claude --resume 5f0c2a8e-1111-4222-8333-444444444444
  • macOS and Linux

    cd '/Users/ana/projects/shop' && claude --resume 5f0c2a8e-1111-4222-8333-444444444444
  • Codex

    codex resume -C 'D:\projects\shop' 019a2b3c-4d5e-7f60-8a9b-0c1d2e3f4a5b
  • The cd matters: claude --resume <id> finds a chat from the folder it ran in, so run it there.
  • The folder goes in single quotes. A quote inside the name is doubled in PowerShell ('O''Brien') and written '\'' in macOS and Linux shells. NetCodex does this for you.
  • The \\?\ prefix is removed: the command uses the real path.
  • If the folder no longer exists, NetCodex says so and gives just claude --resume <id> together with the folder, so you can recreate it and run the command there.
  • Codex takes the folder with -C, so its command has no cd.

Agent workspaces

Agents create folders of their own for chats that have no project. NetCodex recognizes them and, in Proyectos (Projects), groups them under Agent workspaces instead of listing each one as a project:

GroupExample folder
Codex · Daily workspaces (grouped by day)Documents\Codex\2026-10-26\<chat>
Claude · ScratchAppData\Roaming\Claude\scratch-workspaces\…\scratch-<date>-<id>
Claude Cowork · Sessions (not on this computer)/sessions/<name>
Worktrees (under their repository's project)<repo>\.claude\worktrees\<name>

Convertir en proyecto (Make a project) next to a workspace turns it into a normal project: NetCodex indexes its files and it moves to your project list. Cowork sessions run in a virtual machine, so they cannot be converted.