ClawCost for Openclaw

ClawCost is a comprehensive financial monitoring tool designed to track API expenditures and optimize model usage for Openclaw Skills.

jairog813
v1.0.0
Mar 31, 2026
0
158
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clawcost-basic

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clawcost-basic using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawCost?

ClawCost serves as a financial oversight layer for AI developers, providing real-time tracking of every dollar spent during agent operations. By integrating directly into the workflow of Openclaw Skills, it monitors API calls across major providers like Anthropic, OpenAI, Google Gemini, and Mistral, ensuring complete transparency into your operational costs.

Beyond simple tracking, it acts as an intelligent financial advisor for your AI infrastructure. It proactively identifies spending patterns and provides actionable insights to reduce overhead, making it an indispensable utility for anyone running production-grade Openclaw Skills who needs to maintain strict budget control without sacrificing performance.

ClawCost Use Cases

  • Monitoring live API costs to prevent unexpected billing spikes during autonomous agent runs.
  • Receiving immediate Telegram notifications when your Openclaw Skills reach 80% or 100% of their allocated monthly budget.
  • Analyzing daily and monthly spend breakdowns to identify which models or tasks are driving the highest costs.
  • Implementing model optimization strategies by following automated recommendations for cheaper alternatives.

How ClawCost Works

  1. The system hooks into the outgoing API request lifecycle of Openclaw Skills to log token usage and provider metadata.
  2. Costs are calculated in real time based on the specific pricing tiers of the LLM providers being utilized.
  3. The data is aggregated into a local dashboard, allowing for instant retrieval of daily and monthly financial reports.
  4. A background monitoring process compares current spending against your user-defined budget caps.
  5. Automated alerts are dispatched via a Telegram bot whenever critical spending thresholds are exceeded.

ClawCost Setup

To get started with cost tracking for your Openclaw Skills, follow these steps:

# 1. Open dashboard.py and input your Telegram Bot Token and Chat ID
# 2. Configure your agent with a monthly budget limit
set budget $20

# 3. Verify the installation by requesting a status report
show my costs

ClawCost Data Schema & Taxonomy

ClawCost organizes financial data and metadata into a structured format for easy analysis within Openclaw Skills:

Attribute Description
Provider Metrics Spend data segmented by Anthropic, OpenAI, Gemini, and Mistral.
Budget Thresholds User-defined caps at which the system triggers alert hooks.
Optimization Logs Historical records of recommended model swaps and projected cost savings.
Usage Breakdowns Granular view of daily vs. monthly API consumption patterns.

ClawCost Advanced Features

  • Real-time model swap recommendations to find the most cost-effective balance for your Openclaw Skills.
  • Seamless Telegram integration for remote budget management and instant mobile alerts.
  • Automated budget capping to prevent accidental overspending during complex recursive agent tasks.
  • Multi-provider support ensuring that all expenditures across different AI ecosystems are unified in a single report.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*