← 返回 Skills 市场
Token Usage Tracker
作者
gerhardvr26
· GitHub ↗
· v1.0.0
338
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install oken-usage-tracker
功能描述
Token usage logging, alerting, and context-compression utilities for OpenClaw. Use when you want to track per-call token usage, normalize timestamps, and red...
安全使用建议
This skill appears to do exactly what it says: local token accounting, timestamp conversion, simple summarization, and example alerting. Before installing or deploying: 1) Read the scripts (they are small) and choose a safe log_folder (not a world-readable or system directory). 2) Restrict filesystem permissions for the log folder and consider rotating/retention to avoid unbounded disk growth. 3) Audit what you log — call payloads may include sensitive data; add redaction or avoid logging full contexts if privacy is a concern. 4) Do not enable or add webhook/web network calls (token_alerts hints at this) unless you trust the endpoint and sanitize data. 5) If you deploy the systemd example, update ExecStart path and User from the sample values before enabling. 6) Test in a controlled environment first. Overall: coherent and low-risk if used as-local examples and properly configured.
功能分析
Type: OpenClaw Skill
Name: oken-usage-tracker
Version: 1.0.0
The skill bundle provides utilities for token usage logging, alerting, and context compression, aligning perfectly with its stated purpose. All scripts perform local file I/O within a designated log folder and read a local configuration file. There is no evidence of data exfiltration, malicious execution, or unauthorized persistence. The `README.md` contains a prompt for the AI agent to 'package' the skill, but this is a benign meta-instruction related to skill management, not a malicious prompt injection attempt.
能力评估
Purpose & Capability
Name/description (token logging, alerts, summarization) match the provided scripts. All scripts operate locally, use only standard Python libraries, and require no external credentials or unrelated binaries.
Instruction Scope
SKILL.md instructs installing/wiring example scripts into your pipeline and using the summarizer. The scripts do perform filesystem actions (create ./skills/logs, append JSONL logs, replace files during migration/dedupe). The README and SKILL.md state the examples are safe and won't change system services automatically — this is true for services, but the scripts do modify local disk state (logs, tmp files). Also token_alerts includes a comment about replacing prints with webhooks; while not active by default, modifying scripts to post externally could exfiltrate logged data. The interceptor will process message payloads (which may contain sensitive content) and forward logging info, so review/redact before use.
Install Mechanism
There is no install spec (instruction-only). The package contains example Python scripts only — no downloads, packaged installers, or remote code execution. Risk from install mechanism is low.
Credentials
The skill requests no environment variables, no credentials, and no config paths beyond the provided skill-config.json. Log files are written under a relative ./skills/logs by default; this is proportional to the stated logging purpose.
Persistence & Privilege
always is false; the skill does not request persistent platform privileges or modify other skills. Scripts write and rotate/replace local log files under their own paths only.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install oken-usage-tracker - 安装完成后,直接呼叫该 Skill 的名称或使用
/oken-usage-tracker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
• Short description: Logs per‑call token usage, normalizes timestamps, and provides simple summarization and alert examples for OpenClaw.
• Long description / Changelog (paste into “description” or “changelog”):
• v1.0.0 — Initial release. Includes example scripts (token_tracker, token_interceptor, context_summarizer, token_alerts, migrate_timestamps, dedupe_log), skill-config.json (defaults: timezone=UTC, log_folder=./skills/logs), and example systemd unit. Safe examples only — no services enabled by default.
元数据
常见问题
Token Usage Tracker 是什么?
Token usage logging, alerting, and context-compression utilities for OpenClaw. Use when you want to track per-call token usage, normalize timestamps, and red... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 338 次。
如何安装 Token Usage Tracker?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install oken-usage-tracker」即可一键安装,无需额外配置。
Token Usage Tracker 是免费的吗?
是的,Token Usage Tracker 完全免费(开源免费),可自由下载、安装和使用。
Token Usage Tracker 支持哪些平台?
Token Usage Tracker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Token Usage Tracker?
由 gerhardvr26(@gerhardvr26)开发并维护,当前版本 v1.0.0。
推荐 Skills