dsh-token-lens: Turning Harness local session logs into a usage and cost dashboard
dsh-token-lens (TokenLens · Usage Lens) is a DeepSeek Harness plugin maintained by muxili87-art, categorized under Model Inference. It reads session logs locally from `~/.dsh/sessions`, incrementally aggregates them into daily buckets, and displays a dashboard in the sidebar showing Tokens, Requests, Costs, Cache Hits, Model Speed, and Alignment Duration. It supports Today/7 Days/30 Days/Custom intervals and automatic aggregation granularity, as well as heatmaps, model distribution, speed percentiles, request details, privacy mode, and update checks. Pricing is calculated based on Beijing Time peak and valley rates, with built-in public pricing for DeepSeek, OpenAI, Anthropic, and Google. The installation method is `plugin_manager install_bundle`. Note that the zip file for version v1.0.0 lacks `exports["./client"]`, causing the application to fail to start; use version v1.0.1 or later. The plugin performs calculations locally, requires no internet connection, and does not upload data; users should check the source code and the MIT license before use.
Read More