Codex runtimes
Last updated 1 November 2026
What it is, where it lives on your Mac, and whether it’s safe to delete.
Check before deleting
Usually, but look first. The Codex app downloads its runtime again the next time it starts.
Where it is
~/.cache/codex-runtimes
What it is
The Codex app downloads the runtime it runs tools with (Node and its packages) here, plus folders of unfinished installs; it downloads them again when they are missing.
Nothing goes while the Codex app or the codex command runs, or within 14 days of use. Your sessions and settings in ~/.codex stay.
Is it safe to delete?
Usually, but look first. The Codex app downloads its runtime again the next time it starts.
How big is it?
In Terminal, this shows its size without changing anything:
du -sh "$HOME/.cache/codex-runtimes"How to remove it
- Quit com.openai.codex, codex first.
- In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
- Leave anything opened or changed less than 14 days ago (for a folder, its newest file counts). DiskCity waits that long too.
- Move only what passes these checks to the Trash.
- Empty the Trash to get the space back. Until then, you can still put things back.
What DiskCity does with it
DiskCity labels it as rebuildable and removes it only when you approve. It only suggests it once it hasn't been used for 14 days. It waits until com.openai.codex is closed.
Sources
Checked 2026-10-29.
