
Manage local Codex accounts without leaving Raycast. Add, remove, search, and switch accounts, then check the remaining 5-hour and weekly usage for each account.
This extension uses codex-auth for account management. Authentication remains under the control of Codex and codex-auth; the extension does not read, display, or copy tokens from ~/.codex/auth.json.
codex-auth@loongphy/codex-auth 0.3.0 or newerInstall the stable version of codex-auth globally:
npm install --global @loongphy/codex-auth@0.3.0
If the extension cannot find the executable, open the extension settings and select it. The usual path for Apple Silicon Homebrew installations is /opt/homebrew/bin/codex-auth.
Open Switch Codex Account in Raycast. The action panel lets you:
Switching accounts updates ~/.codex/auth.json. Restart a running Codex CLI or Codex app session if it does not pick up the new account automatically.
When the active account is removed, codex-auth selects another saved account. Removing the final account also removes the local Codex login.
Current via OpenAI asks codex-auth to retrieve current usage with the saved ChatGPT authentication. It provides fresher information but makes a network request when the extension refreshes.
Local Cache Only reads the local Codex and codex-auth cache without making a remote request. It is faster and is the default for the optional menu bar command, but the displayed usage may be several hours old.
Current usage relies on an internal ChatGPT endpoint used by codex-auth. It is not a documented public API and may change without notice. Local cached usage remains available when a current refresh cannot be completed.
codex-auth is an independent, open-source MIT-licensed CLI and is not bundled with this extension. Users install it separately and authenticate through the Codex login flow. The extension does not ask users to paste API keys or account tokens.
The optional current-usage refresh asks codex-auth to access an internal ChatGPT usage endpoint with the user's existing local authentication. That endpoint is not a documented public API, may change or stop working, and remains subject to OpenAI's Terms of Use. The extension does not bypass usage limits or provide access beyond the signed-in account.
The extension invokes the locally installed codex-auth executable and reads account metadata from ~/.codex/accounts/registry.json. It does not read, display, or copy authentication tokens stored in ~/.codex/auth.json. When the user selects current usage, codex-auth performs the network request with the user's existing local authentication.
This extension is published under the MIT License used by the Raycast extensions repository. See THIRD_PARTY_NOTICES.md for codex-auth attribution.
Add, remove, switch, and view usage for saved Codex accounts
Show the active Codex account usage in the menu bar
codex-auth and local cached usage.codex-auth when the executable is unavailable.