transcript high
Codex CLI records resumable conversation rollouts as JSONL under ~/.codex/sessions.
Where it lives
- all
~/.codex/sessionsdir
What you can do
- Set CODEX_HOME to relocate the store, or prune ~/.codex/sessions to limit retention.
Source: github.com
config with secrets high
Codex CLI can store an OpenAI API key or ChatGPT OAuth tokens in ~/.codex/auth.json (unless using the OS keyring).
Where it lives
- all
~/.codex/auth.json
What you can do
- Ensure ~/.codex/auth.json is not world-readable and not cloud-synced.
Source: github.com
This describes where Codex CLI stores data. Metadata only, never your content. Confidence: likely. Spot a mistake? Tell us.