Diagnose and fix Codex CLI login on macOS. Check ChatGPT OAuth vs API-key mode, find the active CLI, and relaunch the official login locally.
By chatting or signing in you agree to the Terms and chat-message logging (revocable in History).