{
  "schemaVersion": "1.0",
  "item": {
    "slug": "claude-usage",
    "name": "Claude Usage",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lemodigital/claude-usage",
    "canonicalUrl": "https://clawhub.ai/lemodigital/claude-usage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/claude-usage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-usage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "bin/claude-usage.js",
      "package.json",
      "scripts/claude-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. 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-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.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/claude-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/claude-usage",
    "agentPageUrl": "https://openagent3.xyz/skills/claude-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claude-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claude-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. 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": "Claude Max Usage Calculator",
        "body": "Track your Claude Max subscription usage based on the reverse-engineered credits system from she-llac.com/claude-limits."
      },
      {
        "title": "When to use",
        "body": "When the user asks about Claude usage, credits, subscription consumption, rate limits, or wants to know how much budget is left."
      },
      {
        "title": "Setup (first time)",
        "body": "Ask the user for:\n\nWeekly reset time — visible on claude.ai Settings > Usage (e.g. \"Resets Mon 2:00 PM\")\nPlan — pro ($20), 5x ($100), or 20x ($200). Default: 5x\n\nSave it so they never have to repeat:\n\npython3 {SKILL_DIR}/scripts/claude-usage.py \"2026-02-09 14:00\" --plan 5x --save"
      },
      {
        "title": "Commands",
        "body": "# Weekly overview (uses saved config after first --save)\npython3 {SKILL_DIR}/scripts/claude-usage.py\n\n# Override plan or timezone\npython3 {SKILL_DIR}/scripts/claude-usage.py --plan 20x --tz \"America/New_York\"\n\n# Top N sessions only\npython3 {SKILL_DIR}/scripts/claude-usage.py --top 5\n\n# Single session detail (substring match on key or id)\npython3 {SKILL_DIR}/scripts/claude-usage.py --session \"main\"\npython3 {SKILL_DIR}/scripts/claude-usage.py --session \"9aadee\"\n\n# JSON output\npython3 {SKILL_DIR}/scripts/claude-usage.py --json"
      },
      {
        "title": "Weekly overview",
        "body": "Total credits used vs weekly budget (with progress bar)\n5-hour sliding window — warns if approaching the per-5h rate limit\nAll sessions ranked by credits consumed\nModel breakdown (Opus/Sonnet/Haiku/non-Claude)"
      },
      {
        "title": "Single session detail (--session)",
        "body": "Credits consumed and % of weekly budget\n% of total usage (how much of your spending this session accounts for)\nToken breakdown (input/output/cache)\nPer-model detail"
      },
      {
        "title": "Credits formula",
        "body": "credits = (input_tokens + cache_write_tokens) × input_rate + output_tokens × output_rate\n\nModelInput rateOutput rateHaiku2/1510/15Sonnet6/1530/15Opus10/1550/15\n\nCache reads are free. Non-Claude models (Gemini, Codex, etc.) don't consume Claude credits."
      },
      {
        "title": "Plan budgets",
        "body": "Plan$/monthCredits/5hCredits/weekPro$20550,0005,000,0005×$1003,300,00041,666,70020×$20011,000,00083,333,300"
      },
      {
        "title": "Requirements",
        "body": "Python 3.9+\nOpenClaw with session JSONL files (auto-detected at ~/.openclaw/agents/main/sessions/)"
      }
    ],
    "body": "Claude Max Usage Calculator\n\nTrack your Claude Max subscription usage based on the reverse-engineered credits system from she-llac.com/claude-limits.\n\nWhen to use\n\nWhen the user asks about Claude usage, credits, subscription consumption, rate limits, or wants to know how much budget is left.\n\nSetup (first time)\n\nAsk the user for:\n\nWeekly reset time — visible on claude.ai Settings > Usage (e.g. \"Resets Mon 2:00 PM\")\nPlan — pro ($20), 5x ($100), or 20x ($200). Default: 5x\n\nSave it so they never have to repeat:\n\npython3 {SKILL_DIR}/scripts/claude-usage.py \"2026-02-09 14:00\" --plan 5x --save\n\nCommands\n# Weekly overview (uses saved config after first --save)\npython3 {SKILL_DIR}/scripts/claude-usage.py\n\n# Override plan or timezone\npython3 {SKILL_DIR}/scripts/claude-usage.py --plan 20x --tz \"America/New_York\"\n\n# Top N sessions only\npython3 {SKILL_DIR}/scripts/claude-usage.py --top 5\n\n# Single session detail (substring match on key or id)\npython3 {SKILL_DIR}/scripts/claude-usage.py --session \"main\"\npython3 {SKILL_DIR}/scripts/claude-usage.py --session \"9aadee\"\n\n# JSON output\npython3 {SKILL_DIR}/scripts/claude-usage.py --json\n\nWhat it shows\nWeekly overview\nTotal credits used vs weekly budget (with progress bar)\n5-hour sliding window — warns if approaching the per-5h rate limit\nAll sessions ranked by credits consumed\nModel breakdown (Opus/Sonnet/Haiku/non-Claude)\nSingle session detail (--session)\nCredits consumed and % of weekly budget\n% of total usage (how much of your spending this session accounts for)\nToken breakdown (input/output/cache)\nPer-model detail\nCredits formula\ncredits = (input_tokens + cache_write_tokens) × input_rate + output_tokens × output_rate\n\nModel\tInput rate\tOutput rate\nHaiku\t2/15\t10/15\nSonnet\t6/15\t30/15\nOpus\t10/15\t50/15\n\nCache reads are free. Non-Claude models (Gemini, Codex, etc.) don't consume Claude credits.\n\nPlan budgets\nPlan\t$/month\tCredits/5h\tCredits/week\nPro\t$20\t550,000\t5,000,000\n5×\t$100\t3,300,000\t41,666,700\n20×\t$200\t11,000,000\t83,333,300\nRequirements\nPython 3.9+\nOpenClaw with session JSONL files (auto-detected at ~/.openclaw/agents/main/sessions/)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lemodigital/claude-usage",
    "publisherUrl": "https://clawhub.ai/lemodigital/claude-usage",
    "owner": "lemodigital",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/claude-usage",
    "downloadUrl": "https://openagent3.xyz/downloads/claude-usage",
    "agentUrl": "https://openagent3.xyz/skills/claude-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claude-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claude-usage/agent.md"
  }
}