AI AGENT SKILLS

OpenClaw Cost Auditor

一个面向 Security 场景的 Agent 技能。原始说明:Track and report OpenClaw API usage, model costs, token consumption, and forecast spending with optimization recommendations.

SKILL.md

SKILL.md


summary: "OpenClaw Cost Auditor: Track API usage, model costs, token burn, and revenue for OpenClaw deployments."
description: "Parse logs, query API metrics, forecast bills, optimize spend with reports & alerts."
triggers:

  • "audit openclaw costs"
  • "openclaw billing"
  • "check API spend"
  • "token usage report"

read_when:

  • "openclaw cost" in message
  • "API auditor" in message

OpenClaw Cost Auditor v1.0.0

🎯 Purpose

  • Daily/weekly cost reports
  • Top models/users by tokens
  • Cost per query forecasts
  • Optimization recs (quantize, prune)

🚀 Quick Start

!openclaw-cost-auditor --period last7d --format pdf

Files

  • scripts/audit.py: Log parser & calculator
  • templates/report.md: Cost dashboard template

Integrations

OpenClaw logs, Grok/xAI API, custom providers.