Real-time tracking of Claude Code CLI token usage and costs in Home Assistant with custom dashboard and icon.
- Claude Pro/Max subscription
- Claude Code CLI installed (
npm install -g @anthropics/claude-code) ccusagetool (comes with Claude Code CLI)- PostgreSQL (optional, for historical data)