dsh-turn-cost

Per-turn and per-session estimated cost in the DSH Web UI, computed from provider-reported token usage in four buckets with the built-in official DeepSeek CNY peak/off-peak card — peak hours are Monday-Friday 9:00-12:00 and 14:00-18:00 Beijing time, weekends and Chinese statutory holidays are off-peak all day. An optional local JSON rate table overlays prices for other or self-hosted models, and models without a price show tokens only.

Overview

Per-turn and per-session estimated cost in the DSH Web UI, computed from provider-reported token usage in four buckets with the built-in official DeepSeek CNY peak/off-peak card — peak hours are Monday-Friday 9:00-12:00 and 14:00-18:00 Beijing time, weekends and Chinese statutory holidays are off-peak all day. An optional local JSON rate table overlays prices for other or self-hosted models, and models without a price show tokens only.

Installation

Install from npm

dsh plugin --profile web add dsh-turn-cost

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:WFMinerva/dsh-turn-cost

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

Independent install test

Install result
Installed and registered
Test date