‹ Catalog

Codex CLI

OpenAI

high sensitivity likely Linux · macOS · Windows

transcript high

dir may hold personal data · source code

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

json may hold secrets

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.