dsh-plugin-turn-cost

August 30, 2026 · View on GitHub

Independent DeepSeek Harness plugin that shows estimated CNY cost for each completed Web chat Turn. The row mounts on conversation.chat.turnTail (above the built-in「本轮用量」disclosure). Unknown models and non-DeepSeek providers hide the row entirely.

本轮费用 · Web turn cost row

Install

dsh plugin --profile web add /path/to/dsh-plugin-turn-cost
dsh web

Remove with dsh plugin --profile web remove dsh-plugin-turn-cost.

Requires a DSH release that already ships the Web client stack (>= 0.1.1-rc.2).

Pricing

  • Source: DeepSeek Models & Pricing (CNY)
  • Snapshot date baked into this package: 2026-08-30
  • Models: deepseek-v4-flash, deepseek-v4-pro, deepseek-v4-flash-vision-exp
  • Providers: deepseek, deepseek-official
  • Peak (Asia/Shanghai, Mon–Fri, half-open): [09:00, 12:00) and [14:00, 18:00)
  • Billed buckets: uncached input, cache read (when present), output. cacheWriteTokens is ignored.

When DeepSeek changes prices, bump this package with an updated rate card.

Develop

pnpm install
pnpm test
pnpm run build

DevDependencies resolve from npm (@deepseek-ai/dsh-*@0.1.1-rc.2 / next). Host-only packages such as @deepseek-ai/dsh-client-ui-chat are listed under dsh.client.inject for runtime wiring and are not required to develop or test this repo.

Non-goals (v1)

USD, harness core changes, CLI/headless printing, mixed-model allocation, live price fetch.