LaunchKit · 2026
Back to Skills

agent-cost-monitor

Real-time token usage and cost tracking across all your OpenClaw agents — alerts, budgets, and optimization tips.

0
752 downloads
by @neal-collab

Setup & Installation

openclaw skills install @neal-collab/agent-cost-monitor

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install agent-cost-monitor

Version History

v1.1.1Feb 14, 2026 - Version note by skill developer:

Added changelog section, fixed version in frontmatter

What This Skill Does

Tracks token usage and estimated costs across multiple OpenClaw agents using the built-in session_status tool. Compares totals against configurable daily and weekly budget thresholds, then surfaces model-switching and configuration changes to reduce spend.

Because it uses OpenClaw's built-in session_status tool, the monitoring itself adds zero additional API cost.

When to use it

  • Checking which agent burned the most tokens overnight
  • Forecasting whether you'll hit a weekly rate limit before Friday
  • Running an automated daily cost digest via cron at a set hour
  • Spotting whether heartbeat pings are using an expensive model unnecessarily
  • Getting a projected weekly spend before approving a new agent workflow

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Give me a cost report for all agents

AGENT
  1. 1Calls session_status for each active agent to retrieve token counts
  2. 2Calculates per-agent estimated costs using the model pricing reference table
  3. 3Compares each agent's daily total against the configured per-agent max
  4. 4Flags any agents or weekly projections that exceed budget thresholds
  5. 5Generates a markdown report with a per-agent breakdown and ranked optimization recommendations
OUTPUT

Markdown table showing per-agent token counts, estimated costs, budget warnings, and specific config changes to reduce spend (model downgrade suggestions, heartbeat interval, cache settings)