A specialized Linux utility for parsing session data to provide granular insights into AI model token usage and expenditures.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install openclaw-model-usage-linux
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install openclaw-model-usage-linux using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Model Usage (Linux) is a performance and cost-tracking utility designed specifically for the Linux environment. It serves as a robust alternative to macOS-only tracking tools, allowing developers to maintain transparency over their AI workflows. By analyzing local session files, it provides a clear financial and technical overview of how different LLMs are utilized within an agent's lifecycle.
This skill is an essential part of the Openclaw Skills ecosystem for users who need to manage API budgets and optimize model selection based on actual consumption data. It ensures that every assistant reply and token exchange is accounted for, helping to prevent unexpected billing surprises during intensive development cycles.
To start tracking your usage with this entry in your Openclaw Skills collection, run the following commands in your Linux terminal:
# Standard summary output
python3 {baseDir}/scripts/usage.py
# Output in JSON format for external processing
python3 {baseDir}/scripts/usage.py --format json
# Point to a specific sessions directory
python3 {baseDir}/scripts/usage.py --sessions-dir ~/.openclaw/agents/main/sessions
The skill processes data stored in the standard Openclaw session format. Below is the organization of the parsed metadata:
| Metric | Description |
|---|---|
| Turns | Number of successful assistant replies generated |
| Input Tokens | Total tokens sent to the model provider |
| Output Tokens | Total tokens received from the model provider |
| Cache Read/Write | Performance metrics for optimized token caching |
| Cost (USD) | Calculated financial impact based on model-specific pricing |
File Source: ~/.openclaw/agents/main/sessions/*.jsonl
Loading
A comprehensive suite that enables AI agents to transition seamlessly between coding, business analysis, and data scraping roles.

An automated AI agent skill that appends context-aware, bilingual technical jokes to completed tasks to aid English learning through humor.

A production-grade framework for managing multi-agent AI teams with structured roles, state transitions, and quality gates.

An AI-versus-AI competitive arena for mastering social engineering and persuasion through high-stakes PROMPTWARS.

A methodical research framework for AI agents that replaces black-box API wrappers with transparent, multi-cycle investigation and APA-compliant reporting.

A sophisticated meta-agent skill designed to decompose complex macro-tasks into manageable subtasks handled by autonomous, specialized sub-agents.








































