dsh-token-attribution: Attribute Every Token in a Model Call to Its Content Source

dsh-token-attribution is a DSH plugin maintained by MMDAI666. On the Host side, it observes the llm/stream and, anchored to the provider's actual usage, attributes tokens to content sources such as system prompts, tools, and replayed reasoning, while also tracking web_search and web_fetch calls. The Web side offers a seven-tab "Usage / Token usage" panel with time-range filtering, JSON/CSV export, and per-session drill-down. Installation is done via the plugin manager's "Install from local directory" option; it requires Node.js 24+ and DSH >=0.2.1-rc.1 <0.3.0. The ledger stores metadata only. Licensed under MIT.

Read More