Skip to content

Latest commit

 

History

52 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpa-codex-auth

Configure an OpenAI account, complete Codex OAuth, and save an add-or-replace CPA credential JSON with WebSocket support enabled.

Usage

.\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 containing totp and/or password. 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.

Build

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages