com.openai.codex
com.openai.codex is a macOS temporary cache folder used by Codex to store short-lived working data during local app or development tasks.
What is com.openai.codex?
This folder stores temporary local data for Codex on macOS. It sits under /private/var/folders, which is a standard macOS location for per-user caches and transient working files created by apps while they run. Codex is OpenAI’s coding product, available across ChatGPT, the terminal, and editor workflows, and local temporary folders like this can be used to hold downloaded assets, session data, or short-term task files during use. Users usually never need to open this folder directly because macOS and the app manage it automatically. You are most likely to encounter it when reviewing disk usage, cleanup results, or searching for files connected to Codex.
Review files before deleting with diCleaner
Inspect caches, support files, folders, and related data before deleting items on Mac.
Safety overview
Status: Mostly safe
This path is in a macOS temporary cache area, so it is not the main app bundle or your primary project files. Removing it is usually low risk when Codex is closed, but any active Codex task, local session state, or cached working data stored there may be lost and recreated later. If you still use Codex, avoid deleting this folder while the app, terminal integration, or related background work is running.
Recommendation: Keep this folder if you actively use Codex and want to avoid clearing temporary local state. If you no longer use Codex, or you need to free a small amount of space, you can remove it after quitting Codex and then reopen the app only if you want it to rebuild fresh cache data.
File path
/private/var/folders/jb/4mnygrgj01bdk1z6p5jgsl480000gn/C/com.openai.codex
Share your experience
Be the first to share your experience.