Expand description
Terminal dashboard for AI coding harness token usage and spend.
expensive is primarily a binary crate. It provides a Ratatui-based TUI
that normalizes OpenCode, Codex, and Pi accounting into a privacy-preserving
local index and aggregates it into daily, weekly, monthly, all-time, and
calendar views.
The public modules are exposed to keep the binary small and testable. They cover configuration, source adapters, local indexing, time-window calculation, formatting, application state, and terminal rendering.
For normal use, install and run the expensive binary:
cargo install --locked expensive
expensiveModules§
- analytics
- Shared usage-analysis pipeline for interactive and headless views.
- config
- Configuration loading for the
expensivebinary. - db
- Aggregation over OpenCode’s local SQLite database.
- format
- Display formatting helpers used by the dashboard.
- index
- Durable, source-neutral usage index.
- report
- Headless JSON reporting.
- time_
window - Time-window calculations for usage aggregation.