A Codex skill for reporting local Codex token usage from local SQLite and JSONL logs.
The skill emphasizes:
- activity buckets such as planning, code edits, git, checks, browser work, and exploration
- fresh versus cached input tokens
- output and reasoning tokens
- common ways to reduce unnecessary token spend
Copy the usage/ folder into your local Codex skills directory:
mkdir -p ~/.codex/skills
cp -R usage ~/.codex/skills/usageThen restart or refresh Codex so the skill list reloads.
Invoke the skill in Codex with:
$usage
You can also ask natural-language questions such as:
What am I spending Codex tokens on?
This skill is read-only. It inspects Codex logs on your local machine and does not upload logs or token data anywhere.
The activity buckets are approximate heuristics. Codex records token usage at turn/session-log granularity, so the report is useful for understanding broad patterns, not exact per-command billing.
Run the test suite with:
python3 -m unittest discover -s usage/tests