← 返回 Skills 市场
OpenClaw Model Usage
作者
Rana Salal Ali
· GitHub ↗
· v1.2.1
· MIT-0
159
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install openclaw-model-usage
功能描述
Inspect local OpenClaw model usage directly from session logs. Use when asked for the current model, recent model usage, usage breakdown by model, token tota...
安全使用建议
This skill appears to do what it says: parse local OpenClaw session JSONL files and build local summaries and an HTML dashboard. Before installing/running: (1) confirm you have Python 3.12+ available (the package requires it), (2) be aware it will read files under ~/.openclaw/agents by default (so don't run it if those logs are sensitive or you don't want local analysis), (3) the dashboard is written locally (--out path) and is self-contained (no external scripts), and (4) no credentials or network calls are requested by the code—if you need extra assurance, inspect the bundled scripts (scripts/model_usage.py and src/openclaw_model_usage/cli.py) or run the tool in a sandboxed environment. The smoke tests exercise subprocesses for local invocation but those are test-only and not network-related.
功能分析
Type: OpenClaw Skill
Name: openclaw-model-usage
Version: 1.2.1
The openclaw-model-usage skill is a legitimate utility designed to analyze local OpenClaw session logs (~/.openclaw/agents) to provide usage summaries and cost reports. The core logic in src/openclaw_model_usage/cli.py reads local JSONL files, aggregates token counts and costs, and generates human-readable summaries or a self-contained HTML dashboard. The code is well-structured, includes comprehensive tests (tests/smoke_test.py), and lacks any indicators of malicious intent such as data exfiltration, unauthorized network access, or obfuscation. The instructions in SKILL.md are aligned with the tool's purpose and provide helpful guidance to the AI agent on distinguishing between real and test data.
能力评估
Purpose & Capability
Name/description match the code and instructions: the package includes a Python CLI and script that parse ~/.openclaw/agents/*/sessions/*.jsonl and sessions.json to produce usage summaries and an optional local HTML dashboard. Nothing requested (env vars, binaries, config paths) is unrelated to this purpose.
Instruction Scope
SKILL.md and the CLI are scoped to reading local session JSONL and sessions.json files, producing summaries and a self-contained HTML file. The instructions explicitly direct the agent to use a local root (default ~/.openclaw/agents) and warn not to use test fixtures for production. There are no instructions to collect or transmit data to external endpoints.
Install Mechanism
No install spec is provided (instruction-only at registry level) and the project bundles Python scripts and a CLI implementation. This is low-risk: nothing is fetched from external URLs and no archive extraction or remote installs are present in the metadata. Running the tool requires a local Python runtime (pyproject requires >=3.12).
Credentials
The skill requires no environment variables, credentials, or special config paths beyond reading local OpenClaw logs. The requested file access (user home ~/.openclaw/agents) is coherent with the described functionality. No unrelated secrets or external service keys are requested.
Persistence & Privilege
The skill is not forced-always (always:false) and does not modify other skills or global agent configuration. It writes output only when asked (e.g., --out for dashboard) and otherwise performs read-only analysis of local logs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-model-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-model-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
Clarify live dashboard usage and mark fixtures as development-only
v1.2.0
Add static HTML dashboard and polish human-friendly summary workflow
v1.1.0
Add Phase 1 session-aware attribution with sessions/subagents/session-tree views
v1.0.0
Initial release
元数据
常见问题
OpenClaw Model Usage 是什么?
Inspect local OpenClaw model usage directly from session logs. Use when asked for the current model, recent model usage, usage breakdown by model, token tota... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 159 次。
如何安装 OpenClaw Model Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-model-usage」即可一键安装,无需额外配置。
OpenClaw Model Usage 是免费的吗?
是的,OpenClaw Model Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Model Usage 支持哪些平台?
OpenClaw Model Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Model Usage?
由 Rana Salal Ali(@ranasalalali)开发并维护,当前版本 v1.2.1。
推荐 Skills