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

Model Usage

  • 16 installs
  • 869 repo stars
  • Updated June 8, 2026
  • beita6969/scienceclaw

model-usage is a Claude skill that uses the CodexBar CLI to summarize per-model usage cost for Codex or Claude from local cost logs.

About

This skill uses the CodexBar CLI to summarize per-model usage cost from local cost logs. It reports either the current (most recent) model or a full breakdown for Codex or Claude, via a bundled Python script that reads CodexBar cost JSON. Developers use it for scriptable per-model cost summaries.

  • Summarize per-model usage cost from CodexBar's local cost logs
  • Supports current-model or full-model breakdown for Codex or Claude
  • Outputs text or JSON via a bundled Python script

Model Usage by the numbers

  • 16 all-time installs (skills.sh)
  • Ranked #368 of 550 CLI & Terminal skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

model-usage capabilities & compatibility

Free; requires the CodexBar CLI installed via brew on macOS.

Capabilities
mcporter
Use cases
data analysis
Platforms
macOS
Pricing
Free
From the docs

What model-usage says it does

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude
SKILL.md
Get per-model usage cost from CodexBar's local cost logs.
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/beita6969/scienceclaw --skill model-usage

Add your badge

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

Listed on Skillselion
Installs16
repo stars869
Last updatedJune 8, 2026
Repositorybeita6969/scienceclaw

What it does

Summarize per-model cost usage for Codex or Claude from CodexBar's local cost JSON, as text or JSON.

Who is it for?

Scriptable per-model cost summaries for Codex or Claude from CodexBar cost JSON.

When should I use this skill?

You need model-level usage or cost data from CodexBar, current model or full breakdown.

What you get

Produces a per-model cost summary as text or JSON from CodexBar cost logs.

  • Per-model cost summary (text or JSON)

By the numbers

  • Supports 2 modes (current, all)
  • Supports 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

Forks & variants (1)

Model Usage has 1 known copy in the catalog totaling 5 installs. They canonicalize to this original listing.

FAQ

Which providers does it support?

Codex and Claude, via CodexBar's local cost logs.

What OS does it require?

macOS (darwin); Linux CLI support is a documented TODO.

CLI & Terminalmonitoring

This week in AI coding

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

unsubscribe anytime.