wzchav/tokentab is an open-source command-line interface tool that analyzes session logs from AI coding assistants like Claude Code, Codex, and Gemini CLI to calculate token usage and associated costs. The tool helps developers track and optimize their spending when using various AI coding services by parsing the session history files these services generate during usage.
What it is
This Python-based utility is designed to work with the log files created by popular AI coding assistants during interactive sessions. When developers use tools like Claude Code, Codex, or Gemini CLI, these applications generate detailed session logs that contain information about the prompts submitted and responses received. wzchav/tokentab processes these logs to extract token counts and calculate the corresponding costs based on the pricing models of each service.

The tool provides developers with visibility into their AI usage patterns, helping them understand which types of operations consume the most tokens and where they might optimize their workflows to reduce costs. By analyzing historical session data, it can generate reports showing usage trends and cost breakdowns across different time periods or project types.
Key facts
| Attribute | Details |
|———–|———|
| Developer | wzchav |
| License | MIT |
| Language | Python |
| Last Updated | August 13, 2026 |
| Availability | GitHub repository |
How it compares
wzchav/tokentab occupies a specific niche in the developer tooling ecosystem, focusing exclusively on cost analysis for AI coding assistants. Unlike general-purpose CLI tools or comprehensive AI platform dashboards, it specializes in parsing and analyzing the specific log formats generated by services like Claude Code, Codex, and Gemini CLI. While some AI platforms provide built-in usage dashboards, this tool offers an independent, open-source alternative that can work across multiple services and provide more granular analysis of local session logs.
FAQ
What AI coding assistants does wzchav/tokentab support?
The tool is designed to work with Claude Code, Codex, and Gemini CLI session logs, parsing the specific file formats these services generate during development sessions to extract token usage data.
How does wzchav/tokentab help developers manage costs?
By analyzing session logs, the tool calculates token consumption and translates it into monetary costs based on each service’s pricing model, allowing developers to identify expensive operations and optimize their AI usage patterns.
Is wzchav/tokentab actively maintained?
Based on the GitHub repository activity, the project received its most recent update on August 13, 2026, indicating recent maintenance, though the development status should be verified by checking the repository for current activity levels.
