Preface¶
After connecting to a self-built or team-internal AIGate platform, checking token balance, daily usage, and monthly summaries often requires opening a separate console or checking APIs. When using Agents in the IDE for coding and model tuning, switching windows to verify costs disrupts the workflow and makes it easy to miss usage limits. Below is an introduction to AIGate Token Usage Query (@user_0f7a070e/aigate-token-query) on SkillHub: it turns query capabilities into an Agent Skill, triggered by natural language in conversations, eliminating the need to write custom query scripts.
What is this¶
AIGate Token Usage Query is a community-sourced Agent Skill, currently at version v1.0.2, categorized under data-analysis on SkillHub. The release coordinate is @user_0f7a070e/aigate-token-query, and the page is maintained by the author “Zeng Xiaoxian”.
The official description summarizes it as: one-click query for token balance, daily consumption, and monthly statistics of a custom AIGate platform; supports triggering via any conversation containing the keyword Token; designed for “zero-code” usage. The Skill tag indicates requires_api_key=true; you need to complete the API Key configuration related to AIGate before use (refer to SKILL.md within the installed skill package for specifics).
Core Functions¶
According to the public documentation on SkillHub, the capabilities currently verified by this Skill include:
- Token Balance: Query the available token balance under the current AIGate account or project.
- Daily Consumption: View daily summarized token consumption.
- Monthly Statistics: View monthly token usage statistics.
- Keyword Trigger: Mentioning expressions containing Token in the Agent conversation summons the query process, eliminating the need to memorize fixed command names.
All the above capabilities target the “custom AIGate platform” scenario, suitable for teams or individuals who have deployed AIGate and wish to query usage directly within clients like Cursor.
Installation and Activation¶
Before installation, ensure the SkillHub CLI is present on your machine; if not installed, check or install it via the official installation documentation:
command -v skillhub && skillhub --version
If not installed, you can use the recommended method from the documentation (full installation includes CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing this Skill, you must use --dir to point to the skills directory actually read by the current Agent; otherwise, it defaults to ./skills/, and the Agent may fail to load it. Common path examples provided officially:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Execute the installation in the corresponding directory (replace <skills directory> with one of the paths above):
skillhub install user_0f7a070e/aigate-token-query --dir <skills directory>
You can also send the following prompt to the AI to let it complete the installation according to the SkillHub Installation Guide:
Please install `@user_0f7a070e/aigate-token-query` according to https://skillhub.cn/install/skillhub.md.
After installation, configure the API Key based on the Skill tag requires_api_key=true, and restart or reload the Agent to activate the skill. Cursor, Codex, Claude Code, etc., have different conventions for the skills directory; refer to your current client documentation and the table above for the correct path.
Typical Usage¶
The design focus of this Skill is “in-conversation one-click query,” rather than typing sub-commands in the terminal. In an Agent session where the skill is enabled, you can initiate queries using natural language containing Token, for example:
Help me check the AIGate token balance and today's usage.
Can you show me the monthly token statistics?
The Agent will call the relevant AIGate APIs according to the instructions in the skill package, returning the balance, daily consumption, or monthly statistics (subject to the actual platform return). Specific request parameters, authentication methods, and error handling are subject to SKILL.md in the installation directory and the AIGate platform documentation; this article does not expand on configuration field names not listed on the official page.
Scenarios and Notes¶
Who is it for
- Developers or operations personnel already using a custom AIGate platform who need to frequently verify token balances and usage.
- Those who wish to complete usage queries via conversation within clients supporting Skills like Cursor / Claude Code / Codex, without opening the console every time.
- SkillHub categorizes it as data-analysis, consistent with usage and statistics-related scenarios.
Usage Notes
- API Key: The tag requires_api_key=true indicates that the key must be configured correctly; queries cannot be completed if the key is missing or invalid.
- Platform Address: The Skill targets a “custom AIGate platform”; if your gateway address, tenant, or project differs from the author’s presets, you need to adjust them in the skill instructions or environment configuration according to
SKILL.md. Do not assume it is the same as the public cloud default endpoint. - Trigger Words: Relies on expressions containing Token appearing in the conversation; if the Agent does not load this Skill or fails to recognize the intent, first confirm whether the installation directory matches the client’s skills path.
- Version: The page marks the version as v1.0.2; for upgrades, use the
skillhubupgrade capability and checkSKILL.mdchanges again.
Conclusion¶
AIGate Token Usage Query consolidates AIGate token balance, daily consumption, and monthly statistics into the Agent conversation, suitable for quickly verifying usage in the development environment. For installation and priority source strategies, see the SkillHub Installation Documentation; for skill details and installation entry:
- SkillHub Page: https://www.skillhub.cn/skills/user_0f7a070e/aigate-token-query
- Official Address: https://api.skillhub.cn/user_0f7a070e/aigate-token-query