Model Usage Linux
Track OpenClaw AI token usage and cost per model on Linux by parsing session JSONL files.
by aaaaqwq · MIT
The skill
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.
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
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: aaaaqwq/model-usage-linux-61668870338.
Details
- Publisher
- aaaaqwq
- Category
- Finance & Markets › Misc
- License
- MIT
- Updated
- 2026-10-14
References
More from aaaaqwq
- Agi Super Team Orchestrator 跨职能、公司级、高不确定性或用户明确要求 AGI Super Team、C-suite、团队协作、并行专家、独立复核时使用。先按职责选择最小团队,再用 Claude Code Agent 工具精…
- Agi Super Team Sync Preview, install, or update AGI Super Team in Codex.
- C Suite Team Run an outcome-oriented C-suite team in Codex with the parent acting as CEO, bounded specialist l…
- Context Engineering Optimizes agent context setup.