← 返回 Skills 市场
Token消耗监控优化
作者
freedompixels
· GitHub ↗
· v1.2.0
· MIT-0
132
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install qclaw-token-monitor
功能描述
AI Token消耗监控优化工具。读取会话日志,统计Token消耗,检测异常模式(短时激增、重复失败等),提供优化建议,生成消耗趋势报告。 中文优先,面向QClaw/OpenClaw用户。 当用户说"Token消耗"、"费用多少"、"Token统计"、"超支"、"优化建议"时触发。 Keywords: Token...
安全使用建议
This skill is instruction-only and expects Python scripts at ~/.qclaw/skills/token-monitor/scripts/token_stats.py and session logs at ~/.qclaw/agents/main/sessions/*.jsonl. Before using: (1) Confirm those script files actually exist and inspect their contents — do not run unknown scripts without review. (2) Be aware session logs may contain message text, PII, or API keys; ensure you are comfortable the tool will only compute token metrics and will not transmit sensitive data. (3) Check file permissions and backups for any files the scripts will write (memory/token-usage-*.json). (4) If the scripts require third-party Python packages (despite the SKILL.md saying none), review and vet those dependencies. If you cannot review the local scripts, consider declining or asking the skill author for the implementation before installation.
功能分析
Type: OpenClaw Skill
Name: qclaw-token-monitor
Version: 1.2.0
The skill bundle is a utility designed to monitor and optimize AI token consumption by analyzing local session logs (~/.qclaw/agents/main/sessions/*.jsonl). The provided documentation (SKILL.md) and metadata (_meta.json) describe legitimate administrative functions such as usage statistics, anomaly detection, and cost reporting, with no evidence of malicious intent, data exfiltration, or harmful prompt injection.
能力评估
Purpose & Capability
The name/description (token consumption monitoring and optimization) aligns with the actions described (reading session logs under ~/.qclaw/agents/main/sessions/*.jsonl and running a token_stats.py script). However the skill is instruction-only and does not include the referenced scripts; it therefore depends on those local files being present on the user's machine.
Instruction Scope
SKILL.md explicitly instructs the agent to run local Python scripts and to read session log files in ~/.qclaw/agents/main/sessions/*.jsonl and write stats to memory/token-usage-YYYY-MM-DD.json. Reading session logs is required for token accounting; the scope does not attempt to exfiltrate data or call external endpoints in the instructions.
Install Mechanism
There is no install spec and no code shipped with the skill (instruction-only). This minimizes installation risk, but also means functionality depends entirely on pre-existing local scripts at the documented paths.
Credentials
The skill requests no environment variables, credentials, or external config paths. It only references local session logs and local script paths which are coherent with its stated purpose.
Persistence & Privilege
always is false and the skill does not request elevated/persistent platform privileges. It does read user session files and write local stats, which is appropriate for its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install qclaw-token-monitor - 安装完成后,直接呼叫该 Skill 的名称或使用
/qclaw-token-monitor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
- Added OpenClaw metadata and enhanced the description for better skill discovery and user engagement.
- Expanded usage keywords and trigger phrases for improved activation.
- Added "依赖" section, clarified Python version and third-party dependencies.
- Removed scripts/token_stats.py file from the project.
- Maintained and updated documentation to reflect recent file changes and usage improvements.
v1.1.0
Version 1.1.0 of qclaw-token-monitor
- No file changes detected in this release.
- Documentation and user instructions remain unchanged.
- No new features, bug fixes, or rule updates included.
v1.0.0
Token Monitor - AI Token 消耗监控技能首次发布。
- 统计并展示 AI Token 消耗趋势,可按天、指定日期查看。
- 自动检测异常消耗(如短时激增、重复失败等)并报警。
- 根据检测结果生成可用于优化的建议报告。
- 支持多种命令行参数,方便进行日常检查与异常分析。
- 提供丰富历史数据参考与详细优化建议库。
元数据
常见问题
Token消耗监控优化 是什么?
AI Token消耗监控优化工具。读取会话日志,统计Token消耗,检测异常模式(短时激增、重复失败等),提供优化建议,生成消耗趋势报告。 中文优先,面向QClaw/OpenClaw用户。 当用户说"Token消耗"、"费用多少"、"Token统计"、"超支"、"优化建议"时触发。 Keywords: Token... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。
如何安装 Token消耗监控优化?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install qclaw-token-monitor」即可一键安装,无需额外配置。
Token消耗监控优化 是免费的吗?
是的,Token消耗监控优化 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Token消耗监控优化 支持哪些平台?
Token消耗监控优化 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token消耗监控优化?
由 freedompixels(@freedompixels)开发并维护,当前版本 v1.2.0。
推荐 Skills