{
  "schemaVersion": "1.0",
  "item": {
    "slug": "cost-report",
    "name": "Cost Tracking for Models",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/vincentqiu/cost-report",
    "canonicalUrl": "https://clawhub.ai/vincentqiu/cost-report",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/cost-report",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cost-report",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "package.json",
      "SKILL.md",
      "cli.js",
      "scripts/cost_report.sh",
      "scripts/report_discord.sh"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/cost-report"
    },
    "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/cost-report",
    "agentPageUrl": "https://openagent3.xyz/skills/cost-report/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cost-report/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cost-report/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "Precisely track OpenClaw usage costs with detailed reports by date and model type. This skill uses the jq tool to directly parse JSON data from OpenClaw session logs, extracting accurate cost information.\n\nSupports multiple report formats:\n\nDaily Reports (today/yesterday costs)\nWeekly Reports (current week total/comparison with previous week)\nMonthly Reports (current month total/month-over-month growth)"
      },
      {
        "title": "Quick Start",
        "body": "# Today's cost report\nbash {baseDir}/scripts/cost_report.sh --today\n\n# Yesterday's cost report\nbash {baseDir}/scripts/cost_report.sh --yesterday\n\n# Weekly cost report\nbash {baseDir}/scripts/cost_report.sh --week\n\n# Date range report\nbash {baseDir}/scripts/cost_report.sh --from 2026-01-01 --to 2026-01-31"
      },
      {
        "title": "Cost Calculation Method",
        "body": "This script directly extracts cost data from OpenClaw session log files (~/.openclaw/agents/*/sessions/*.jsonl):\n\nUses jq to parse JSON data, locating the message.usage.cost.total field\nCalculates totals grouped by date and model\nEnsures each API call's cost is counted only once"
      },
      {
        "title": "Discord Output Format",
        "body": "💰 OpenClaw Cost Report (2026-02-04)\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nToday's Total Cost: $XX.XX (🟢 -XX% vs yesterday)\n\n📊 Model Details:\n• claude-opus-4-5: $XX.XX (XX%)\n• gpt-4o: $X.XX (X%)\n• ...\n\n📈 Weekly Total: $XXX.XX"
      },
      {
        "title": "Installation Requirements",
        "body": "jq: JSON parsing tool (brew install jq or apt install jq)\nAccess to OpenClaw log files"
      }
    ],
    "body": "OpenClaw Cost Tracker\nOverview\n\nPrecisely track OpenClaw usage costs with detailed reports by date and model type. This skill uses the jq tool to directly parse JSON data from OpenClaw session logs, extracting accurate cost information.\n\nSupports multiple report formats:\n\nDaily Reports (today/yesterday costs)\nWeekly Reports (current week total/comparison with previous week)\nMonthly Reports (current month total/month-over-month growth)\nQuick Start\n# Today's cost report\nbash {baseDir}/scripts/cost_report.sh --today\n\n# Yesterday's cost report\nbash {baseDir}/scripts/cost_report.sh --yesterday\n\n# Weekly cost report\nbash {baseDir}/scripts/cost_report.sh --week\n\n# Date range report\nbash {baseDir}/scripts/cost_report.sh --from 2026-01-01 --to 2026-01-31\n\nCost Calculation Method\n\nThis script directly extracts cost data from OpenClaw session log files (~/.openclaw/agents/*/sessions/*.jsonl):\n\nUses jq to parse JSON data, locating the message.usage.cost.total field\nCalculates totals grouped by date and model\nEnsures each API call's cost is counted only once\nDiscord Output Format\n💰 OpenClaw Cost Report (2026-02-04)\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nToday's Total Cost: $XX.XX (🟢 -XX% vs yesterday)\n\n📊 Model Details:\n• claude-opus-4-5: $XX.XX (XX%)\n• gpt-4o: $X.XX (X%)\n• ...\n\n📈 Weekly Total: $XXX.XX\n\nInstallation Requirements\njq: JSON parsing tool (brew install jq or apt install jq)\nAccess to OpenClaw log files"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/vincentqiu/cost-report",
    "publisherUrl": "https://clawhub.ai/vincentqiu/cost-report",
    "owner": "vincentqiu",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/cost-report",
    "downloadUrl": "https://openagent3.xyz/downloads/cost-report",
    "agentUrl": "https://openagent3.xyz/skills/cost-report/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cost-report/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cost-report/agent.md"
  }
}