← 返回 Skills 市场
lujohn74

OpenClaw Token Usage

作者 Lu Yanqiang · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ 安全检测通过
159
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install openclaw-token-usage
功能描述
Inspect token usage from local OpenClaw transcripts across a specified time range. Use when the user asks how many tokens were consumed in OpenClaw, GitHub C...
安全使用建议
This skill appears to do what it says: it reads OpenClaw transcript files from your home directory and summarizes token usage locally. Before running, confirm the transcript path (~/.openclaw/agents/...) is where you keep the data you want analyzed, and that you are comfortable running a third‑party Python script on those files. The script can write JSON/CSV/markdown to paths you supply—verify output paths to avoid overwriting important files. If you need extra assurance, inspect the remainder of the script (the truncated portion) yourself for any network calls or subprocess invocations; if no network calls are present, running it locally is low-risk. Also ensure your Python environment supports zoneinfo or pass a simple tz like UTC/UTC+8 as advised in SKILL.md.
功能分析
Type: OpenClaw Skill Name: openclaw-token-usage Version: 1.2.0 The skill bundle provides a utility for aggregating and reporting token usage from local OpenClaw transcript files. The Python script (report_openclaw_token_usage.py) reads JSONL files from the ~/.openclaw/agents/ directory, calculates metrics like input/output tokens and cache usage, and generates reports in text, JSON, CSV, or Markdown formats. The code uses standard libraries, lacks network or suspicious execution capabilities, and the instructions in SKILL.md are strictly aligned with the stated purpose of usage monitoring.
能力评估
Purpose & Capability
The name/description promise (inspect token usage from local OpenClaw transcripts) matches the bundled Python script which reads ~/.openclaw/agents/*/sessions/, parses transcript JSONL, aggregates token metrics, and emits summaries/CSV/JSON/markdown. There are no unrelated binaries, credentials, or config paths requested.
Instruction Scope
SKILL.md tells the agent to run the included script with time range, tz, and optional scope filters; the script implementation confines itself to reading transcript files under the user's OpenClaw directory and producing local outputs. There are no instructions to read unrelated system files, environment variables, or to send data to external endpoints.
Install Mechanism
No install spec is present (instruction-only with a bundled script). No remote downloads or archive extraction are used. Risk is limited to local execution of the provided Python script.
Credentials
The skill requests no environment variables or credentials. It accesses files only under the user's home OpenClaw paths (sessions and sessions.json), which is proportionate to its stated purpose.
Persistence & Privilege
The skill is not always-enabled and uses normal agent invocation. It does not request persistent system-wide privileges or modify other skills' configuration in the reviewed code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-token-usage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-token-usage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Add markdown report output with auto-generated findings; keep JSON/CSV/session exports.
v1.1.0
Add Top N session ranking, session-level totals, and CSV directory export support.
v1.0.0
Initial release: transcript-based token usage reporting by time range, day, agent, and model.
元数据
Slug openclaw-token-usage
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

OpenClaw Token Usage 是什么?

Inspect token usage from local OpenClaw transcripts across a specified time range. Use when the user asks how many tokens were consumed in OpenClaw, GitHub C... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 159 次。

如何安装 OpenClaw Token Usage?

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

OpenClaw Token Usage 是免费的吗?

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

OpenClaw Token Usage 支持哪些平台?

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

谁开发了 OpenClaw Token Usage?

由 Lu Yanqiang(@lujohn74)开发并维护,当前版本 v1.2.0。

💬 留言讨论