← 返回 Skills 市场
ttjsndx

Token Usage Monitor

作者 ttjsndx · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
272
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install token-usage-monitor
功能描述
Monitor and display token usage metrics for AI models. Use when you need to track token consumption rates, view historical usage data, or get alerts about hi...
安全使用建议
This skill appears coherent and local-only: it records token counts to a JSON file and offers CLI and integration points to instrument your model calls. Before installing: (1) inspect the Python file if you will run it; (2) note it will write usage data to a local file (documented as ~/.openclaw/token_usage.json) — the current implementation does not expand '~', so you may want to fix path handling (use os.path.expanduser) to ensure the file ends up where you expect; (3) integrating automatic tracking requires adding calls into your session wrapper/heartbeat as described — review those changes to avoid unintended behavior; (4) be cautious if you extend _check_thresholds to send emails or webhooks since that will require network endpoints and credentials; store any such credentials securely. Overall this is internally consistent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: token-usage-monitor Version: 1.0.0 The token-usage-monitor skill is a legitimate utility designed to track and report AI model token consumption. The core logic in scripts/token_usage_tracker.py manages usage data locally in ~/.openclaw/token_usage.json and provides standard reporting and threshold alerting features without any evidence of data exfiltration, malicious execution, or unauthorized access to sensitive system resources.
能力评估
Purpose & Capability
Name/description align with included code and docs: the repo provides a Python tracker, CLI examples, and integration guidance for instrumenting model calls. No unrelated credentials, binaries, or services are requested.
Instruction Scope
Runtime instructions and SKILL.md focus on tracking, reporting, and alerting. The script persists data to a file (documented as ~/.openclaw/token_usage.json) and integration guidance instructs modifying session startup/heartbeat to call the tracker—this is expected for the stated purpose. Implementation detail: the script calls os.makedirs(os.path.dirname(self.data_file)) but does not expand the tilde (~) in the default path, so it may create a literal directory named '~' relative to the working directory instead of ~/.openclaw; this is a bug to be aware of but not a security red flag.
Install Mechanism
Instruction-only skill with an included Python script. No install spec or remote downloads; nothing will be fetched or executed from external URLs during install.
Credentials
The skill requests no environment variables, credentials, or config paths. All data is local to a JSON file. The integration examples mention optional email/webhook alerts but those are commented/outlines — adding those would require adding credentials later, so review any extensions before enabling.
Persistence & Privilege
The skill does not request 'always' inclusion and does not modify other skills or global agent settings. It writes a single local data file for its own usage and is invocable by the user or by explicit integration code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-usage-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-usage-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of token-usage-monitor. - Monitor real-time token consumption per request, session, and model. - Analyze historical token usage with daily, weekly, and monthly reports. - Set custom token usage thresholds and receive alerts when limits are exceeded. - Estimate costs based on token usage and model pricing to help optimize expenses. - Includes a Python script for tracking, reporting, and managing token usage data.
元数据
Slug token-usage-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Token Usage Monitor 是什么?

Monitor and display token usage metrics for AI models. Use when you need to track token consumption rates, view historical usage data, or get alerts about hi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 272 次。

如何安装 Token Usage Monitor?

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

Token Usage Monitor 是免费的吗?

是的,Token Usage Monitor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Token Usage Monitor 支持哪些平台?

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

谁开发了 Token Usage Monitor?

由 ttjsndx(@ttjsndx)开发并维护,当前版本 v1.0.0。

💬 留言讨论