A comprehensive diagnostic tool for tracking multi-agent token consumption and estimated API costs across your entire AI infrastructure.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install panthrocorp-token-usage
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 panthrocorp-token-usage using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Token Usage skill provides deep visibility into the resource consumption of your AI ecosystem. By dynamically discovering agents and parsing session data, it offers a comprehensive breakdown of input and output tokens, ensuring you stay informed about your operational spend. This tool is a cornerstone of the Openclaw Skills library for users who need to manage multiple agents across various platforms like Discord, Telegram, or automated cron jobs.
It goes beyond simple counting by calculating estimated USD costs and identifying usage patterns. Whether you are running a single assistant or a fleet of autonomous agents, this skill helps you maintain a lean and efficient setup by highlighting exactly where your tokens are being spent and which models are driving costs.
To utilize this within your Openclaw Skills environment, ensure your agents are stored in the standard directory structure. The skill requires no external API keys as it processes local metadata.
# Ensure your agents have session data available in:
~/.openclaw/agents/<agent_name>/sessions/sessions.json
# Run the skill to generate a report. History is stored in:
~/.openclaw/workspace/memory/token-usage-history.ndjson
The skill organizes and persists data using a structured metadata taxonomy to ensure long-term trackability:
| Data Point | Description |
|---|---|
| Category | Extracted from session keys (e.g., discord, telegram, cron, main). |
| Token Metrics | Tracks totalTokens, inputTokens, and outputTokens per session. |
| Financials | Calculates estimatedCostUsd based on model-specific metadata. |
| History | Records are stored in NDJSON format for easy parsing by external tools. |
Each history record includes a UTC date, the time window used, a run timestamp, and detailed nested objects for both individual agent totals and combined global metrics.
Loading
A streamlined tool for searching public GitHub repositories, issues, and user profiles via the REST API without requiring an authentication token.

A comprehensive search and retrieval tool for Project Gutenberg's library of over 70,000 free, public-domain ebooks.

An automated workflow for the Douyin Creator Platform that streamlines the creation, formatting, and drafting of image-text articles.

A powerful bridge for routing Agent-to-Agent protocol messages through secure Pilot tunnels with NAT traversal.

Access the Global Biodiversity Information Facility to search species taxonomy and retrieve georeferenced occurrence records worldwide.

A comprehensive toolkit for geocoding, timezone lookups, and country metadata tailored for AI agents.








































