Agent skill · Data & Analytics

model-usage

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

SafeAI-Lab-Xgithub.com/SafeAI-Lab-XGitHub ↗
claude-codeships scripts
Install
npx skills add SafeAI-Lab-X/ClawKeeper --skill model-usage --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 2 KB
Bundled scripts: yes
Path: legacy/clawkeeper-watcher/skills/model-usage/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,034
Language: TypeScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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. ```bash 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: ```bash 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}/scri

What's inside
Steps it walks through
  1. Overview
  2. Quick start
  3. Current model logic
  4. Inputs
  5. Output
  6. References
Ships with 3 files
  • references/codexbar-cli.md
  • scripts/model_usage.py
  • scripts/test_model_usage.py
Commands it runs
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
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
More from ClawKeeper
All skills →
About this skill
What does the model-usage skill do?

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

How do I install it?

Run `npx skills add SafeAI-Lab-X/ClawKeeper --skill model-usage --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From SafeAI-Lab-X/ClawKeeper, a repository with 1,034 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going