{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawcost",
    "name": "ClawCost",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/ShallIfy/clawcost",
    "canonicalUrl": "https://clawhub.ai/ShallIfy/clawcost",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/clawcost",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawcost",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/pricing.md",
      "scripts/clawcost.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. 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/clawcost"
    },
    "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/clawcost",
    "agentPageUrl": "https://openagent3.xyz/skills/clawcost/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawcost/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawcost/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": "ClawCost",
        "body": "Run this command:\n\npython3 {baseDir}/scripts/clawcost.py --budget 10"
      },
      {
        "title": "Output",
        "body": "JSON with:\n\nbalance: {initial, spent, remaining} or null\ntoday: cost, budget, pct\nweek: total week cost\ntotal: all-time cost, tokens\nmodels: breakdown all-time\nmodels_today: breakdown for today only\ndaily: cost per day (last 7 days)"
      },
      {
        "title": "Set Balance",
        "body": "User sets INITIAL balance (when they top up):\n\npython3 {baseDir}/scripts/clawcost.py --set-balance 50.00\n\nRemaining auto-calculates: initial - total_spent"
      },
      {
        "title": "How to Present",
        "body": "Tone: Friendly, like a helpful assistant checking expenses. Use emojis sparingly.\n\nFormat: Use tree-style (├ └) for clean output:\n\n💰 clawleaks\n├ Balance $42.98 / $50 remaining\n├ Today   $1.36 / $10 (14%) ✅\n├ Week    $7.02\n└ Total   $7.02 (15.5M tok)\n\n📈 Sonnet $3.99 (57%) • Haiku $2.06 (29%) • Opus $0.97 (14%)\n\nRules:\n\nSkip $0 models\nAdd brief insight (\"Opus only 14%, nice savings 👍\")\n\nAlerts (IMPORTANT):\n\nIf today.pct > 80%: Start with ⚠️ \"Warning: Daily budget {pct}% used!\"\nIf today.pct > 100%: Start with 🚨 \"OVER BUDGET! ${cost} spent\"\nIf balance.remaining < 5: Warn \"💸 Low balance: ${remaining} left\"\nIf balance is null: Suggest \"Set initial balance with --set-balance\"\nIf budget is fine: End with ✅\n\nContextual:\n\nQuick question → short answer\nWants detail → full breakdown + daily\nOver budget → always show warning first, suggest switching to Haiku"
      }
    ],
    "body": "ClawCost\n\nRun this command:\n\npython3 {baseDir}/scripts/clawcost.py --budget 10\n\nOutput\n\nJSON with:\n\nbalance: {initial, spent, remaining} or null\ntoday: cost, budget, pct\nweek: total week cost\ntotal: all-time cost, tokens\nmodels: breakdown all-time\nmodels_today: breakdown for today only\ndaily: cost per day (last 7 days)\nSet Balance\n\nUser sets INITIAL balance (when they top up):\n\npython3 {baseDir}/scripts/clawcost.py --set-balance 50.00\n\n\nRemaining auto-calculates: initial - total_spent\n\nHow to Present\n\nTone: Friendly, like a helpful assistant checking expenses. Use emojis sparingly.\n\nFormat: Use tree-style (├ └) for clean output:\n\n💰 clawleaks\n├ Balance $42.98 / $50 remaining\n├ Today   $1.36 / $10 (14%) ✅\n├ Week    $7.02\n└ Total   $7.02 (15.5M tok)\n\n📈 Sonnet $3.99 (57%) • Haiku $2.06 (29%) • Opus $0.97 (14%)\n\n\nRules:\n\nSkip $0 models\nAdd brief insight (\"Opus only 14%, nice savings 👍\")\n\nAlerts (IMPORTANT):\n\nIf today.pct > 80%: Start with ⚠️ \"Warning: Daily budget {pct}% used!\"\nIf today.pct > 100%: Start with 🚨 \"OVER BUDGET! ${cost} spent\"\nIf balance.remaining < 5: Warn \"💸 Low balance: ${remaining} left\"\nIf balance is null: Suggest \"Set initial balance with --set-balance\"\nIf budget is fine: End with ✅\n\nContextual:\n\nQuick question → short answer\nWants detail → full breakdown + daily\nOver budget → always show warning first, suggest switching to Haiku"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ShallIfy/clawcost",
    "publisherUrl": "https://clawhub.ai/ShallIfy/clawcost",
    "owner": "ShallIfy",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawcost",
    "downloadUrl": "https://openagent3.xyz/downloads/clawcost",
    "agentUrl": "https://openagent3.xyz/skills/clawcost/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawcost/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawcost/agent.md"
  }
}