← 返回 Skills 市场
OpenClaw Model Usage (Linux)
作者
aiyouwolegequ
· GitHub ↗
· v1.1.0
· MIT-0
77
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-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 do what it claims: parse your OpenClaw session files and report token/cost breakdowns locally. Before installing or running it, review the bundled scripts/usage.py yourself (it is included) and confirm you are comfortable with it reading files under ~/.openclaw/agents/main/sessions and writing snapshot/offset files under ~/.openclaw/workspace/skills/model-usage-linux. If those session files contain sensitive user messages you do not want processed, do not run the script or first move/inspect the session files. Because the skill runs locally and has no network code or credential requests, the main risks are local privacy (reading message content) and accidental writes to the workspace files — both expected for this utility.
功能分析
Type: OpenClaw Skill
Name: openclaw-model-usage-linux
Version: 1.1.0
The skill is a utility designed to track and report OpenClaw AI token usage and costs on Linux. It functions by parsing local session logs (JSONL files) located in the user's OpenClaw directory. The script `scripts/usage.py` performs data aggregation, handles session resets via local state files, and outputs a formatted summary to the console. There is no evidence of data exfiltration, network activity, or unauthorized command execution; the code's behavior is entirely consistent with its stated purpose.
能力评估
Purpose & Capability
Name/description say it will parse OpenClaw session JSONL files to report token usage and cost per model; the included script explicitly reads ~/.openclaw/agents/main/sessions and builds per-channel and per-model statistics, which matches the stated purpose.
Instruction Scope
SKILL.md tells the agent to run the included Python script and references sessions at ~/.openclaw/agents/main/sessions/*.jsonl, which is accurate. The script additionally reads sessions.json and will scan message content to detect channel labels; it also writes/reads snapshot and offset files under ~/.openclaw/workspace/skills/model-usage-linux (this write behavior is not mentioned in SKILL.md). The script processes message text and may therefore read user messages contained in those session files (expected for this purpose).
Install Mechanism
Instruction-only skill with no install spec and no external downloads; the code is bundled with the skill. No package managers or remote resources are pulled during install.
Credentials
The skill requests no environment variables or credentials. It only accesses files under the user's home (~/.openclaw/*), which is appropriate for a local usage/cost analyzer.
Persistence & Privilege
always:false and normal invocation are used. The script stores persistent state (reset_offsets.json and last_snapshot.json) under ~/.openclaw/workspace/skills/model-usage-linux to track offsets across runs — this is reasonable for its function but is persistent state the user should be aware of.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-model-usage-linux - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-model-usage-linux触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
基于 model-usage-linux 的增强版:新增中文报表输出、分渠道统计(QQ/微信/Telegram/main/cron/subagent)、增量对比、reset 偏移处理、每日费用明细、单轮成本分析
元数据
常见问题
OpenClaw 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 插件,目前累计下载 77 次。
如何安装 OpenClaw Model Usage (Linux)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-model-usage-linux」即可一键安装,无需额外配置。
OpenClaw Model Usage (Linux) 是免费的吗?
是的,OpenClaw Model Usage (Linux) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Model Usage (Linux) 支持哪些平台?
OpenClaw Model Usage (Linux) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Model Usage (Linux)?
由 aiyouwolegequ(@aiyouwolegequ)开发并维护,当前版本 v1.1.0。
推荐 Skills