AIGate Token Usage Query
Paste the following prompt into your AI chat to install this skill:
Install @user_0f7a070e/aigate-token-query according to https://skillhub.cn/install/skillhub.md.
About this skill
The Problem
When using AIGate model APIs, engineers often need to check token balances, monthly usage, and daily consumption, especially during cost reviews, quota debugging, or shared API key operations. Manually querying a dashboard or calling endpoints is fragmented. The AIGate Token Usage Query skill wraps this into a conversational workflow: send a keyword containing Token in OpenClaw to trigger the query and receive the result.
How It Works And Boundaries
- Trigger: Any message containing
Tokenis case-insensitive, such astoken,TOKEN, or查Token. - Configuration: Set
API_BASEto the AIGate query endpoint andAPI_KEYto the AIGate platform SK, typically formatted likesk-ag-xxx. - Dependency: The skill relies on
jqto parse JSON responses, so the tool must be available in the environment. - Scope: The documentation covers balances, monthly usage statistics, and yesterday's consumption only; it does not describe key creation, top-ups, permission changes, or audit exports. If a query fails, check the endpoint, key format, network reachability, and
jqavailability.
Use Cases
- When reconciling AIGate invoices at month end, query API balance and monthly token usage to check quota headroom.
- When investigating unexpected model API spend, query yesterday's token consumption to identify the anomalous day.
- When using OpenClaw, send a Token keyword to quickly check current API balance without manually inspecting a dashboard.
- When sharing one AIGate key across projects, record monthly token usage to support budget allocation and cost review.
Best For
- Engineers responsible for AIGate API cost tracking, who frequently check balances and monthly usage.
- Developers maintaining OpenClaw workflows, who want to query token statistics directly in chat.
- Platform leads managing shared AIGate API keys, who need to verify daily spend and monthly quotas.
- Application engineers debugging model calls, who need day-level visibility into token consumption.
Related Skills
Reads Excel/CSV files, cleans and analyzes them, then generates a charted Excel summary and interactive HTML dashboard.
Performs local, paragraph-level cross-document similarity checks and produces an HTML report with revision suggestions.
Scrapes JD search results for product titles, prices, sales, and stores, then exports verified data to UTF-8 CSV.
An A-share market monitor using Sina Finance API for real-time quotes, price and percentage alerts, daily logging, and scheduled checks.