360 Secure SkillHub
360 安全技能中心

Aiclient2api Usage

核心功能为查询AIClient2API的账户信息、免费试用状态、月度额度、超额政策等关键使用指标。典型场景:用户询问API使用量、credits、配额、订阅状态,或需监控API消费时使用。可通过脚本命令查询缓存、刷新数据,或本地Web UI获取实时数据,输出含账户详情、额度情况、到期/重置日期等。

limingdev-tech-2024
limingdev-tech-2024
热度 61.98
最近更新 2026-05-11 17:29:08
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add aiclient2api-usage
Metadata
name
aiclient2api-usage
description
Check AIClient2API usage statistics, quotas, and account status. Use when the user asks about AIClient2API usage, credits, quotas, subscription status, or when they want to monitor their API consumption.

AIClient2API Usage Checker

Query and display AIClient2API usage statistics, including credits consumed, remaining quotas, subscription type, and expiration dates.

Quick Start

Check current usage:

bash scripts/check_usage.sh

Refresh usage data:

bash scripts/refresh_usage.sh

Or read the usage cache file directly:

cat ~/web/AIClient-2-API/configs/usage-cache.json

Usage Information

The script reads from ~/web/AIClient-2-API/configs/usage-cache.json and displays:

  • Account information: Email, user ID, subscription type
  • Free trial status: Current usage, limit, expiration date
  • Monthly quota: Credits used, limit, reset date
  • Overage policy: Rate, cap, current charges

Key Metrics

  • Credits: Usage units for API calls
  • Free Trial: Temporary promotional credits (if active)
  • Monthly Quota: Recurring monthly allocation
  • Next Reset: When the monthly quota refreshes

Notes

  • Usage data is cached and updated periodically by AIClient2API (every few minutes)
  • The cache file is located at ~/web/AIClient-2-API/configs/usage-cache.json
  • For real-time data, access the web UI at http://127.0.0.1:16825 (requires authentication)
  • To manually trigger a refresh via Web UI:
    1. Visit http://127.0.0.1:16825
    2. Login with password from configs/pwd
    3. Navigate to Providers section and click refresh button