{
  "schemaVersion": "1.0",
  "item": {
    "slug": "model-usage",
    "name": "Model Usage",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/steipete/model-usage",
    "canonicalUrl": "https://clawhub.ai/steipete/model-usage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/model-usage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=model-usage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/codexbar-cli.md",
      "scripts/model_usage.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "model-usage",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T17:27:28.830Z",
      "expiresAt": "2026-05-12T17:27:28.830Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=model-usage",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=model-usage",
        "contentDisposition": "attachment; filename=\"model-usage-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "model-usage"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/model-usage"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/model-usage",
    "agentPageUrl": "https://openagent3.xyz/skills/model-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/model-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/model-usage/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "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.\n\nTODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux."
      },
      {
        "title": "Quick start",
        "body": "Fetch cost JSON via CodexBar CLI or pass a JSON file.\nUse the bundled script to summarize by model.\n\npython {baseDir}/scripts/model_usage.py --provider codex --mode current\npython {baseDir}/scripts/model_usage.py --provider codex --mode all\npython {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty"
      },
      {
        "title": "Current model logic",
        "body": "Uses the most recent daily row with modelBreakdowns.\nPicks the model with the highest cost in that row.\nFalls back to the last entry in modelsUsed when breakdowns are missing.\nOverride with --model <name> when you need a specific model."
      },
      {
        "title": "Inputs",
        "body": "Default: runs codexbar cost --format json --provider <codex|claude>.\nFile or stdin:\n\ncodexbar cost --provider codex --format json > /tmp/cost.json\npython {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all\ncat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current"
      },
      {
        "title": "Output",
        "body": "Text (default) or JSON (--format json --pretty).\nValues are cost-only per model; tokens are not split by model in CodexBar output."
      },
      {
        "title": "References",
        "body": "Read references/codexbar-cli.md for CLI flags and cost JSON fields."
      }
    ],
    "body": "Model usage\nOverview\n\nGet 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.\n\nTODO: add Linux CLI support guidance once CodexBar CLI install path is documented for Linux.\n\nQuick start\nFetch cost JSON via CodexBar CLI or pass a JSON file.\nUse the bundled script to summarize by model.\npython {baseDir}/scripts/model_usage.py --provider codex --mode current\npython {baseDir}/scripts/model_usage.py --provider codex --mode all\npython {baseDir}/scripts/model_usage.py --provider claude --mode all --format json --pretty\n\nCurrent model logic\nUses the most recent daily row with modelBreakdowns.\nPicks the model with the highest cost in that row.\nFalls back to the last entry in modelsUsed when breakdowns are missing.\nOverride with --model <name> when you need a specific model.\nInputs\nDefault: runs codexbar cost --format json --provider <codex|claude>.\nFile or stdin:\ncodexbar cost --provider codex --format json > /tmp/cost.json\npython {baseDir}/scripts/model_usage.py --input /tmp/cost.json --mode all\ncat /tmp/cost.json | python {baseDir}/scripts/model_usage.py --input - --mode current\n\nOutput\nText (default) or JSON (--format json --pretty).\nValues are cost-only per model; tokens are not split by model in CodexBar output.\nReferences\nRead references/codexbar-cli.md for CLI flags and cost JSON fields."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/steipete/model-usage",
    "publisherUrl": "https://clawhub.ai/steipete/model-usage",
    "owner": "steipete",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/model-usage",
    "downloadUrl": "https://openagent3.xyz/downloads/model-usage",
    "agentUrl": "https://openagent3.xyz/skills/model-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/model-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/model-usage/agent.md"
  }
}