Status: Live100% Free

Monitor Your LLM API Costs
Before the Bill Arrives

Real-time cost tracking for OpenAI, Anthropic, Google, and xAI. Know exactly what you're spending, broken down by project, key, and user.

4+

Providers

5 min

Setup

$0

Forever

MCP

Native

Trust & Privacy

Local-first by design

CostHawk was built for developers who care about transparency. You can see exactly what we read and exactly what we send before anything is uploaded.

Enable auto-sync

One command installs the MCP and configures Claude + Codex auto-sync.

npm exec --yes costhawk@latest -- --setup
CompatibleClaude CodeOpenAI Codex CLIOpenCode

Local-first parsing

We compute usage locally from ~/.claude/projects and ~/.codex/sessions before anything leaves your machine.

No prompt content

Only usage metadata is sent: token counts, models, timestamps, and hashed project IDs — never your code or prompts.

Preview before upload

Dry-run syncs show exactly what would be sent, with payload previews and optional file lists for full transparency.

Opt-in auto-sync

Automatic uploads are off by default. Enable with COSTHAWK_AUTO_SYNC=true and disable Codex sync anytime.

Live Leaderboard

Top Claude Code + Codex Operators

See who's pushing the limits. Track Claude Code + Codex usage and compete with developers worldwide.

Monthly Rankings
Loading leaderboard...

Sync your Claude Code + Codex sessions to join the rankings

Dashboard

Your Command Center for API Costs

Track spending across all your LLM providers in one unified dashboard

Cost Overview

Last 30 days

Total Cost
$3,847+12%
API Calls
1.2M+23%
Avg Cost
$0.003-5%
Efficiency
94%+8%
Features

Everything you need to control your API costs

Built for developers who want visibility into their LLM spending without the guesswork.

Real-Time Cost Tracking

Monitor your spend on OpenAI, Anthropic, Google, and xAI as it happens, not after the invoice arrives.

Wrapped API Keys

Proxy your API calls through CostHawk to track costs without exposing your real keys to your codebase.

Per-User Analytics

Break down costs by user, project, and API key to understand exactly where your budget is going.

Budget Alerts

Set spending thresholds and get notified via email or webhook when costs approach your limits.

Multi-Provider Support

Native support for OpenAI, Anthropic Claude, Google Gemini, and xAI Grok — all in one dashboard.

Data Export

Export your usage data as CSV or JSON for reporting, invoicing, or further analysis.

MCP Server Integration

Connect CostHawk to Claude Desktop or other MCP clients for seamless cost tracking in your workflow.

Budget & Rate Limits

Set hard budgets and rate limits to prevent runaway costs before they happen.

Developer API

Access your cost data programmatically with our REST API and developer access tokens.

Project Organization

Organize your API keys and costs by project to keep dev, staging, and production separate.

Team Management

Invite your team and manage access with organization-based permissions via Clerk.

Webhook Integrations

Push cost events to Slack, Teams, PagerDuty, or your own systems in real-time.

Why CostHawk

Get Started Today

CostHawk is 100% free. No trials, no credit cards, no limits. Start tracking your AI costs in under 2 minutes.

Shape the Product

Your feedback directly influences our roadmap. Request features and report issues directly in the app.

100% Free Forever

No trials, no credit cards, no hidden limits. Full access to every feature, completely free.

Priority Support

Direct access to the founding team. We respond to issues in hours, not days.

Developer-First

Built by developers, for developers. Clean API, detailed docs, and MCP integration.

Ready to take control of your API costs?

Create your free account and start tracking in under 2 minutes.

Pricing

Free for Everyone

No trials. No credit card. No limits. Just sign up and start tracking.

Free Forever

CostHawk

Everything you need to track your Claude + Codex usage

$0/forever
No limits, no catches
Included
Unlimited Claude + Codex session tracking
Real-time cost monitoring dashboard
Global leaderboard access
Gamification & badge system
Daily usage heatmaps
Level progression & XP tracking
Export your data anytime
All future features included

We believe everyone should have access to usage tracking tools

CostHawkCostHawk

Monitor and optimize API costs across all your services

© 2026 CostHawk. All rights reserved.