Binary name: codex-account
Python entry point: codex_account_manager.cli:main
Save current active ~/.codex/auth.json as a named profile.
Run isolated login flow and persist the resulting auth as profile.
List saved profiles and metadata.
Show active account hint/account ID from current auth.
Switch active auth file to selected profile, optionally restarting Codex app.
Rename profile directory and metadata.
Delete one profile.
Run command with isolated profile CODEX_HOME (profile-homes/<name>).
If no command is passed, runs resolved codex CLI.
Fetch usage per local profile and optionally watch-refresh.
Alias wrapper currently supporting local scope.
These call codex-auth directly if available, otherwise npx -y @loongphy/codex-auth.
Advanced status summary.
Report local desktop runtime diagnostics for the packaged Electron shell.
JSON fields include:
python: availability, version, path, and support statuscore: installed/version/command path details forcodex-accountui_service: current local service host/port/token/health stateerrors: normalized actionable runtime failures
Advanced login wrapper.
Advanced account list.
Advanced switch.
Import auth material into advanced registry.
Remove advanced managed accounts.
Configure advanced service mode and thresholds.
Run advanced daemon in watch/once mode.
Run advanced cleanup.
Raw passthrough to codex-auth.
Start local web UI. Default detached background mode.
Run the optional Electron desktop shell from a source checkout.
ui-service <start|stop|restart|status> [--host H] [--port P] [--no-open] [--interval S] [--idle-timeout SEC]
Manage background UI process.
Configure startup integration:
- macOS: LaunchAgent plist
- Windows: Scheduled Task
- Linux: systemd user service or XDG autostart fallback
Manage local auto-switch behavior and trigger manual one-shot switch selection.
Helper command that points to UI notification testing endpoint.
- Returns non-zero on validation failures, missing dependencies, command failures, and failed switches.
- JSON modes typically return structured payloads for integration.
Hidden/Internal UI Flags
Defined for internal service process orchestration:
ui --serveui --token <value>- legacy hidden compatibility flags are intentionally rejected (
--dev,--build,--check,--no-install).