API Credit Health Bar Lite
/install api-credits-lite
API Credits Lite
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.
When to Use
✅ USE this skill when the user asks:
- "How much credit do I have left?" / "What's my balance?"
- "Show my API credits" / "Check my credits"
- "Update my [provider] balance to $X"
- "I topped up [provider] by $X"
- "Am I running low on [provider]?"
❌ DON'T use when:
- The user needs 16+ providers, JSONL auto-tracking, cloud SDKs, or heartbeat integration → use api-credits-pro
How to Use
You run the scripts internally — the user never types python3. Respond naturally and present health bar output conversationally.
The skill root is at: ~/.openclaw/workspace/skills/api-credits-lite/
Run scripts with: python3 \x3Cskill-root>/scripts/\x3Cscript>.py \x3Cargs>
Show Credit Balances
Triggers: "show my credits", "how much do I have left", "check my API balance"
python3 scripts/show_credits.py
Displays retro health bars for all configured providers. Colors: 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 \x3C25%
Manual Balance Sync
Triggers: "set my Anthropic balance to $X", "update my OpenAI credits to $X", "I have $X left on [provider]"
python3 scripts/sync_provider.py \x3Cprovider> \x3Cbalance>
# With max: python3 scripts/sync_provider.py \x3Cprovider> \x3Cbalance> \x3Cmax_credits>
# Examples:
python3 scripts/sync_provider.py anthropic 22.97
python3 scripts/sync_provider.py openai 95.00 100.00
Supported providers: anthropic, openai, openrouter, mistral, groq
Where to find balances:
- Anthropic → console.anthropic.com
- OpenAI → platform.openai.com/usage
- OpenRouter → openrouter.ai/activity
- Mistral → console.mistral.ai/billing
- Groq → console.groq.com/settings/billing
Auto-Check Balance via API
Triggers: "check my OpenAI balance automatically", "pull my OpenRouter credits"
For providers that expose a balance API (requires the relevant API key set as an env var):
python3 scripts/check_openai.py # uses OPENAI_API_KEY
python3 scripts/check_openrouter.py # uses OPENROUTER_API_KEY
python3 scripts/check_vercel.py # uses VERCEL_AI_GATEWAY_KEY
Anthropic, Mistral, and Groq don't have public balance APIs — use manual sync for those.
Record a Top-Up
Triggers: "I added $X to my [provider] account", "I topped up $50 on OpenRouter"
python3 scripts/topup.py \x3Cprovider> \x3Camount>
# Example: python3 scripts/topup.py openrouter 20.00
Troubleshooting
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:
cp config.example.json config.json
Upgrading
Need 16+ providers, auto-tracking from session logs, cloud SDKs (AWS/Azure/GCP), or heartbeat integration? Suggest api-credits-pro.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install api-credits-lite - 安装完成后,直接呼叫该 Skill 的名称或使用
/api-credits-lite触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
API Credit Health Bar Lite 是什么?
Display API credit balances for 5 core providers (Anthropic, OpenAI, OpenRouter, Mistral, Groq) with video game style health bars. API auto-checks and manual... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 639 次。
如何安装 API Credit Health Bar Lite?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-credits-lite」即可一键安装,无需额外配置。
API Credit Health Bar Lite 是免费的吗?
是的,API Credit Health Bar Lite 完全免费(开源免费),可自由下载、安装和使用。
API Credit Health Bar Lite 支持哪些平台?
API Credit Health Bar Lite 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 API Credit Health Bar Lite?
由 FranciscoBuiltDat(@franciscobuiltdat)开发并维护,当前版本 v1.0.2。