{"repo":"wzchav/tokentab","free":true,"listed":false,"github":"https://github.com/wzchav/tokentab","clone":"git clone https://github.com/wzchav/tokentab.git","description":"A CLI that reads Claude Code, Codex, and Gemini CLI session logs and works out how much they cost, by model, project, and day.","language":"Python","stars":223,"topics":["ai","api","claude","claude-code","claude-tool","gemini","token-usage"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"tokentab tokentab reads the session logs that Claude Code, Codex, Cursor and Gemini CLI already leave on disk and adds up token usage and cost - broken down by model, by project, by day, and by the kind of work each session was doing. It runs entirely locally: no account, no API key, nothing leaves your machine. Installing Clone the repo and install it into your environment: That puts a tokentab command on your path. You can also run it without installing at all - see From source. What it reads It understands three tools out of the box, plus a Cursor slot that's wired up but not finished (more on that below). Tool Where its logs live --- --- Claude Code /.claude/projects/ / .jsonl Codex /.codex/sessions/ /rollout- .jsonl Gemini CLI /.gemini/tmp/ /session- .json Cursor (stub - see below) If a tool isn't installed, it's just skipped. You'll only ever see the tools you actually use. Using it The bare command gives you the last 7 days across everything: Some other things it does: Colour drops automatically when you pipe the output somewhere, so pasting into a PR or a chat doesn't drag a load of escape codes along with it. The web dashboard Opens http://localhost:4747 and lays the same numbers out as a monthly statement - total up top, everything itemised below. It reads from disk on every request (the data's tiny, so there's no reason to cache and risk showing you something stale) and binds to localhost only - nothing gets uploaded, same as the CLI. It doesn't even pull fonts fro","default_branch":null,"files":null,"tree":[],"storefront":"/r/wzchav","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wzchav/tokentab/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}