Where are my AI chats?
GitHub Copilot, Claude Code and Codex all keep your chats as files on your computer. This table shows where, on each system.
| Assistant | Windows | macOS | Linux |
|---|---|---|---|
| GitHub Copilot (VS Code) | %APPDATA%\Code\User\workspaceStorage\<id>\chatSessions |
~/Library/Application Support/Code/User/workspaceStorage/<id>/chatSessions |
~/.config/Code/User/workspaceStorage/<id>/chatSessions |
| Claude Code | %USERPROFILE%\.claude\projects\<project> |
~/.claude/projects/<project> |
~/.claude/projects/<project> |
| Codex | %USERPROFILE%\.codex\sessions\YYYY\MM\DD |
~/.codex/sessions/YYYY/MM/DD |
~/.codex/sessions/YYYY/MM/DD |
Details for each assistant
GitHub Copilot. One storage folder per workspace, each with a workspace.json that names the project. Chats started with no folder open are in globalStorage/emptyWindowChatSessions in the same user folder. VS Code Insiders uses Code - Insiders in place of Code. More: lost Copilot chats.
Claude Code. One .jsonl file per chat in each project folder. By default Claude Code deletes chats older than 30 days; the cleanupPeriodDays setting changes that. More: keep your Claude Code chats.
Codex. One rollout-*.jsonl file per session, by date. Archived sessions are in archived_sessions, beside sessions. If the CODEX_HOME environment variable is set, that folder is used in place of ~/.codex.
Find them all with one command
Axyome Lite is free and open source (MIT), needs no account, and only reads these files. It checks every folder above and tells you how many chats each one holds:
npx axyome-lite where
It is also a VS Code extension (Marketplace, Open VSX), with its source on GitHub and the command line on npm. To search every session and give your assistant a memory of them, see Axyome XM.
Folders as Axyome Lite looks for them on 28 November 2026 (VS Code 1.147).