{
  "schemaVersion": "1.0",
  "item": {
    "slug": "api-credits-lite",
    "name": "API Credit Health Bar Lite",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/FranciscoBuiltDat/api-credits-lite",
    "canonicalUrl": "https://clawhub.ai/FranciscoBuiltDat/api-credits-lite",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/api-credits-lite",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=api-credits-lite",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      ".gitignore",
      "check_all_apis.py",
      "check_openai.py",
      "check_openrouter.py",
      "check_vercel.py",
      "config.example.json"
    ],
    "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",
      "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/api-credits-lite"
    },
    "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/api-credits-lite",
    "agentPageUrl": "https://openagent3.xyz/skills/api-credits-lite/agent",
    "manifestUrl": "https://openagent3.xyz/skills/api-credits-lite/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/api-credits-lite/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": "API Credits Lite",
        "body": "Use this skill when the user asks about API credits, balances, spending, or wants to update their credit info for Anthropic, OpenAI, OpenRouter, Mistral, or Groq."
      },
      {
        "title": "When to Use",
        "body": "✅ USE this skill when the user asks:\n\n\"How much credit do I have left?\" / \"What's my balance?\"\n\"Show my API credits\" / \"Check my credits\"\n\"Update my [provider] balance to $X\"\n\"I topped up [provider] by $X\"\n\"Am I running low on [provider]?\"\n\n❌ DON'T use when:\n\nThe user needs 16+ providers, JSONL auto-tracking, cloud SDKs, or heartbeat integration → use api-credits-pro"
      },
      {
        "title": "How to Use",
        "body": "You run the scripts internally — the user never types python3. Respond naturally and present health bar output conversationally.\n\nThe skill root is at: ~/.openclaw/workspace/skills/api-credits-lite/\nRun scripts with: python3 <skill-root>/scripts/<script>.py <args>"
      },
      {
        "title": "Show Credit Balances",
        "body": "Triggers: \"show my credits\", \"how much do I have left\", \"check my API balance\"\n\npython3 scripts/show_credits.py\n\nDisplays retro health bars for all configured providers. Colors: 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 <25%"
      },
      {
        "title": "Manual Balance Sync",
        "body": "Triggers: \"set my Anthropic balance to $X\", \"update my OpenAI credits to $X\", \"I have $X left on [provider]\"\n\npython3 scripts/sync_provider.py <provider> <balance>\n# With max:  python3 scripts/sync_provider.py <provider> <balance> <max_credits>\n\n# Examples:\npython3 scripts/sync_provider.py anthropic 22.97\npython3 scripts/sync_provider.py openai 95.00 100.00\n\nSupported providers: anthropic, openai, openrouter, mistral, groq\n\nWhere to find balances:\n\nAnthropic → console.anthropic.com\nOpenAI → platform.openai.com/usage\nOpenRouter → openrouter.ai/activity\nMistral → console.mistral.ai/billing\nGroq → console.groq.com/settings/billing"
      },
      {
        "title": "Auto-Check Balance via API",
        "body": "Triggers: \"check my OpenAI balance automatically\", \"pull my OpenRouter credits\"\n\nFor providers that expose a balance API (requires the relevant API key set as an env var):\n\npython3 scripts/check_openai.py       # uses OPENAI_API_KEY\npython3 scripts/check_openrouter.py   # uses OPENROUTER_API_KEY\npython3 scripts/check_vercel.py       # uses VERCEL_AI_GATEWAY_KEY\n\nAnthropic, Mistral, and Groq don't have public balance APIs — use manual sync for those."
      },
      {
        "title": "Record a Top-Up",
        "body": "Triggers: \"I added $X to my [provider] account\", \"I topped up $50 on OpenRouter\"\n\npython3 scripts/topup.py <provider> <amount>\n# Example: python3 scripts/topup.py openrouter 20.00"
      },
      {
        "title": "Troubleshooting",
        "body": "If the display shows no providers, the config may be empty. Tell the user to run the first manual sync for each provider they use, or copy the example config:\n\ncp config.example.json config.json"
      },
      {
        "title": "Upgrading",
        "body": "Need 16+ providers, auto-tracking from session logs, cloud SDKs (AWS/Azure/GCP), or heartbeat integration? Suggest api-credits-pro."
      }
    ],
    "body": "API Credits Lite\n\nUse this skill when the user asks about API credits, balances, spending, or wants to update their credit info for Anthropic, OpenAI, OpenRouter, Mistral, or Groq.\n\nWhen to Use\n\n✅ USE this skill when the user asks:\n\n\"How much credit do I have left?\" / \"What's my balance?\"\n\"Show my API credits\" / \"Check my credits\"\n\"Update my [provider] balance to $X\"\n\"I topped up [provider] by $X\"\n\"Am I running low on [provider]?\"\n\n❌ DON'T use when:\n\nThe user needs 16+ providers, JSONL auto-tracking, cloud SDKs, or heartbeat integration → use api-credits-pro\nHow to Use\n\nYou run the scripts internally — the user never types python3. Respond naturally and present health bar output conversationally.\n\nThe skill root is at: ~/.openclaw/workspace/skills/api-credits-lite/ Run scripts with: python3 <skill-root>/scripts/<script>.py <args>\n\nShow Credit Balances\n\nTriggers: \"show my credits\", \"how much do I have left\", \"check my API balance\"\n\npython3 scripts/show_credits.py\n\n\nDisplays retro health bars for all configured providers. Colors: 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 <25%\n\nManual Balance Sync\n\nTriggers: \"set my Anthropic balance to $X\", \"update my OpenAI credits to $X\", \"I have $X left on [provider]\"\n\npython3 scripts/sync_provider.py <provider> <balance>\n# With max:  python3 scripts/sync_provider.py <provider> <balance> <max_credits>\n\n# Examples:\npython3 scripts/sync_provider.py anthropic 22.97\npython3 scripts/sync_provider.py openai 95.00 100.00\n\n\nSupported providers: anthropic, openai, openrouter, mistral, groq\n\nWhere to find balances:\n\nAnthropic → console.anthropic.com\nOpenAI → platform.openai.com/usage\nOpenRouter → openrouter.ai/activity\nMistral → console.mistral.ai/billing\nGroq → console.groq.com/settings/billing\nAuto-Check Balance via API\n\nTriggers: \"check my OpenAI balance automatically\", \"pull my OpenRouter credits\"\n\nFor providers that expose a balance API (requires the relevant API key set as an env var):\n\npython3 scripts/check_openai.py       # uses OPENAI_API_KEY\npython3 scripts/check_openrouter.py   # uses OPENROUTER_API_KEY\npython3 scripts/check_vercel.py       # uses VERCEL_AI_GATEWAY_KEY\n\n\nAnthropic, Mistral, and Groq don't have public balance APIs — use manual sync for those.\n\nRecord a Top-Up\n\nTriggers: \"I added $X to my [provider] account\", \"I topped up $50 on OpenRouter\"\n\npython3 scripts/topup.py <provider> <amount>\n# Example: python3 scripts/topup.py openrouter 20.00\n\nTroubleshooting\n\nIf the display shows no providers, the config may be empty. Tell the user to run the first manual sync for each provider they use, or copy the example config:\n\ncp config.example.json config.json\n\nUpgrading\n\nNeed 16+ providers, auto-tracking from session logs, cloud SDKs (AWS/Azure/GCP), or heartbeat integration? Suggest api-credits-pro."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/FranciscoBuiltDat/api-credits-lite",
    "publisherUrl": "https://clawhub.ai/FranciscoBuiltDat/api-credits-lite",
    "owner": "FranciscoBuiltDat",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/api-credits-lite",
    "downloadUrl": "https://openagent3.xyz/downloads/api-credits-lite",
    "agentUrl": "https://openagent3.xyz/skills/api-credits-lite/agent",
    "manifestUrl": "https://openagent3.xyz/skills/api-credits-lite/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/api-credits-lite/agent.md"
  }
}