Korta Model Usage

v1.0.0

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. Trig...

0· 80·1 current·1 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for landercortazarromero/korta-model-usage.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Korta Model Usage" (landercortazarromero/korta-model-usage) from ClawHub.
Skill page: https://clawhub.ai/landercortazarromero/korta-model-usage
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required binaries: codexbar
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install korta-model-usage

ClawHub CLI

Package manager switcher

npx clawhub@latest install korta-model-usage
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description ask for per-model usage from CodexBar and the skill requires the codexbar binary, provides a script that parses codexbar cost JSON, and documents codexbar CLI flags — all are proportionate and expected.
Instruction Scope
SKILL.md and the bundled script only run the codexbar CLI (or accept a JSON file/stdin) and parse local cost JSON; they do not reference unrelated files, environment variables, or external endpoints in the skill files.
Install Mechanism
Install spec uses a Homebrew cask from the tap 'steipete/tap' (steipete/tap/codexbar). Homebrew casks are reasonable for CLI install, but this is a third-party tap — verify the tap/maintainer before installing.
Credentials
No environment variables, credentials, or config paths are requested. The script only calls codexbar and reads JSON input from codexbar, a file, or stdin — proportions are appropriate for the stated task.
Persistence & Privilege
Skill does not request permanent/always-on presence and does not modify other skills or global agent settings. It only invokes a CLI and runs a local Python script.
Assessment
This skill appears coherent and limited to parsing CodexBar cost JSON. Before installing: 1) Confirm the codexbar Homebrew tap (steipete/tap) is from a trusted maintainer — third-party taps can install arbitrary binaries. 2) Review or run the codexbar CLI separately to ensure it behaves as expected (it will run locally and may read local logs). 3) If you prefer not to install a third-party CLI, you can produce the cost JSON via other means and run the included Python script against the JSON file or stdin. 4) The bundled script does not exfiltrate data, but any CLI you install could; audit the codexbar project if you will install it system-wide.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📊 Clawdis
OSmacOS
Binscodexbar

Install

Install CodexBar (brew cask)
Bins: codexbar
latestvk97bwtztj134mwzrz2bnenr2g184fv6w
80downloads
0stars
1versions
Updated 2w ago
v1.0.0
MIT-0
macOS

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.

Comments

Loading comments...