Skip to content
Back to skills

Model Usage Linux

ASecurity

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.

  • 92 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add aAAaqwq/AGI-Super-Team --skill model-usage-linux --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Usage Linux?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Usage Linux
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-model-usage-linux-agi-super-team/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-model-usage-linux-agi-super-team)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-usage-linux
description: "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

```bash
python3 {baseDir}/scripts/usage.py
```

## Options

```bash
# 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`

Files in this skill

  • .clawhub/origin.json149 B
  • SKILL.md890 B
  • _meta.json136 B
  • scripts/usage.py4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.