Skip to content

v6.27.0

Choose a tag to compare

@ndycode ndycode released this 02 Oct 06:38
· 67 commits to main since this release

https://www.npmjs.com/package/oc-codex-multi-auth/v/6.27.0

npx oc-codex-multi-auth@6.27.0 install

Added

  • spendCredits (or CODEX_AUTH_SPEND_CREDITS=1, default off) opts the rotation in to spending Codex credit balances once every account entitled to the model is out of plan quota. Credit candidates respect modelAccountPools strict/preferred pools and are ordered by largest balance; balances come from /wham/usage and are refreshed by x-codex-credits-* response headers. A refused credits turn is parked until the quota reset (default 10 minutes), a toast announces when a request is running on paid credits, and the TUI status rotation gains a credits screen listing funded accounts. (#286, thanks @Nowaker)

Fixed

  • limits — CLI, codex-limits, and the TUI quota view — now names the cached accounts it can no longer read: a dead refresh token or an auth-failure cooldown keeps the last known figures under a clear error line, drops the account out of pool totals, and exits nonzero, while timeouts, 429s, and 5xx responses no longer mark credentials dead and a stale reading can't erase a newer failure. (#285, thanks @Nowaker)
  • A credits refusal is remembered only on an authoritative usage-limit signal — a transient 429, overload, or concurrency throttle no longer parks a funded account, and a refused turn can no longer be billed a second time by the same request's short retry. limits --json keeps credits in the raw codex-limits form ("62500", unlimited, available) instead of the grouped display string. (#286)
  • Decoded usage-error messages drop terminal control characters, so a hostile or corrupted error body can no longer inject escape sequences into limits output. (#285)