Install
openclaw skills install openclaw-model-usageInspect local OpenClaw model usage directly from session logs. Use when asked for the current model, recent model usage, usage breakdown by model, token totals, cost summaries, per-agent usage, or daily model usage summaries.
openclaw skills install openclaw-model-usageUse this skill to inspect local OpenClaw model usage directly from session JSONL files.
Use this skill when the user asks for:
This skill provides a local-first replacement for external model-usage workflows.
It reads OpenClaw session logs directly and does not depend on CodexBar.
Start with a short human-readable summary:
python {baseDir}/scripts/model_usage.py
python {baseDir}/scripts/model_usage.py overview
python {baseDir}/scripts/model_usage.py top-agents
python {baseDir}/scripts/model_usage.py top-sessions
Generate the HTML dashboard from real local logs when the user wants a richer artifact:
python {baseDir}/scripts/model_usage.py dashboard --root ~/.openclaw/agents --out dist/dashboard.html --title "OpenClaw Usage Dashboard"
Recommended response pattern:
python {baseDir}/scripts/model_usage.py overview --json --pretty
python {baseDir}/scripts/model_usage.py sessions --json --pretty
python {baseDir}/scripts/model_usage.py subagents --json --pretty
python {baseDir}/scripts/model_usage.py rows --limit 20 --json --pretty
Default real source:
~/.openclaw/agents
Important:
tests/fixtures_root unless you are intentionally running development testsIf you need field-level sourcing details, read:
references/discovery.md