← Back to Skills Marketplace
aiyouwolegequ

OpenClaw Model Usage (Linux)

by aiyouwolegequ · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
77
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-model-usage-linux
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-model-usage-linux
  3. After installation, invoke the skill by name or use /openclaw-model-usage-linux
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
基于 model-usage-linux 的增强版:新增中文报表输出、分渠道统计(QQ/微信/Telegram/main/cron/subagent)、增量对比、reset 偏移处理、每日费用明细、单轮成本分析
Metadata
Slug openclaw-model-usage-linux
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 77 downloads so far.

How do I install OpenClaw Model Usage (Linux)?

Run "/install openclaw-model-usage-linux" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is OpenClaw Model Usage (Linux) free?

Yes, OpenClaw Model Usage (Linux) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does OpenClaw Model Usage (Linux) support?

OpenClaw Model Usage (Linux) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created OpenClaw Model Usage (Linux)?

It is built and maintained by aiyouwolegequ (@aiyouwolegequ); the current version is v1.1.0.

💬 Comments