Reset Rescue
PLUGINRedeems expiring OpenAI Codex rate-limit reset credits across every openai-codex account in the active Ulpi profile's credential pool.
by bwoliveira · v0.2.0
What it does
Redeems expiring OpenAI Codex rate-limit reset credits across every openai-codex account in the active Ulpi profile's credential pool, with two Ulpi one-shot cron attempts 10 and 4 minutes before expiry and success confirmed by backend readback. Includes opt-in early redemption at low weekly quota, per-account overrides, Ulpi channel notices, a Desktop status-bar chip and popup, and dashboard settings.
Account labels and domains are masked by default. Disclosure — reads every openai-codex row of the profile's credential pool with Ulpi's read_credential_pool helper; in a named profile with no Codex rows of its own that helper falls back read-only to the root profile's accounts, so the plugin then redeems the root profile's credits.
It holds each account's access token in memory only and sends it only to https://chatgpt.com (redirects refused) with Codex CLI client headers (User-Agent codex-cli, ChatGPT-Account-ID, x-openai-internal-codex-residency, the same headers Ulpi's own usage fetcher sends) to list reset credits (/backend-api/wham/rate-limit-reset-credits), read usage (/backend-api/wham/usage) and consume credits (/backend-api/wham/rate-limit-reset-credits/consume); the consume POST spends an owned credit through a private, undocumented endpoint. An empty pool falls back to the active sign-in through credentialed_provider_request.
On HTTP 401 it runs ulpi auth refresh openai-codex <entry>, so Ulpi may rotate and save that account's tokens; the plugin itself never reads or writes credential files or stores or logs tokens. Running ulpi reset-rescue ensure, or turning on the Desktop status-bar chip (off by default; its first status check arms the jobs), writes five launcher scripts to <ULPI_HOME>/scripts/ and creates no-agent Ulpi cron jobs (a recurring scan plus one-shot rescue, backup and reminder jobs per credit); these run the ulpi CLI with the inherited environment minus approval-bypass variables.
It sends notices with ulpi send to notif
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve