A personal setup that shows token usage in Claude Code without spending any model tokens. Both pieces are local shell scripts that read the session transcript.
statusline.shis an always-visible status line:Sonnet 5.5 | ctx 146.5k | out 7.3k | calls 15 | $1.01token-report.shis a Stop hook that prints a one-line breakdown after each response:tokens this request: in 6 | out 1742 | cache-read 190957 | cache-write 88736 | api-calls 2 | context now ~140871