agentleFS
L-LesterYuL-LesterYu/OpenClaw-hot-skills-zh/skills/model-usage-zh/SKILL.md

model-usage

Skill56 starsChanged 9 months agoMITView on GitHub

使用 CodexBar CLI 本地成本使用情况来汇总 Codex 或 Claude 的按模型使用情况,包括当前(最新)模型或完整的模型细分。当被要求提供 codexbar 的模型级别使用/成本数据,或需要从 codexbar cost JSON 获取可脚本化的按模型摘要时触发。

11 other projects use a version of this, 11 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use node-connect, healthcheck and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • indranilbanerjeeSkill

    node-connect

    Diagnose DMClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.

    Also in 3 projects that use this

  • overkillkultureSkill

    healthcheck

    Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user asks for security audits, firewall/SSH/update hardening, risk posture, exposure review, OpenClaw cron scheduling for periodic checks, or version status checks on a machine running OpenClaw (laptop, workstation, Pi, VPS).

    Also in 5 projects that use this

  • GoogleSkill

    gh-issues

    Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]

    Also in 3 projects that use this

  • indranilbanerjeeSkill

    xurl

    A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.

    Also in 3 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 3 projects that use this

The file

Files
SKILL.md

模型使用情况

概述

从 CodexBar 的本地成本日志中获取按模型的使用成本。支持"当前模型"(最新的每日条目)或"所有模型"摘要,适用于 Codex 或 Claude。

待办:一旦 CodexBar CLI 在 Linux 上的安装路径有文档说明,将添加 Linux CLI 支持指南。

快速开始

  1. 通过 CodexBar CLI 获取成本 JSON 或传递一个 JSON 文件。
  2. 使用捆绑的脚本按模型汇总。
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

当前模型逻辑

  • 使用包含 modelBreakdowns 的最新每日行。
  • 选择该行中成本最高的模型。
  • 当缺少细分时,回退到 modelsUsed 的最后一个条目。
  • 当需要特定模型时,使用 --model <name> 覆盖。

输入

  • 默认:运行 codexbar cost --format json --provider <codex|claude>。
  • 文件或标准输入:
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

输出

  • 文本(默认)或 JSON(--format json --pretty)。
  • 数值仅为每个模型的成本;CodexBar 输出中未按模型拆分 token。

参考资料

  • 阅读 references/codexbar-cli.md 了解 CLI 标志和成本 JSON 字段。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.