whereismyai
Tallyhook Collector
Tallyhook Collector is a command-line tool that calculates and tracks the costs of AI coding agents per repository and client.
Tallyhook Collector calculates what AI coding agents cost by reading local session logs from Claude Code and Codex CLI. It runs entirely on your machine without requiring an account or uploading data, processing logs to price usage based on public vendor rates. The tool groups costs by repository, model, or client, and helps map expenses to client invoices. It also includes an MCP server so coding agents can answer questions about their own resource consumption directly. Designed for developers who bill clients for AI-assisted work, it ensures accurate pricing by deduplicating streamed rows, handling subagents, and accounting for cache tiers. Optional features also allow syncing data to a hosted layer for team-wide tracking and client report links.
Tallyhook Collector at a glance
- Best for: Software engineer, Founder
- Runs on: macOS, Linux, Windows, CLI, API, self-hosted, open source
- Pricing: Free
- Released: October 2026
- Category: AI coding tool
- Website: github.com/tallyhook/tallyhook-collector
Key features
- Reads local session logs from Claude Code and Codex CLI
- Groups costs by repository, model, or client
- Calculates accurate prices with deduplicated message streams
- Supports cache pricing for reads and writes
- Includes an MCP server for agents to report their own costs
- Provides a command-line interface for querying spend and trends
- Maps repos to clients for generating invoice totals
Use it for
- Calculating total AI coding agent costs per repository
- Determining billable amounts for client invoices
- Finding expensive agent sessions and runaway loops
- Querying agent costs directly via chat commands
Alternatives to Tallyhook Collector
- ccusage — Tracks token usage and costs locally across multiple coding agent CLIs.
- TokenTracker — Monitor AI spending across 43 coding tools in one local, private dashboard.
- Ctxvitals — Measures exact token costs and security risks before agent launch.
- Cost X-Ray — It prices usage below the tool level by analyzing raw API request bytes.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- AgentsView — It keeps your AI coding session archive local by default while tracking costs and activity.
- AI Engineer Tools — Capture agent activity as structured local events without conversations.
- pstack — Improves AI coding agent outcomes with rigorous workflows.
- Opaline — Track team-wide token costs and coding session analytics.
- Agent Relay — It carries turns between different AI agents and stops for human decisions.
- Coucou — It provides open-source, real-time agent monitoring and approvals directly from the screen notch.
- CodeBurn — Tracks AI coding token usage and costs locally across 41 tools and agents.
All Tallyhook Collector alternatives