codexwatch

v1.0.2
io.github.psychofict/codexwatch Checked 1 day ago Published 28 days ago

OpenAI Codex usage from your local logs: tokens, API-equivalent cost and plan limits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

usage_summary

Codex token usage and its API-equivalent dollar value for a period: totals, cache hit rate, and the top models and projects. Dollar figures are estimates at OpenAI API prices; tokens of models with no published price are counted separately.

ParameterTypeDescription
periodstringtoday, the last 7 or 30 days, this calendar month, or all history

plan_limits

Where the ChatGPT plan's Codex limits stand now: each window's percent used, reset time, burn rate per hour and projected time it fills, read from the newest session log. With codexhop installed, also every saved account's last reading and the account with the most 5-hour room.

quota_forensics

What each percentage point of the plan cost in API-equivalent dollars and tokens, per window and per day, plus rises in a window that the local logs cannot explain (usage from another machine, ChatGPT itself or cloud tasks, or a metering change).

ParameterTypeDescription
windowstringonly windows of this length; both when omitted

sessions

The most recent Codex sessions with title, project, models, turns, tokens and dollar value.

ParameterTypeDescription
limitinteger

daily

Tokens and API-equivalent dollars per local day, oldest first, with empty days included.

ParameterTypeDescription
daysinteger

budget_status

The user's codexwatch budgets (dollar, token or plan-window caps) with how much of each is used and whether it is near or over its limit.