Documentation

📈Cost Analytics & Tracking

Monitor and analyze your AI spending with comprehensive dashboards, cost breakdowns, and budget management tools

← Back to Documentation

📈 Cost Analytics & Tracking

Monitor and analyze your AI spending with comprehensive text-based analytics, detailed cost breakdowns, and intelligent budget management tools.

Why Track AI Costs?

Without proper cost tracking, AI spending is invisible until the bill arrives. Our analytics dashboards and cost tracking tools give you complete visibility and control over every dollar.

📊 Analytics Dashboards

Executive and operational dashboards with cost metrics

💰 Cost Tracking

Track spending per query and total AI costs

🎯 Budget Management

Set budget limits for dynamic model selection

📊 Dashboard Analytics

Comprehensive Cost Analytics

Access detailed cost breakdowns and spending analytics through text-based CLI analysis. View metrics by model, provider, and time period with comprehensive data tables.

# Generate comprehensive cost breakdown
hive cost breakdown
💰 Cost Breakdown & Analysis
📊 Last 30 Days Summary: $67.60 (186 queries)
💸 Budget Progress: 22.5% used ($232.40 remaining)
📈 Cost by Model:
GPT-4 ████████████████████ $45.20 (67%)
Claude-3 ████████ $18.30 (27%)
Gemini Pro ██ $4.10 (6%)

Data Analysis Features

  • Text-based cost breakdown tables
  • Model comparison analysis
  • Budget progress indicators
  • Provider cost distribution
  • Daily spending summaries

Analysis Capabilities

  • Real-time cost tracking
  • Custom time periods (7d, 30d)
  • Provider and model filtering
  • Budget utilization tracking
  • Export to professional reports

💰 Real-Time Cost Tracking

Live Cost Monitoring

Watch your AI spending accumulate in real-time during consensus operations

# Live cost tracking
hive consensus "Explain quantum computing"
🟡 Generator Stage... $0.003
🟠 Refiner Stage... $0.007
🔴 Validator Stage... $0.012
🟢 Complete ✓ Total: $0.018
📊 Daily total: $12.45 / $25.00 budget

Budget Progress Bars

Visual budget tracking with smart alerts and protection

# Check budget status
hive cost budget --status
💰 Monthly Budget: $500.00
📊 Used: ████████░░ $234.56 (47%)
📈 Daily avg: $10.21
🎯 Projected: $387.80 (77%)
✅ Status: On track

🔍 Cost Breakdown Analysis

Multi-Dimensional Cost Analysis

Understand exactly where your AI budget goes with detailed breakdowns by model, provider, time, and task type.

Provider Cost Comparison

OpenAI ████████████████████ $234.56 (52%)
Anthropic ████████████ $145.23 (32%)
Google ███████ $67.89 (15%)
Meta ██ $12.34 (3%)
Total: $460.02

Quality/Cost Efficiency

Claude-3-Haiku ████████████████████ 9.2/10
GPT-3.5-Turbo ███████████████ 7.8/10
Gemini-Pro ████████████ 6.4/10
GPT-4 ████████ 5.1/10
Best Value: Claude-3-Haiku

🎯 Smart Budget Management

Multi-Level Budget Protection

Intelligent budget management with automatic alerts, model switching, and cost optimization recommendations.

75%
Warning Alert
Email notification
90%
Critical Alert
Slack + Email
100%
Auto Protection
Switch to cheaper models
# Set budget limit for dynamic mode
hive cost settings 0.50 # $0.50 limit

# Monitor spending with analytics
hive analytics costs
hive dashboard executive

# Note: Budget limits only apply in dynamic mode

⌨️ Cost Analysis Commands

Quick Visualizations

# Quick cost overview
hive status
# Detailed cost breakdown
hive cost breakdown
# Cost estimation
hive cost estimate "your question"

Advanced Analytics

# Analytics summary
hive analytics summary 30d
# Cost trends analysis
hive analytics costs 30d
# Executive dashboard
hive dashboard executive

Budget Management

# Set budget limit
hive cost settings 0.50
# Check status & budget
hive status
# Cost estimation
hive cost estimate "your question"

Export & Reporting

# Generate reports
hive report generate executive 30d
# Export metrics data
hive export metrics prometheus
# Analytics export
hive report export <id> CSV

💻 IDE Integration & MCP Tools

Seamless IDE Cost Analysis

Cost analysis works automatically in your favorite IDE through MCP (Model Context Protocol). No setup required - just ask questions in natural language.

🤖 How It Works

1. Automatic Setup

MCP tools configure automatically when Hive AI is installed

2. Natural Language

Ask Claude/Cursor/Windsurf about costs in plain English

3. Live Data

Get real-time cost analysis directly in your IDE

💬 Natural Language Examples

"What's my current AI spending?"
→ Shows budget status, recent costs, spending trends
"How much will this cost to process?"
→ Estimates consensus cost for your specific question
"Show me cost breakdown by model"
→ Displays detailed cost analysis and model efficiency
"How can I reduce my AI costs?"
→ Provides optimization tips and savings opportunities

🎯 Supported IDEs

🤖
Claude Code
⚙️
Cursor
🌊
Windsurf
💻
VS Code

💡 AI-Powered Cost Optimization

Intelligent Savings Recommendations

Our AI analyzes your usage patterns and suggests specific optimizations without sacrificing quality.

💡 Example Optimization Insights:

• Switch to GPT-3.5 for simple questions → Save $8.20/month
• Use Claude-3-Haiku for quick edits → Save $4.50/month
• Batch similar requests → Save $2.30/month
Total potential savings: $15.00/month (30% reduction)
# Get optimization insights
hive insights generate cost
hive optimize recommendations cost

🚀 Master Your AI Spending

Stop wondering where your AI budget goes. Get comprehensive analytics, detailed cost tracking, and intelligent budget management that actually saves money.

# Start analyzing your AI costs
hive cost breakdown
hive cost settings 100 # Set budget
hive insights generate cost # Get savings tips
Start free trial