ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aiyouwolegequ/openclaw-model-usage-linux
Or

Model 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

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aiyouwolegequ-openclaw-model-usage-linux": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.