搜索

PythonReactSEOPDF
OpenClaw

api-credits-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 sync.

franciscobuiltdat0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install franciscobuiltdat/api-credits-lite

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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 <skill-root>/scripts/<script>.py <args>


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% · 🟥 <25%


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 <provider> <balance>
# With max:  python3 scripts/sync_provider.py <provider> <balance> <max_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 prov...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/franciscobuiltdat/api-credits-lite
Version
—
Commit
5035a160fa829fb48d5ce3a5a9b2bd9bc2d29016
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

API Credits Lite

License: MIT

An OpenClaw agent skill — track and display API credit balances across 5 core providers with retro video game health bars. Just ask your agent to check your credits.

What It Does

  • 🎮 Visual health bars — at-a-glance credit status for all your providers
  • 📊 5 providers — Anthropic, OpenAI, OpenRouter, Mistral, Groq
  • 🔄 API auto-check — automated balance pulls for OpenAI, OpenRouter, Vercel
  • 📋 Manual sync — update balances from any provider console
  • ⚠️ Low credit alerts — warning and critical thresholds
  • 💰 Top-up tracking — record when you add credits

How to Use

Once installed, just talk to your agent naturally:

"How much credit do I have left?"
"Show my API balances"
"Update my Anthropic balance to $42.50"
"I topped up OpenRouter by $20"
"Am I running low on anything?"

Your agent handles everything — no commands needed.

Example Output

💰 API Credit Health
━━━━━━━━━━━━━━━━━━━━━

Anthropic 🟧
[████░░░░░░] 42% ($22.97/$54.94)
↳ Last sync: 2m ago

OpenAI 🟩
[██████████] 100% ($100.00/$100.00)

OpenRouter 🟨
[██████░░░░] 60% ($60.00/$100.00)

━━━━━━━━━━━━━━━━━━━━━
⚠️  Anthropic is getting low

Health bar colors: 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 <25%

Installation

Install via ClawHub or clone manually:

git clone https://github.com/FranciscoBuiltDat/openclaw-api-credits-lite.git

Optional: install requests for API auto-checks:

pip install requests

Supported Providers

Provider Auto-check Manual sync Console URL
Anthropic ❌ ✅ console.anthropic.com
OpenAI ✅ OPENAI_API_KEY ✅ platform.openai.com/usage
OpenRouter ✅ OPENROUTER_API_KEY ✅ openrouter.ai/activity
Vercel AI ✅ VERCEL_AI_GATEWAY_KEY...

来源内容

SKILL.md
# 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 <skill-root>/scripts/<script>.py <args>`

---

## Show Credit Balances

**Triggers:** "show my credits", "how much do I have left", "check my API balance"

```bash
python3 scripts/show_credits.py
```

Displays retro health bars for all configured providers. Colors: 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 <25%

---

## Manual Balance Sync

**Triggers:** "set my Anthropic balance to $X", "update my OpenAI credits to $X", "I have $X left on [provider]"

```bash
python3 scripts/sync_provider.py <provider> <balance>
# With max:  python3 scripts/sync_provider.py <provider> <balance> <max_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 prov...
README
# API Credits Lite

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

An **OpenClaw agent skill** — track and display API credit balances across 5 core providers with retro video game health bars. Just ask your agent to check your credits.

## What It Does

- 🎮 **Visual health bars** — at-a-glance credit status for all your providers
- 📊 **5 providers** — Anthropic, OpenAI, OpenRouter, Mistral, Groq
- 🔄 **API auto-check** — automated balance pulls for OpenAI, OpenRouter, Vercel
- 📋 **Manual sync** — update balances from any provider console
- ⚠️ **Low credit alerts** — warning and critical thresholds
- 💰 **Top-up tracking** — record when you add credits

## How to Use

Once installed, just talk to your agent naturally:

> *"How much credit do I have left?"*  
> *"Show my API balances"*  
> *"Update my Anthropic balance to $42.50"*  
> *"I topped up OpenRouter by $20"*  
> *"Am I running low on anything?"*

Your agent handles everything — no commands needed.

## Example Output

```
💰 API Credit Health
━━━━━━━━━━━━━━━━━━━━━

Anthropic 🟧
[████░░░░░░] 42% ($22.97/$54.94)
↳ Last sync: 2m ago

OpenAI 🟩
[██████████] 100% ($100.00/$100.00)

OpenRouter 🟨
[██████░░░░] 60% ($60.00/$100.00)

━━━━━━━━━━━━━━━━━━━━━
⚠️  Anthropic is getting low
```

**Health bar colors:** 🟩 >75% · 🟨 50–75% · 🟧 25–50% · 🟥 <25%

## Installation

Install via [ClawHub](https://clawhub.ai) or clone manually:

```bash
git clone https://github.com/FranciscoBuiltDat/openclaw-api-credits-lite.git
```

Optional: install `requests` for API auto-checks:

```bash
pip install requests
```

## Supported Providers

| Provider | Auto-check | Manual sync | Console URL |
|----------|-----------|-------------|-------------|
| Anthropic | ❌ | ✅ | console.anthropic.com |
| OpenAI | ✅ `OPENAI_API_KEY` | ✅ | platform.openai.com/usage |
| OpenRouter | ✅ `OPENROUTER_API_KEY` | ✅ | openrouter.ai/activity |
| Vercel AI | ✅ `VERCEL_AI_GATEWAY_KEY`...

相关技能

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...