← Back to Skills Marketplace
Token消耗监控优化
by
freedompixels
· GitHub ↗
· v1.2.0
· MIT-0
132
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install qclaw-token-monitor
Description
AI Token消耗监控优化工具。读取会话日志,统计Token消耗,检测异常模式(短时激增、重复失败等),提供优化建议,生成消耗趋势报告。 中文优先,面向QClaw/OpenClaw用户。 当用户说"Token消耗"、"费用多少"、"Token统计"、"超支"、"优化建议"时触发。 Keywords: Token...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install qclaw-token-monitor - After installation, invoke the skill by name or use
/qclaw-token-monitor - Provide required inputs per the skill's parameter spec and get structured output
Version History
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 消耗趋势,可按天、指定日期查看。
- 自动检测异常消耗(如短时激增、重复失败等)并报警。
- 根据检测结果生成可用于优化的建议报告。
- 支持多种命令行参数,方便进行日常检查与异常分析。
- 提供丰富历史数据参考与详细优化建议库。
Metadata
Frequently Asked Questions
What is Token消耗监控优化?
AI Token消耗监控优化工具。读取会话日志,统计Token消耗,检测异常模式(短时激增、重复失败等),提供优化建议,生成消耗趋势报告。 中文优先,面向QClaw/OpenClaw用户。 当用户说"Token消耗"、"费用多少"、"Token统计"、"超支"、"优化建议"时触发。 Keywords: Token... It is an AI Agent Skill for Claude Code / OpenClaw, with 132 downloads so far.
How do I install Token消耗监控优化?
Run "/install qclaw-token-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Token消耗监控优化 free?
Yes, Token消耗监控优化 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Token消耗监控优化 support?
Token消耗监控优化 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Token消耗监控优化?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.2.0.
More Skills