Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Model Usage

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

model-usage is a Claude skill that summarizes per-model usage cost from CodexBar's local cost logs for Codex or Claude.

About

model-usage is a skill that summarizes per-model usage cost from CodexBar's local cost logs for Codex or Claude. It supports a current mode (the most recent model) and an all mode (a full per-model breakdown), and can read the cost JSON from the codexbar CLI, a file, or stdin. A developer uses it to get a scriptable per-model cost summary from CodexBar output.

  • Summarizes per-model AI usage cost from CodexBar's local cost logs
  • Two modes: current (most recent model) and all (full per-model breakdown), for Codex or Claude
  • Reads codexbar cost JSON via CLI, a file, or stdin

Model Usage by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #410 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

model-usage capabilities & compatibility

Free; requires the CodexBar CLI installed locally.

Capabilities
cost reporting · usage summary
Use cases
token optimization
Platforms
macOS
Pricing
Free
From the docs

What model-usage says it does

Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.
SKILL.md
Values are cost-only per model; tokens are not split by model in CodexBar output.
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill model-usage

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Summarize per-model AI usage cost from CodexBar local cost logs for Codex or Claude.

Who is it for?

Getting a scriptable per-model AI cost summary from CodexBar's local cost JSON.

Skip if: Token-level breakdowns per model (tokens are not split by model in CodexBar output) or systems without CodexBar installed.

When should I use this skill?

You are asked for model-level usage/cost data from codexbar or need a scriptable per-model summary from codexbar cost JSON.

What you get

A text or JSON summary of cost per model, for the current model or all models, for Codex or Claude.

  • Per-model cost summary (text or JSON)

By the numbers

  • 2 modes (current, all)
  • 2 providers (codex, claude)

Files

SKILL.mdMarkdownGitHub ↗

Model usage

Overview

Get per-model usage cost from CodexBar's local cost logs. Supports "current model" (most recent daily entry) or "all models" summaries for Codex or Claude.

TODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.

Quick start

1) Fetch cost JSON via CodexBar CLI or pass a JSON file. 2) Use the bundled script to summarize by model.

python {baseDir}/scripts/model_usage.py --provider codex --mode current
python {baseDir}/scripts/model_usage.py --provider codex --mode all
python {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty

Current model logic

  • Uses the most recent daily row with modelBreakdowns.
  • Picks the model with the highest cost in that row.
  • Falls back to the last entry in modelsUsed when breakdowns are missing.
  • Override with --model <name> when you need a specific model.

Inputs

  • Default: runs codexbar cost --format json --provider <codex|claude>.
  • File or stdin:
codexbar cost --provider codex --format json > /tmp/cost.json
python {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all
cat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current

Output

  • Text (default) or JSON (--format json --pretty).
  • Values are cost-only per model; tokens are not split by model in CodexBar output.

References

  • Read references/codexbar-cli.md for CLI flags and cost JSON fields.

Related skills

FAQ

Which providers does model-usage support?

Codex and Claude, via the codexbar cost --provider flag.

Can it split tokens per model?

No. Values are cost-only per model; tokens are not split by model in CodexBar output.

CLI & Terminalmonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.