Configure an OpenAI account, complete Codex OAuth, and save an add-or-replace CPA credential JSON with WebSocket support enabled.
.\cpa-codex-auth.exe --email user@example.com --password "current-password" --totpsecret "CURRENT_TOTP_SECRET"--password and --totpsecret are optional. Missing values are requested interactively when the account requires them.
Additional flags:
--proxy: HTTP or SOCKS proxy URL used by authentication and the headless Sentinel fallback.--email,-e: OpenAI account email address.--password,-p: OpenAI account password.--totpsecret,-t: OpenAI account TOTP secret.--output,-o: credential output directory. Defaults to the current directory.--rotate,-r: comma-separated list containingtotpand/orpassword. Only the selected credentials are rotated; when both are selected, TOTP is always rotated before the password. Finish OAuth with the resulting credentials.
The saved filename is stable (codex-<email>-plus.json), so running the command again replaces the existing CPA credential atomically.
go build -o cpa-codex-auth.exe .Every push to main uses GoReleaser to replace the snapshot prerelease with archives for Windows, macOS, and Linux on amd64 and arm64. The release also includes checksums.txt, and the snapshot tag always points to the commit used for the latest build.