AIClient2API Usage for Openclaw

A monitoring tool to track AIClient2API credit consumption, subscription status, and monthly quotas.

limingdev-tech-2024
v1.0.0
Mar 6, 2026
0
761
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install aiclient2api-usage

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 aiclient2api-usage 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 AIClient2API Usage?

This skill provides a robust interface for developers to monitor their AIClient2API account status directly from their development environment. It offers a streamlined way to view critical metrics such as consumed credits, remaining quotas, and subscription details, ensuring that AI-powered workflows integrated with Openclaw Skills remain uninterrupted by unexpected limits.

By surfacing data from local cache files and providing scripts for manual refreshes, this tool ensures transparency in API spending and usage patterns across various LLM providers. Whether you are managing personal projects or enterprise-level deployments, maintaining visibility into your resource consumption is essential for stable Openclaw Skills integrations.

AIClient2API Usage Use Cases

  • Monitoring remaining monthly credits to prevent service interruption during intensive coding sessions.
  • Checking the expiration dates of free trial promotional credits to maximize resource utility.
  • Verifying current overage charges and policy caps for high-volume automated tasks.
  • Troubleshooting API errors related to quota limits or expired subscriptions within Openclaw Skills.

How AIClient2API Usage Works

  1. Accesses the local JSON cache located at ~/web/AIClient-2-API/configs/usage-cache.json to retrieve the latest account state.
  2. Parses detailed account information including subscription tiers, email addresses, and unique user IDs.
  3. Extracts usage metrics for both temporary free trials and monthly recurring quotas.
  4. Displays formatted usage statistics through terminal-based scripts or direct file inspection within the Openclaw Skills framework.

AIClient2API Usage Setup

To view your current usage statistics, execute the check script:

bash scripts/check_usage.sh

To force a manual refresh of the usage data from the server:

bash scripts/refresh_usage.sh

Ensure your Openclaw Skills environment has read access to the ~/web/AIClient-2-API/configs/ directory to allow the agent to parse the JSON cache.

AIClient2API Usage Data Schema & Taxonomy

The skill primarily interacts with the usage-cache.json file. The data structure is organized as follows:

Data Point Description
Account Info Includes Email, user ID, and active subscription type
Free Trial Tracking for usage, credit limits, and expiration dates
Monthly Quota Real-time credits used, total limit, and next reset date
Overage Policy Details on billing rates, current charges, and spending caps

This schema ensures Openclaw Skills can accurately report on your API health.

AIClient2API Usage Advanced Features

  • Direct integration with the local Web UI at port 16825 for visual provider management and authentication.
  • Automated cache synchronization that updates every few minutes to reflect real-time credit consumption.
  • CLI-first approach allowing for easy integration into custom shell scripts or monitoring loops within Openclaw Skills.
  • Support for overage policy monitoring to prevent unexpected billing spikes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*