π¦ ClawHub
Codex Profiler
by @deadlysilent
Manage OpenAI Codex profiles via Telegram commands for usage checks and OAuth token refresh with queued safe apply and progress updates.
π‘ Examples
/codex_usage β selector (default / all / discovered profiles)/codex_usage Auth
/codex_auth β selector (profiles)/codex_auth /codex_auth finish (helper only; profile/order mutation must use gateway-native commands)π Tips & Best Practices
~/.openclaw/agents/main/agent/auth-profiles.json by default.auth-profiles.json; auth.json is legacy compatibility and should not be used as primary state.auth-profiles.json, leftover legacy files, or stale runtime cooldown) before assuming model fallback bugs.accountId across two profile labels is not automatically a defect. In this environment, multiple labels can map to the same workspace/account identity while still operating correctly. Treat it as healthy when both profiles are auth-valid and usable in /codex_usage; investigate only when auth failures or routing failures appear.https://chatgpt.com/backend-api/wham/usage.401 as auth_not_accepted_by_usage_endpoint with a clear hint, while still returning local profile health.summary, formatted_profiles, and suggested_user_message for cleaner slash-command formatting./codex_usage (single line per profile):π’ \%profile%\ β 5h %5h_left% | week %week_left% | r5 %5h_reset% | rw %week_reset%
- Use π when limited and π΄ when unusable/auth-invalid.
- No preface, no table, no trailing summary unless explicitly requested.
openclaw models auth ... / openclaw models auth order ...) with mandatory preflight + verify.codex_auth.py status --profile remains useful for per-profile helper status checks.TERMINAL
clawhub install codex-profiler