sequilade/tokentab ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python tool called tokentab that reads the session logs Claude Code, Codex, Cursor, and Gemini CLI already save on my machine, and tells me how much those sessions cost. I want it to work completely locally, with no login, no API keys, and nothing sent anywhere.
When I run it in the terminal, it should show totals for the last 7 days by default, and let me filter by today, this month, a custom date range, one provider, or one project. I also want JSON output for piping into other tools.
Please add a simple local web view too, so I can open the same data in a browser with a clean dashboard and charts. It should read the log files directly each time, and stay on localhost only.
Use the token counts from the logs, calculate pricing from a built in table, and handle unknown models gracefully by showing that they need to be added. If you need current details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit