Usage Tools
Most tools accept optional
format (markdown or json). Write tools that upload data (costhawk_sync_*) also accept optional apiKey to override COSTHAWK_API_KEY.MCP is fully supported. Local sync tools (
costhawk_sync_*, costhawk_list_*_sessions, costhawk_get_local_*) remain available and are not being removed in the current release line.costhawk_get_usage_summary
Get a summary of your AI API usage and costs over a time period. Parameters:
Example:
“Show me my API usage for the last 7 days”
costhawk_get_usage_by_tag
Break down costs by metadata tags like project, environment, or team. Parameters:
Example:
“Show me costs broken down by project tag”
Savings Tools
costhawk_get_savings
Show savings vs retail pricing for flat-rate subscriptions like Claude Max or OpenAI Pro. Parameters:
Example:
“Am I saving money with Claude Max this month?“
costhawk_list_subscriptions
List your active flat-rate subscriptions. Example:“What subscriptions do I have configured?“
costhawk_get_savings_breakdown
Get per-model usage and retail cost breakdown. Parameters:
Example:
“Break down my savings by model”
Monitoring Tools
costhawk_detect_anomalies
Find cost spikes and unusual activity patterns. Example:“Are there any cost anomalies I should know about?“
costhawk_list_alerts
View recent alerts including budget warnings, cost spikes, and anomaly notifications. Parameters:
Example:
“Show me my unread alerts”
Webhook Tools
costhawk_list_webhooks
List all configured webhooks for receiving cost alerts. Example:“What webhooks do I have set up?“
costhawk_create_webhook
Create a new webhook to receive notifications. Parameters:
Example:
“Create a Slack webhook for budget alerts at https://hooks.slack.com/…”
Pricing Tools
costhawk_get_model_pricing
Look up current pricing for AI models. Parameters:
Example:
“What’s the current pricing for Claude Opus?”
Local Sync Tools
costhawk_sync_claude_code_usage
Sync Claude Code usage from local transcript files and upload usage metadata to CostHawk. Parameters:
Example:
“Sync my Claude Code usage”With dry run:
“Preview my Claude Code sync payload”
costhawk_list_claude_code_sessions
List Claude Code sessions discovered locally before syncing. Parameters:costhawk_get_local_claude_code_usage
Compute Claude Code usage locally without uploading anything. Parameters:costhawk_sync_codex_usage
Sync OpenAI Codex CLI usage from local session logs and upload usage metadata to CostHawk. Parameters:
Example:
“Sync my Codex usage”
Codex sync can be disabled globally with
COSTHAWK_CODEX_AUTO_SYNC=false.