← 返回 Skills 市场
limingdev-tech-2024

Aiclient2api Usage

作者 limingdev-tech-2024 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
261
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install aiclient2api-usage
功能描述
Check AIClient2API usage statistics, quotas, and account status. Use when the user asks about AIClient2API usage, credits, quotas, subscription status, or wh...
使用说明 (SKILL.md)

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
安全使用建议
This skill is meant to read a local AIClient2API cache and optionally trigger a refresh via the local web API. Before installing or running it: 1) Review the scripts yourself — they will read ~/web/AIClient-2-API/configs/usage-cache.json and ~/web/AIClient-2-API/configs/pwd (these contain account info and a password). 2) Understand that it executes local commands (curl, node, jq, bc, ps, awk, grep, stat). The metadata does not declare these dependencies; make sure those binaries are available and trustworthy. 3) Only use this if you run AIClient2API locally and trust the service and scripts. 4) If you are uncomfortable with a tool reading a local password file, do not install; consider running the commands manually after inspecting them. 5) If you want higher assurance, ask the publisher to: (a) declare required binaries, (b) avoid reading plain-text password files or at least document and justify that access, and (c) avoid executing transient scripts without explicit user consent.
功能分析
Type: OpenClaw Skill Name: aiclient2api-usage Version: 1.0.0 The skill bundle provides tools to monitor AIClient2API usage by reading local configuration files and interacting with a local API endpoint (127.0.0.1:16825). The scripts (check_usage.sh, refresh_usage.sh) perform authentication using a local password file to retrieve and display usage metrics like credits and quotas. No evidence of data exfiltration, remote execution, or malicious intent was found; the behavior is entirely consistent with the stated purpose of monitoring a local service.
能力评估
Purpose & Capability
The skill's purpose (check local AIClient2API usage) matches what the scripts do (read ~/web/AIClient-2-API/configs/usage-cache.json, hit localhost API, read configs/pwd). However the package metadata declares no required binaries or credentials while the scripts clearly rely on tools (curl, jq, bc, node, ps, awk, grep, stat). Not declaring those dependencies is an incoherence that could cause silent failures or unexpected behavior.
Instruction Scope
SKILL.md and the scripts confine actions to a local AIClient2API installation and its cache file, and to 127.0.0.1:16825. That is in-scope for usage-checking. The instructions explicitly tell the agent to read ~/web/AIClient-2-API/configs/usage-cache.json and configs/pwd; this is sensitive but coherent with the stated purpose.
Install Mechanism
This is instruction-only (no install spec). No remote downloads or archive extraction occur. The scripts do create and run a temporary Node.js file under /tmp, but that's local execution rather than an installer. No high-risk install mechanism detected.
Credentials
The skill requests no environment variables or registry credentials, yet its runtime behavior reads a local password file (configs/pwd) and the usage cache. Access to local credential files is sensitive; the skill does not declare or warn about this. Also required CLI tools (curl, node, jq, bc) are not declared, meaning the skill assumes the environment has broad tooling available.
Persistence & Privilege
always is false and the skill does not modify system-wide configuration or other skills. It writes a temporary /tmp/refresh_usage.js file to trigger a refresh and removes it; this transient file creation is limited in scope and does not persist beyond the run.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aiclient2api-usage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aiclient2api-usage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
aiclient2api-usage 1.0.0 initial release - New skill to check AIClient2API usage statistics, quotas, and account status. - Provides scripts and instructions for viewing credits, quotas, subscription type, and expiration dates. - Supports checking free trial status, monthly quotas, and overage policies. - Usage data is sourced from a local cache file and can be refreshed manually or via web UI.
元数据
Slug aiclient2api-usage
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Aiclient2api Usage 是什么?

Check AIClient2API usage statistics, quotas, and account status. Use when the user asks about AIClient2API usage, credits, quotas, subscription status, or wh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 261 次。

如何安装 Aiclient2api Usage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aiclient2api-usage」即可一键安装,无需额外配置。

Aiclient2api Usage 是免费的吗?

是的,Aiclient2api Usage 完全免费(开源免费),可自由下载、安装和使用。

Aiclient2api Usage 支持哪些平台?

Aiclient2api Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Aiclient2api Usage?

由 limingdev-tech-2024(@limingdev-tech-2024)开发并维护,当前版本 v1.0.0。

💬 留言讨论