OpenAI Codex local log audit: 516-token cliff and zero-reasoning drops A new open-source tool, codex-local-audit, offers a read-only, offline forensic audit of local OpenAI Codex Desktop and CLI logs stored in ~/.codex/, checking subscription quota compliance against reasoning anomalies. Released in two feature-parity implementations, Node.js (audit_codex.mjs) and Python 3 (audit_codex.py), the tool flags zero-reasoning suppression where reasoning_output_tokens = 0 on flagship high/ultra requests, and checks a quantized 516-token cliff around 514..518 plus harmonics at 1034, 1552 and 2070, cross-checked against encrypted_content ciphertext byte lengths. It also inspects SQLite storage hygiene under GDPR Articles 5, 6, 15, 17 and 32, including unzeroed deleted freelist data in logs_2.sqlite and unencrypted microphone retention in dictation-history/, without reading auth.json or printing prompts, paths or account emails. Cross-platform Windows, macOS, Linux , 100% read-only, offline forensic audit tool for local OpenAI Codex Desktop / CLI ~/.codex/ logs, SQLite databases, and installed client binaries. Both implementations — zero-dependency Node.js audit codex.mjs and Python 3 audit codex.py — have full feature parity and inspect only your own local data to verify: 1. Quota Compliance: Actual 5-hour primary and 7-day secondary subscription usage vs. reasoning anomalies; 2. Zero-Reasoning Suppression: Frequency of reasoning output tokens = 0 with 0 reasoning blocks and 0 encrypted bytes on flagship high / ultra requests — including the very first model call immediately after a user prompt; 3. Quantized 516 -Token Cliff 518k - 2 Harmonics : Exact discontinuity check around 514..518 and multi-block harmonics 1034 , 1552 , 2070 , cryptographically cross-checked against encrypted content ciphertext byte lengths; 4. Silent Default & Summary Flips: Exact version/date timeline of turn context.summary detailed → none , server-pushed configuration update effort downgrades, and bundled models.json defaults inside your installed codex binary; 5. Local Storage & GDPR Hygiene Arts. 5, 6, 15, 17, 32 : SQLite foreign keys and cleanup trigger inspection thread history 1.sqlite , unzeroed deleted SQLite freelist measurement logs 2.sqlite , unencrypted local microphone retention dictation-history/ , and compiled telemetry flags codex accepted line fingerprints , disable analytics . - 100% Read-Only: Opens every SQLite database strictly in read-only mode { readOnly: true } / ?mode=ro . Never writes to, modifies, or deletes anything inside ~/.codex/ . - 100% Offline: Zero network imports, zero HTTP/DNS/WebSocket calls. - Zero Credential Access: Never reads auth.json or any token/key files. - Zero PII Output: Never prints user prompts, assistant replies, source code, project names, local file paths, or account emails. Server response id resp ... samples are omitted by default and only included if you explicitly pass --include-ids . Clone the repository or download audit codex.mjs / audit codex.py directly : git clone https://github.com/NeHumorist/codex-local-audit.git cd codex-local-audit Uses built-in node:zlib zstdDecompressSync and node:sqlite DatabaseSync . No npm install required. macOS / Linux: node audit codex.mjs Windows PowerShell : node .\audit codex.mjs Windows tip no Node 24 installed globally? : Codex Desktop already ships a local Node 24 runtime on Windows. You can invoke it directly without installing anything: php $node24 = Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua node\ \bin\node.exe" | Select-Object -First 1 -ExpandProperty FullName & $node24 .\audit codex.mjs Python 3.14+ includes compression.zstd in the standard library. On Python 3.10–3.13, run via uv https://docs.astral.sh/uv/ or install zstandard / system zstd to decompress .jsonl.zst session files: Recommended on Python 3.10–3.13 auto-provides zstandard in an isolated ephemeral env uv run --with zstandard python audit codex.py Or with Python 3.14+ / if zstandard or the zstd CLI is already installed python3 audit codex.py | Flag | Description | |---|---| | --codex-dir