api-credits-lite
由 franciscobuiltdat 提供
Coding Agents & IDEs简介
Display API credit balances for 5 core providers (Anthropic, OpenAI, OpenRouter, Mistral, Groq) with video game.
描述
该技能的功能
Tracks API credit balances for Anthropic, OpenAI, OpenRouter, Mistral, and Groq using retro health bars with color-coded levels. Supports both manual balance entry and automatic API-based checks for providers that expose a balance endpoint. Balances persist in a local config file.
Consolidates five separate billing dashboards into a single view without requiring any account integrations beyond optional API keys you likely already have.
何时使用
- Check remaining credits before starting a long batch job
- Update Anthropic balance after buying a credit pack
- See at a glance which providers are running low
- Record a top-up after adding funds to OpenRouter
- Auto-pull current OpenAI balance without leaving the terminal
示例工作流
User asks: show my API credits
- 1
Run show_credits.py to read current balances from config.json
- 2
Render retro health bars with color coding based on percentage remaining
- 3
Present output conversationally, noting any providers below 25%
Health bar display showing each provider's balance, e.g. OpenAI at 🟩 95%, Anthropic at 🟧 30%, Groq at 🟥 12%
前置要求
- OPENAI_API_KEY environment variable (optional, for auto-check)
- OPENROUTER_API_KEY environment variable (optional, for auto-check)
- VERCEL_AI_GATEWAY_KEY environment variable (optional, for auto-check)
安装
clawhub install franciscobuiltdat/api-credits-lite运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。