---
title: "tokentab Unifies Claude, Codex and Gemini Spending Into One Local Dashboard"
subtitle: "A local Python CLI parses session logs from Claude Code, Codex, and Gemini CLI to tally token usage and spend by model, project, and day."
url: "https://alphasignal.ai/news/tokentab-unifies-claude-codex-and-gemini-spending-into-one-local-dashboard"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-08-27T14:20:23.000Z"
updated: "2026-09-02T01:56:40.610Z"
type: "Repo"
topics:
  - "Development"
  - "Open Source"
subtopics:
  - "Code Generation"
  - "Code Review"
upvotes: 187
source_url: "https://github.com/damejan80/tokentab"
comments: 0
truncated: true
---

# tokentab Unifies Claude, Codex and Gemini Spending Into One Local Dashboard

> A local Python CLI parses session logs from Claude Code, Codex, and Gemini CLI to tally token usage and spend by model, project, and day.

If you juggle Claude Code, Codex, and Gemini CLI across half a dozen projects, tracking which agent or repo is draining your budget is nearly impossible. [tokentab](https://github.com/damejan80/tokentab) is a small open-source CLI that reads the session logs those tools already write to disk, then totals tokens and dollars broken out by model, project, day, and session activity type.

Everything runs locally under an MIT license. No account, no API key, nothing leaves your machine. The only third-party dependency is `rich` for terminal tables; the web dashboard, parsers, and JSON output all use Python's standard library.

## How it finds your usage

Rather than proxying API calls or asking you to paste invoices, tokentab scrapes the log files each coding agent already leaves on your filesystem. Claude Code logs live under `~/.claude/projects`, Codex under `~/.codex/sessions`, and Gemini CLI under `~/.gemini/tmp`. A Cursor slot is wired up but unfinished. Missing tools are silently skipped, so the output only reflects what you actually use.

![tokentab web dashboard showing monthly spend breakdown](https://github.com/damejan80/tokentab/raw/main/assets/dashboard.png) 

Installation is a one-liner clone plus `pip install .`, which drops a `tokentab` binary on your path. The bare command shows the last seven days across every detected tool; flags let you slice by day, month, provider, project, or a custom date window.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [damejan80/tokentab](https://github.com/damejan80/tokentab)
- [tokentab pricing table](https://github.com/damejan80/tokentab/blob/main/tokentab/pricing/prices.py)
- [tokentab types](https://github.com/damejan80/tokentab/blob/main/tokentab/types.py)
