tokenmeter
Track AI token usage and costs across providers. Import sessions, view dashboard, costs breakdown, and compare Max plan savings.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cheenu1092-oss/tokenmeterWhat This Skill Does
The tokenmeter skill for OpenClaw is a powerful, privacy-focused utility designed to bring transparency to your AI usage. As LLM interactions become a staple of daily workflows, tracking token consumption and associated costs is essential for both individual power users and enterprise environments. This tool monitors your AI interactions across all OpenClaw instances, logging data locally into a secure SQLite database (~/.tokenmeter/usage.db). Because it operates entirely locally without telemetry or cloud-syncing, your usage patterns remain strictly private. Beyond simple monitoring, tokenmeter acts as a financial intelligence tool, helping you calculate real-time cost estimates, identify which models drive your expenses, and audit your usage patterns to catch potential overages or inefficiencies before they impact your budget.
Installation
The OpenClaw bot manages the entire installation lifecycle for this skill automatically. When you first invoke a tokenmeter command, the bot checks for the existence of the utility in your ~/clawd/ directory. If it is missing, the bot performs a automated setup: it clones the repository from https://github.com/jugaad-lab/tokenmeter.git, initializes a dedicated Python virtual environment to manage dependencies, and installs the necessary packages. Once the initial setup concludes, the bot simply activates the environment for subsequent requests. Users do not need to perform any manual configuration, path management, or dependency resolution, making it a true 'install-and-forget' experience.
Use Cases
- Expense Auditing: Periodically review your spending to ensure you remain within budget, especially when utilizing high-end models like Claude-Opus.
- Subscription Value Tracking: Compare your current API-based usage against the potential savings of a fixed-price 'Max' subscription, proving ROI on subscription costs.
- Optimization Analysis: Identify 'model bloat' by detecting if you are using expensive models for simple tasks that could be handled by faster, cheaper alternatives.
- Unified Reporting: Aggregate data from multiple OpenClaw instances into a single source of truth for your total AI footprint.
Example Prompts
- "tokenmeter, how much did I spend on AI models during the last week?"
- "Can you show me a breakdown of my costs by model to see where my tokens are going?"
- "Run a report to compare my current API usage against what I would pay under the Max plan savings."
Tips & Limitations
To get the most out of tokenmeter, run the import command regularly to ensure your data stays fresh. While the tool is highly accurate for tracked sessions, it is limited to the data accessible within your OpenClaw session files. It does not track usage from third-party tools outside the OpenClaw environment. For the best security, the local SQLite file should be included in your standard system backup routine if you wish to retain long-term historical records.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cheenu1092-oss-tokenmeter": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
clawguard
Security blacklist protecting AI agents from malicious skills, scams, and prompt injection. Use before executing external commands, visiting unknown URLs, or installing new skills. Triggers on "security check", "is this safe", "check this URL", or suspicious command patterns.
clawdscan
Diagnose Clawdbot/OpenClaw health — session bloat, zombies, stale files, AND skill dependency validation. Zero dependencies, single Python file.
claude-code-mastery
Master Claude Code for coding tasks. Includes setup scripts, dev team subagents (starter pack or full team), self-improving learning system, diagnostics, and troubleshooting.
tribe-protocol
MANDATORY trust lookup for every non-owner interaction. Query tribe.db to check entity trust tier, channel access, and data boundaries before responding. Run 'tribe init' on first install. Use 'tribe lookup <discord_id>' before every non-owner response.