AI Agent Hub
Back to skills
AIGate Token Usage Query icon

AIGate Token Usage Query

Data Analysis Updated 2026.08.30

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 Token is case-insensitive, such as token, TOKEN, or 查Token.
  • Configuration: Set API_BASE to the AIGate query endpoint and API_KEY to the AIGate platform SK, typically formatted like sk-ag-xxx.
  • Dependency: The skill relies on jq to 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 jq availability.

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.