This project is a local companion overlay for Codex Desktop on Windows.
The app reads:
%USERPROFILE%\.codex\.codex-global-state.jsonfor/petwindow bounds.%USERPROFILE%\.codex\auth.jsonfor the local Codex access token.%USERPROFILE%\.codex\logs_2.sqliteorlogs_1.sqlitefor optional local fallback usage events.
By default, live usage calls are made to:
https://chatgpt.com/backend-api/wham/usage
Disable live usage with:
.\bin\powershell\Install.ps1 -NoLiveUsage
.\bin\powershell\Start.ps1 -NoLiveUsageThe settings UI starts a temporary HTTP server bound to 127.0.0.1. Each launch
generates a random session token and opens the browser with that token. API
requests to /api/settings and /api/defaults are rejected unless they include
the token in the query string or the X-Codex-Pet-Settings-Token header.
This guard is meant to reduce blind localhost requests from unrelated browser
pages while the settings UI is open. The settings server still writes only the
local settings.json file and does not expose a remote network listener.
Root .bat files are user-friendly launchers around the PowerShell scripts.
They do not replace the PowerShell implementation. The installer writes an
install marker into the target directory, and Uninstall.ps1 -RemoveFiles
requires that marker before recursively deleting the install directory.
Only install from a source you trust. The scripts use PowerShell
-ExecutionPolicy Bypass so they can run unsigned local project scripts without
requiring a machine-wide policy change.
Do not paste your auth.json, access token, or full local Codex logs into public issues.