diff --git a/skills/model-usage/SKILL.md b/skills/model-usage/SKILL.md index d0bd72d56bc6..eca1c6dd6403 100644 --- a/skills/model-usage/SKILL.md +++ b/skills/model-usage/SKILL.md @@ -6,7 +6,7 @@ metadata: "openclaw": { "emoji": "📊", - "os": ["darwin"], + "os": ["darwin", "linux"], "requires": { "bins": ["codexbar"] }, "install": [ @@ -15,7 +15,7 @@ metadata: "kind": "brew", "formula": "steipete/tap/codexbar", "bins": ["codexbar"], - "label": "Install CodexBar (brew cask)", + "label": "Install CodexBar CLI (Homebrew)", }, ], }, @@ -28,7 +28,7 @@ metadata: 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. -Live CodexBar CLI invocation is currently documented for macOS only. The bundled Python summarizer is portable: if you already have exported CodexBar JSON, `--input` mode works anywhere Python is available. +CodexBar ships CLI builds for macOS and Linux. When `codexbar` is on `PATH`, the skill reads local usage directly; the bundled Python summarizer also accepts exported CodexBar JSON through `--input` anywhere Python is available. ## Quick start @@ -51,8 +51,8 @@ python {baseDir}/scripts/model_usage.py --provider claude --mode all --format js ## Inputs - Default: runs `codexbar cost --format json --provider `. -- macOS: use the bundled CodexBar CLI install path above for live local usage reads. -- Linux/other platforms: use `--input` with exported CodexBar JSON until this skill documents a supported local CodexBar install path for that platform. +- macOS and Linux: use the bundled Homebrew formula installer above for live local usage reads. Linux users can also use CodexBar's [AUR package](https://aur.archlinux.org/packages/codexbar-cli) or [official release tarballs](https://github.com/steipete/CodexBar/releases). +- Other platforms: use `--input` with exported CodexBar JSON. - File or stdin: ```bash diff --git a/skills/model-usage/references/codexbar-cli.md b/skills/model-usage/references/codexbar-cli.md index b7d9561b072a..e418631b49af 100644 --- a/skills/model-usage/references/codexbar-cli.md +++ b/skills/model-usage/references/codexbar-cli.md @@ -2,8 +2,10 @@ ## Install -- App: Preferences -> Advanced -> Install CLI -- Repo: ./bin/install-codexbar-cli.sh +- macOS and Linux Homebrew formula: `brew install steipete/tap/codexbar` +- Linux AUR package: `yay -S codexbar-cli` +- macOS and Linux tarballs: [CodexBar releases](https://github.com/steipete/CodexBar/releases) +- macOS app: Preferences -> Advanced -> Install CLI ## Commands