# Codex temporary files

Source: https://diskcity.app/folders/agents-codex-tmp

**Safe to delete.** Yes. Nothing to bring back: Codex makes new temporary files as it runs.

## What it is

Codex unpacks plugin marketplaces and makes temporary git checkouts here while it works; it makes them again when it needs them.

Only the .tmp folder, untouched for a week. Sessions, databases, settings, sign-in and installed plugins live elsewhere in ~/.codex.

## Where it is

- `~/.codex/.tmp`

## How big is it?

```sh
du -sh "$HOME/.codex/.tmp"
```

## How to remove it

1. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
2. Leave anything opened or changed less than 7 days ago (for a folder, its newest file counts). DiskCity waits that long too.
3. Move only what passes these checks to the Trash.
4. 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 when you approve, or on its own if you turn on Autopilot. It only suggests it once it hasn't been used for 7 days.

## Sources

- https://github.com/openai/codex

Checked 2026-10-29.
