A zero-dependency, local Python CLI tool to monitor token usage and statistics for popular AI coding agents like Hermes, Claude Code, CodeX, and OpenClaw.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-agent-usage-stats
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 ai-agent-usage-stats using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
AI Agent Usage Stats is a local command-line utility that aggregates and displays token usage statistics across multiple prominent AI development assistants. By serving as an accessible dashboard for your local environment, it stands out as an incredibly lightweight utility in the catalog of Openclaw Skills to help developers manage LLM API costs.
The tool operates on three fundamental principles. First, it is fully interactive, prompting you with an on-run menu to select which agent's data you wish to inspect. Second, it respects your absolute privacy by running fully offline and reading only local database files. Third, it is written entirely using the Python standard library, providing a zero-dependency setup that integrates smoothly with standard developer toolchains.
agent-usage-stats command, either directly in the terminal, through an interactive watch loop, or nested within another agent's run script.To install and configure the utility, execute the following commands:
# Install the skill from clawhub
clawhub install ai-agent-usage-stats
# Run the setup script to initialize paths
python3 ~/skills/ai-agent-usage-stats/agent-usage-stats.py setup
# Open the default interactive menu
agent-usage-stats
# Directly view a specific agent's stats (skips menu)
agent-usage-stats -a hermes
agent-usage-stats -a claude-code
agent-usage-stats -a codex
# Monitor token usage in real-time
agent-usage-stats --watch
agent-usage-stats -a hermes --watch
# List all supported backends detected on your system
agent-usage-stats --list-backends
# Check the installed version
agent-usage-stats --version
You can integrate the tool as a post-task hook in your Hermes setup by adding this to your SKILL.md configurations:
run: agent-usage-stats -a hermes
The utility dynamically inspects and extracts metrics from local application directories. Below is the mapping of how the skill retrieves token consumption data:
| Agent Backend | Local Data Source Path | Extraction Details |
|---|---|---|
| Hermes | ~/.hermes/state.db |
Queries the sessions table within the SQLite database. |
| Claude Code | ~/.claude/projects/**/*.jsonl |
Iteratively parses project history JSON Lines files. |
| CodeX | ~/.codex/state_*.sqlite |
Queries the threads table inside the user's localized state. |
| OpenClaw | ~/.openclaw/agents/main/sessions/ |
Inspects directory session structures and local files. |
-a hermes) for script automations.--watch parameter to observe session-by-session token growth as you work with your AI agents.Loading
The OPC Playbook is a dual-mode strategic framework designed to help solo founders rigorously evaluate startup viability and systematically execute an AI-native business model.

An AI-powered multi-dimensional code review tool that scans code changes and provides structured feedback, risk assessments, and code fixes.

A fully offline project generator and deployer that builds a local MLX Whisper audio transcription and translation Web GUI tailored for Apple Silicon.

An elite execution brief generator designed to eliminate wasted tokens and ensure precise downstream agent execution.

A highly structured, metric-driven modify-verify-decide optimization loop with strict safety gates and approval contracts for AI coding agents.

An automated multi-stage video analysis pipeline that processes parallel visual frames and audio transcriptions to synthesize optimized, publish-ready metadata for Bilibili.








































