Model Usage
Use this skill to report model-level usage cost from local CodexBar data.
Workflow
- Load cost data from
codexbar cost --format jsonor from a saved JSON file. - Choose
currentfor the most recent model signal, orallfor aggregate breakdown. - Emit text or JSON output for downstream planning docs.
- Feed this output into
usage-watcherandskill-cost-credit-governorwhen needed.
Current Model Summary
python3 "$CODEX_HOME/skills/model-usage/scripts/model_usage.py" \
--provider codex \
--mode current
Full Model Breakdown
python3 "$CODEX_HOME/skills/model-usage/scripts/model_usage.py" \
--provider codex \
--mode all \
--format json \
--pretty
File/Stdin Input
python3 "$CODEX_HOME/skills/model-usage/scripts/model_usage.py" \
--provider claude \
--input /tmp/codexbar-cost.json \
--mode all
Guardrails
- Use local input only in this lane.
- Do not commit raw usage exports that include personal metadata.
- Keep derived summaries in JSON/text artifacts under
.tmp/for reproducible review.
Scope Boundary
Use this skill only for model-level usage summarization.
Do not use this skill for billing exports, payment actions, or account mutation.
References
references/codexbar-cli.md