Part of @sahil87's open source toolkit — see all projects there.
AI coding assistant cost tracking CLI. Track your token usage in style!
brew tap sahil87/tap
brew install tu# bash
echo 'eval "$(tu shell-init bash)"' >> ~/.bashrc
# zsh
echo 'eval "$(tu shell-init zsh)"' >> ~/.zshrc
# fish
tu shell-init fish > ~/.config/fish/completions/tu.fish💡 Have other sahil87 tools?
shll shell-installhandles all of their shell integrations and autocompletions at once.
tu update
# brew update
# brew upgrade tutu # Today's cost, all tools
tu cc # Today's cost, Claude Code
tu h # Daily cost history, all tools
tu cc mh # Monthly cost history, Claude Code
tu m # This month's cost, all toolsSources: cc (Claude Code), codex/co (Codex), oc (OpenCode), all (default)
--json Output data as JSON (data commands only)
--sync Sync metrics before fetching (multi mode)
--fresh / -f Bypass cache, fetch fresh data (data commands only)
--watch / -w Persistent polling mode with live display (data commands only)
--interval / -i <s> Poll interval in seconds (default: 10, range: 5-3600)
--user / -u <user> Show usage for a specific user (multi mode only)
--by-machine Show per-machine cost breakdown (data commands only)
--no-color Disable ANSI color output
--no-rain Disable matrix rain animation in watch mode
tu init-conf # Scaffold ~/.tu.conf
tu init-metrics # Clone metrics repo
tu sync # Push/pull metrics
tu status # Show config and sync state