API Billing & Balance Tracker for Openclaw

A specialized utility for monitoring account balances and historical billing across major AI and cloud infrastructure providers.

yifeiwang1981
v1.0.0
Apr 28, 2026
0
627
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install api-billing

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install api-billing using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is API Billing & Balance Tracker?

The API Billing skill is a robust tool designed for developers and teams who need to keep a close watch on their operational costs. By integrating directly with multiple service providers, it offers a centralized way to monitor credit consumption and avoid unexpected service interruptions due to insufficient funds.

Built as part of the Openclaw Skills ecosystem, this tool simplifies financial oversight for high-frequency API users. It provides precise data on subscription usage and expenditure, ensuring that your AI-powered applications remain cost-effective and fully funded.

API Billing & Balance Tracker Use Cases

  • Tracking real-time credit balances across DeepSeek and OpenRouter to ensure continuous model availability.
  • Auditing historical consumption on Volcengine and Alibaba Cloud for monthly financial reporting.
  • Monitoring MiniMax Coding Plan usage to prevent hitting plan limits mid-sprint.
  • Automating the collection of billing data for multi-provider AI architectures.

How API Billing & Balance Tracker Works

  1. The skill accesses provider-specific credentials stored securely in the local workspace directory.
  2. Upon execution, the specific script initiates an authenticated request to the provider's billing or management API.
  3. The tool parses the response, calculating remaining balances or compiling historical usage records (up to 6 months for some providers).
  4. The results are formatted and displayed via the CLI for immediate review or further processing by the agent.

API Billing & Balance Tracker Setup

Store your credentials in ~/.openclaw/workspace/ using the following environment files. Ensure you apply secure permissions.

# Example: Setting up Volcengine credentials
echo "VOLC_AK=your_access_key\nVOLC_SK=your_secret_key" > ~/.openclaw/workspace/.volc_ak_sk.env
chmod 600 ~/.openclaw/workspace/.volc_ak_sk.env

# Run the billing query
python3 skills/api-billing/scripts/query_volc_billing.py --history

API Billing & Balance Tracker Data Schema & Taxonomy

This skill utilizes a flat-file credential system to maintain security and portability within the Openclaw Skills framework:

File Name Purpose
.volc_ak_sk.env Volcengine AK/SK credentials
.aliyun_ak_sk.env Alibaba Cloud AK/SK credentials
.deepseek_key.env DeepSeek API authentication key
.minimax_cp_key.env MiniMax Coding Plan specific key
.openrouter_key.env OpenRouter balance inquiry key

All files are automatically excluded from version control via .gitignore and use 600 system permissions.

API Billing & Balance Tracker Advanced Features

  • Multi-platform support including Volcengine, Alibaba Cloud, DeepSeek, MiniMax, and OpenRouter.
  • Historical billing retrieval capable of pulling the last 6 months of records for specific providers.
  • Security-first design featuring Base64 encoding for local credential storage and strict file system permissions.
  • Modular script architecture allowing for easy expansion to new AI model providers within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*