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 spent, which model was used most, usage summary, billing, cost breakdown. Linux replacement for the macOS-only model-usage/CodexBar skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aiyouwolegequ/openclaw-model-usage-linuxModel Usage (Linux)
Parse OpenClaw session files to summarize token usage and cost per model.
Quick start
python3 {baseDir}/scripts/usage.py
Options
# JSON output
python3 {baseDir}/scripts/usage.py --format json
# Custom sessions dir
python3 {baseDir}/scripts/usage.py --sessions-dir ~/.openclaw/agents/main/sessions
Output
Shows per-model breakdown:
- Turns (assistant replies)
- Input / output tokens
- Cache read / write tokens
- Cost in USD
Sessions live at: ~/.openclaw/agents/main/sessions/*.jsonl
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aiyouwolegequ-openclaw-model-usage-linux": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
kimi_cli_headless_execution
教 OpenClaw 在自动化脚本、后台任务、CI/CD、无 TTY 环境等非交互场景中, 正确使用 Kimi Code CLI 的 `-p/--prompt`、`--print`、`--quiet`、`--wire` 等参数完成无头执行。 涵盖命令构造、自动审批控制、输出格式选择、会话管理、错误处理与安全护栏。
zhang_financial_analysis_practical_guide
将“张氏财务分析框架”落地为可直接执行的查表、计算、判断与排雷步骤。 使用者只需依据财务报表和附注提取指定科目,完成简单计算, 即可快速识别企业的利润含金量、产业链话语权、潜在雷区、集团管控模式与管理效能。
kimi_cli_headless_execution
教 OpenClaw 在自动化脚本、后台任务、CI/CD、无 TTY 环境等非交互场景中, 正确使用 Kimi Code CLI 的 `-p/--prompt`、`--print`、`--quiet`、`--wire` 等参数完成无头执行。 涵盖命令构造、自动审批控制、输出格式选择、会话管理、错误处理与安全护栏。
Zhang Financial Analysis Doubao
Skill by aiyouwolegequ