← 返回 Skills 市场
hablabechir

Model Usage Linux

作者 HablaBechir · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1070
总下载
0
收藏
15
当前安装
1
版本数
在 OpenClaw 中安装
/install model-usage-linux
功能描述
Track OpenClaw AI token usage and cost per model on Linux by parsing session JSONL files. Use when asked about: token usage, API cost, how much has been spen...
安全使用建议
This skill appears to be a local analyzer that reads your OpenClaw session JSONL files and prints usage/cost summaries. Before running: (1) confirm the sessions directory path is correct and contains only data you want analyzed, (2) review the included scripts/usage.py (it is short and clearly local-only), and (3) run it locally (or point it at a copy of the sessions) if you want to avoid analyzing live files. There is no network or credential access in the code, so risk is low, but avoid running arbitrary code you haven't inspected on sensitive systems.
功能分析
Type: OpenClaw Skill Name: model-usage-linux Version: 1.0.0 The skill 'model-usage-linux' is designed to analyze OpenClaw AI token usage and cost from local session JSONL files. The `SKILL.md` provides clear, benign instructions for running the `scripts/usage.py` script. The Python script itself only reads and parses JSONL files from a specified directory (defaulting to `~/.openclaw/agents/main/sessions`), performs calculations, and prints a summary to standard output. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the agent. The code is straightforward, uses standard libraries, and strictly adheres to its stated purpose without engaging in any high-risk behaviors.
能力评估
Purpose & Capability
The skill name/description say it parses OpenClaw session JSONL files to report token/cost per model. The included script reads ~/.openclaw/agents/main/sessions/*.jsonl by default and computes per-model usage and cost. No unrelated dependencies, env vars, or binaries are requested — this is proportionate to the stated purpose.
Instruction Scope
SKILL.md instructs running the bundled Python script and optionally specifying a sessions directory or JSON output. The script only reads session JSONL files, does not access other system config, environment variables, or network endpoints, and prints a local summary. It silently skips malformed JSON lines and uses a default sessions path; this is within expected scope.
Install Mechanism
There is no install spec (instruction-only + included script). Nothing is downloaded or written to system locations by an installer. Running the script requires a local Python interpreter but no install-time network activity or package fetches are specified.
Credentials
The skill requests no environment variables, no credentials, and no special config paths beyond reading the user's OpenClaw sessions directory (~/.openclaw/agents/main/sessions). This is appropriate for a local usage-reporting tool.
Persistence & Privilege
The skill is not marked always: true and does not attempt to persist configuration or modify other skills. It runs as a normal user script and does not request elevated privileges or system-wide changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install model-usage-linux
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /model-usage-linux 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of model-usage-linux. - Track OpenClaw AI token usage and cost per model by parsing Linux session JSONL files. - Provides per-model breakdown: turns, input/output tokens, cache usage, and cost in USD. - Includes CLI options for output format and custom session directory. - Designed as a Linux replacement for the macOS-only model-usage/CodexBar skill.
元数据
Slug model-usage-linux
版本 1.0.0
许可证
累计安装 16
当前安装数 15
历史版本数 1
常见问题

Model Usage Linux 是什么?

Track OpenClaw AI token usage and cost per model on Linux by parsing session JSONL files. Use when asked about: token usage, API cost, how much has been spen... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1070 次。

如何安装 Model Usage Linux?

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

Model Usage Linux 是免费的吗?

是的,Model Usage Linux 完全免费(开源免费),可自由下载、安装和使用。

Model Usage Linux 支持哪些平台?

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

谁开发了 Model Usage Linux?

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

💬 留言讨论