cost-reportTrack OpenClaw usage costs and provide detailed reports by date and model. Supports daily, weekly, and monthly report formats for Discord and other messaging channels.
Install via ClawdBot CLI:
clawdbot install vincentqiu/cost-reportPrecisely track OpenClaw usage costs with detailed reports by date and model type. This skill uses the jq tool to directly parse JSON data from OpenClaw session logs, extracting accurate cost information.
Supports multiple report formats:
# Today's cost report
bash {baseDir}/scripts/cost_report.sh --today
# Yesterday's cost report
bash {baseDir}/scripts/cost_report.sh --yesterday
# Weekly cost report
bash {baseDir}/scripts/cost_report.sh --week
# Date range report
bash {baseDir}/scripts/cost_report.sh --from 2026-01-01 --to 2026-01-31
This script directly extracts cost data from OpenClaw session log files (~/.openclaw/agents//sessions/.jsonl):
message.usage.cost.total field💰 OpenClaw Cost Report (2026-02-04)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Today's Total Cost: $XX.XX (🟢 -XX% vs yesterday)
📊 Model Details:
• claude-opus-4-5: $XX.XX (XX%)
• gpt-4o: $X.XX (X%)
• ...
📈 Weekly Total: $XXX.XX
brew install jq or apt install jq)Generated Mar 1, 2026
A software development team uses multiple AI models like Claude and GPT-4o for coding assistance and testing. This skill helps them track daily and weekly costs across different models to optimize usage and stay within budget, providing clear reports for team stand-ups.
A marketing agency leverages AI models such as Gemini and Codex for generating ad copy and social media content. The skill enables them to monitor monthly expenses by model, identifying cost-effective options for various campaigns and justifying AI investments to clients.
Academic researchers use OpenAI and other models for data analysis and paper drafting. This tool allows them to generate detailed reports by date and model, helping manage grant budgets and compare costs across different experimental phases.
A tech startup employs AI models for prototyping and customer support automation. The skill provides weekly cost breakdowns to track spending trends, enabling founders to adjust model usage based on project priorities and financial constraints.
Offer this skill as part of a paid subscription for teams needing advanced cost tracking and reporting features. Integrate with cloud platforms to provide automated insights and alerts, generating recurring revenue from monthly fees.
Provide custom integration and setup services for enterprises using OpenClaw, helping them deploy this skill with tailored reporting formats. Offer ongoing support and training, creating revenue through project-based contracts and hourly rates.
Release a basic version of the skill for free to attract individual users, then upsell premium features like historical trend analysis, multi-team reporting, and API integrations. Monetize through tiered pricing plans for advanced functionalities.
💬 Integration Tip
Ensure jq is installed via package managers like brew or apt, and verify access to OpenClaw log files for accurate cost extraction.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).