codex-auth list
May 16, 2026 ยท View on GitHub
Usage
codex-auth list
codex-auth list --active
codex-auth list --live
codex-auth list --api
codex-auth list --skip-api
Behavior
- Lists stored accounts from
registry.json. - Syncs the current
auth.jsoninto the registry before rendering when the current auth file is parseable. - Shows selectable row numbers using the same ordering as
switchandremove. - Groups rows by email when the same email owns multiple account snapshots.
- Shows
ACCOUNT,PLAN,5H,WEEKLY, andLAST ACTIVITY.
Refresh Modes
- Default mode performs foreground usage and account-name API refresh.
--activerefreshes usage only for the active account before rendering and skips account-name API refresh. Other rows use stored registry snapshots.--apiis accepted as an explicit equivalent to default mode.--skip-apiforbids remote API calls for this command.--livekeeps refreshing the terminal view and requires a TTY.
When local-only refresh is active, only the active account can be updated from local rollout files. Non-active rows use the stored registry snapshot.
Output Notes
- Singleton rows with aliases render as
alias(email). - Singleton rows with both alias and account name render as
alias(account name, email). - Grouped rows keep the shared email in the header; child rows with both alias and account name render as
alias(account name). - Usage cells show remaining percent and reset time when that data is known.
- Remote refresh failures can render row overlays such as
401,403,TimedOut, orMissingAuth. LAST ACTIVITYis based on the last stored usage update time.- Shared table layout policy is documented in docs/table-layout.md.