dsh-token-workbench

Token usage workbench for token-plan users: folds assistant/message usage from the session log into per-day call-level detail (cross-session responseId dedupe keeps fork/resume copies counted once), converts local volume into plan credits against terms you enter (default 1M tokens = 0.2 credits, caps 600/2500/6000 for day/week/month, optionally scoped to selected channels), and shows a composer-dock readout plus a settings page with per-provider cost table, 7/30d bar and line trends and a rolling six-month heatmap. No credentials are read: the remaining percentage a provider keeps behind its control-plane API is replaced by a clearly labelled local conversion, and reference costs come from the public DeepSeek pricing page.

Overview

Token usage workbench for token-plan users: folds assistant/message usage from the session log into per-day call-level detail (cross-session responseId dedupe keeps fork/resume copies counted once), converts local volume into plan credits against terms you enter (default 1M tokens = 0.2 credits, caps 600/2500/6000 for day/week/month, optionally scoped to selected channels), and shows a composer-dock readout plus a settings page with per-provider cost table, 7/30d bar and line trends and a rolling six-month heatmap. No credentials are read: the remaining percentage a provider keeps behind its control-plane API is replaced by a clearly labelled local conversion, and reference costs come from the public DeepSeek pricing page.

Installation

Install from GitHub

dsh plugin --profile web add github:dragonestdwolf/dsh-token-workbench

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.