Usage Tracker

# Usage Tracker Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Usage Tracker" with this command: npx skills add punkaze/usage-tracker

Usage Tracker Skill

Track AI model usage and generate cost reports across all providers.

Overview

This skill tracks AI API calls and generates cost reports. It supports:

  • Multiple providers: MiniMax, Anthropic, OpenAI, Google, xAI, Voyage, Mistral
  • Cost calculation based on current pricing
  • Daily, weekly, and monthly reports
  • Filtering by model and task type

Tools

log_usage

Log an AI API call for tracking.

Parameters:

  • provider (required): Provider name (minimax-portal, anthropic, openai, google, xai, voyage, mistral)
  • model (required): Model identifier (e.g., MiniMax-M2.5, gpt-4o, claude-3-opus)
  • input_tokens (required): Number of input tokens
  • output_tokens (required): Number of output tokens
  • task_type (optional): Type of task (coding, reasoning, general, writing, analysis, chat)

usage_report

Generate a usage and cost report.

Parameters:

  • period (required): Time period (daily, weekly, monthly)
  • model_filter (optional): Filter by model name
  • task_filter (optional): Filter by task type

realtime_report

Get real-time usage report for the last 24 hours. No parameters required.

Usage Examples

Log a usage call:
log_usage(provider="minimax-portal", model="MiniMax-M2.5", input_tokens=1500, output_tokens=800, task_type="general")

Get daily report:
usage_report(period="daily")

Get weekly report:
usage_report(period="weekly", model_filter="gpt")

Get real-time report:
realtime_report()

Pricing (USD per 1M tokens)

ProviderModelInputOutput
MiniMax PortalM2.5FreeFree
AnthropicClaude Opus 4$15$75
AnthropicClaude Sonnet 4$3$15
AnthropicClaude Haiku 4$0.80$4
OpenAIGPT-4.5$75$300
OpenAIGPT-4o$2.50$10
OpenAIGPT-4o Mini$0.15$0.60
GoogleGemini 2.5 Pro$1.25$10
GoogleGemini 1.5 Flash$0.075$0.30
xAIGrok 2$2$10

Telegram Commands

  • /usage - Get real-time usage report (last 24 hours)
  • /cost - Get real-time usage report (last 24 hours)

Storage

Logs are stored in: usage-logs/api-cells.jsonl Reports can be generated on-demand using the tools above.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Freeport Mcmoran

美国领先铜矿企业,拥有印尼Grasberg世界级铜金矿,主要从事铜矿开采并提供金钼等副产品。

Registry SourceRecently Updated
General

Fujifilm

日本影像巨头Fujifilm成功转型,聚焦医疗健康、影像解决方案和高性能材料领域的多元化科技企业。

Registry SourceRecently Updated
General

Fortescue

澳洲第四大铁矿石生产商Fortescue,由Andrew Forrest创立,专注矿业和绿色氢能产业投资与技术创新。

Registry SourceRecently Updated
General

Asana Remote Mcp

Use Asana through mcporter-backed remote MCP tools. Use when working with tasks, projects, portfolios, goals, or team workspaces via the hosted mcp.asana.com...

Registry SourceRecently Updated