A powerful analytics tool to monitor, report, and optimize AI token usage and costs across all agent sessions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install usage-costs
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 usage-costs using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Usage Costs skill provides deep visibility into the financial impact of running AI agents within the Openclaw Skills ecosystem. By monitoring live sessions and historical logs, it delivers precise reports on token consumption, specifically optimized for high-performance models like Claude Sonnet. It helps developers understand where their budget is going by breaking down costs into input, output, and cache-related expenses.
This skill is particularly useful for teams running complex workflows or automated cron jobs that require regular auditing to ensure resource efficiency. It bridges the gap between raw API usage and actionable financial insights directly through the terminal or chat interface.
To initialize the tracking environment for Openclaw Skills, ensure your local context is configured:
# Create the local context file with your pricing variables
echo "PRICING_INPUT=3.00" > /opt/ocana/openclaw/workspace/skills/usage-costs/.context
echo "PRICING_OUTPUT=15.00" >> /opt/ocana/openclaw/workspace/skills/usage-costs/.context
# Ensure the token history log exists
touch /opt/ocana/openclaw/workspace/data/token-history.jsonl
The skill organizes usage data across several flat-file formats for transparency:
| Data Source | Format | Key Metrics Captured |
|---|---|---|
token-history.jsonl |
JSONL | Date, input/output tokens, cache_read, cost_usd |
cron/runs/*.jsonl |
JSONL | Job name, timestamp, usage.input_tokens, usage.output_tokens |
status --deep |
CLI Output | Session key, model, kind (main/subagent), active tokens |
sessions/*.jsonl |
JSONL | Detailed message-level usage and provider-calculated cost |
Loading
A comprehensive technical SEO skill focused on optimizing site structure, fixing crawl errors, and ensuring discoverability by both traditional search engines and AI crawlers.

Automate the generation and delivery of structured reports across any chat channel using scheduled cron tasks.

A professional tool for implementing the IndexNow protocol to ensure search engines are instantly notified of new or updated content.

A specialized technical SEO skill for diagnosing and resolving Google Search Console indexing issues and managing page-level crawl directives.

A high-performance research engine that executes parallel searches, deduplicates findings, and delivers cited, concise answers under 400 words.

A logic-based routing system that ensures AI agents save information to the correct destination, preventing local clutter and improving data accessibility.








































