Support custom storage path for Codex Desktop Chats/projectless workspaces
What version of the Codex App are you using (From “About Codex” dialog)?
26.519.41501
What subscription do you have?
GPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26300.0 x64
What issue are you seeing?
Codex Desktop currently appears to save projectless chats/workspaces under a default path such as:
C:\Users\<user>\Documents\Codex\<date>\<conversation>
On my machine, my actual Documents location is not this path. I would like to store Codex chats and generated projectless conversation files under a custom directory, for example:
C:\Users\<user>\Data\Codex
However, I could not find a supported config.toml option for changing the Chats/session storage path.
What steps can reproduce the bug?
Feedback ID: 019e629e-1e2e-7012-adb1-0206075bc057
When starting a conversation without opening a project, Codex Desktop creates/saves conversation workspace files under the default Documents-based Codex directory.
- This is inconvenient when: The user's Windows Documents folder has been redirected elsewhere.
- The user wants Codex data stored on another drive or under a dedicated data directory.
- The user wants all Codex chats, generated files, and projectless workspaces in a predictable custom location.
- The default path is not suitable for backup, sync, privacy, or disk organization reasons.
What is the expected behavior?
Codex should provide a supported way to configure where local Chats/projectless conversation workspaces are stored.
For example, one of these would work:
chat_storage_dir = "C:\\Users\\<user>\\Data\\Codex\\Chats"
or:
projectless_workspace_dir = "C:\\Users\\<user>\\Data\\Codex\\Workspaces"
or a Codex Desktop settings UI option such as:
Default chat/workspace storage location
Additional information
I understand that CODEX_HOME may move the broader Codex home directory, but that is a global data/config relocation. It would be useful to have a narrower, documented setting specifically for Codex Desktop Chats/projectless workspace storage.
14 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same problem as there https://github.com/openai/codex/issues/20880
looks like definitely an architectural design flaw, starting to annoying already on daily basis manually cleaning up those undesirables residues leftovers
When is this going to be applied? It is very annoying to manually have to create the new folders every time you want to create a new project.
My ~/Documents folder is synced with iCloud, so Codex projectless workspaces under ~/Documents/Codex trigger unwanted uploads/downloads. Please add a setting to change this base directory.
Do something @kkahadze-oai
@etraut-openai Some of the issues you duped to this one have a slightly different scope. This one is about the default folder for project-less workspaces. The others are about the default folder for new project workspaces created via 'Add new project > Start from scratch'.
Arguably one setting could cover both but I wanted to flag since this issue is now missing the 'new project' feature scope.
I couldn't believe this wasn't an option but after digging through settings I gave up and found this and the several duplicate issues.
For now, my solution is to do everything in projects with folders I created manually until the location of
~/Documents/Codexcan be configured. 😂Adding a current Windows data point and clarifying the new project scope.
Environment
26.721.4979.0Observed behavior
Creating a project with Add new project → Start from scratch still creates it under the Windows Documents directory (for example,
C:\Users\<user>\Documents\...). The user needs every newly generated project to default to another drive, specifically:A global
AGENTS.mdinstruction cannot solve this reliably: the Desktop app chooses and creates the workspace directory before the agent operates in that workspace. Inspection of the current packaged Desktop code also shows the default workspace-root path is derived from Electron'sapp.getPath("documents"), and I could not find a supported persistent setting that overrides it.Requested behavior
Please add a Codex Desktop setting such as Default new-project directory that:
D:\Projects\Codex.C:or Documents; require explicit user consent before using a fallback.This is important on machines where
C:is reserved for the OS or has limited capacity, and where projects must live on a dedicated development drive.I can reproduce the same underlying projectless-workspace failure on macOS through the ChatGPT/Codex Chrome side panel.
Additional Chrome side-panel reproduction
~/Documents/Codexis a symbolic link to an existing, writable directory.Projectless thread directory must be a real directoryExpected
Actual
The current task is omitted from the Chrome picker. The fallback projectless creation route rejects the symlink and cannot create the task.
Environment
The Chrome extension/native browser connection itself works: browser tabs can be discovered and controlled. The failure is in task selection/projectless workspace creation, not native-host connectivity.
This appears to add a Chrome side-panel impact to #24534 and the exact symlink failure described in duplicate #24734.
having the same issue.
is there any idea what to do with existing threads?
For now, I just archive and then delete sessions over 30 days stale, until all sessions not in projects are deleted.
+1 from Windows Codex Desktop 26.818.8289.0. This request also needs to cover canonical session history, not only generated projectless workspace files:
In an agent-heavy workflow, parent and subagent rollout files can grow by hundreds of gigabytes and exhaust the Windows system drive while another NTFS drive has ample capacity.
CODEX_HOMEmoves the broader state/config surface, and manual NTFS junctions are an unsupported workaround that makes migration, recovery, updates, and missing-drive behavior harder to reason about.Please include:
This also connects to #22593, where forked sessions amplify on-disk history, and #20864, where large session stores hurt Desktop performance.
You really waited that long so I push the button to cancel my Pro subscription 😁
<img width="475" height="127" alt="Image" src="https://github.com/user-attachments/assets/a6a9792f-36ca-4ecc-bcd0-8e4000376624" />
The today's update v.26.820.60940
<img width="469" height="139" alt="Image" src="https://github.com/user-attachments/assets/dcc32120-33a2-4ce8-b395-57d07afe1ed7" />