Install
openclaw skills install openclaw-model-usage-linuxTrack 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...
openclaw skills install openclaw-model-usage-linuxParse OpenClaw session files to summarize token usage and cost per model.
python3 {baseDir}/scripts/usage.py
# JSON output
python3 {baseDir}/scripts/usage.py --format json
# Custom sessions dir
python3 {baseDir}/scripts/usage.py --sessions-dir ~/.openclaw/agents/main/sessions
Shows per-model breakdown:
Sessions live at: ~/.openclaw/agents/main/sessions/*.jsonl