WZZNNE/DSH-CyberWorkStation--plugins-dsh-price-hint ↗★ 23

dsh-price-hint

Hover price hints on the dsh model picker: shows input/output USD per 1M tokens (from the cost-meter price table) as a native tooltip on every model entry. 适合需要在切换模型时直观对比输入输出价格,避免高消费的用户。

パッケージ
dsh-price-hint
互換性
未検証
Harness ピア範囲
*
バージョン
0.1.0
ライセンス
NOASSERTION
最終更新
2026/09/16

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:WZZNNE/DSH-CyberWorkStation#54855352ddc1a46f62c26ebb8ba6e9e2a4f07875&path:plugins/dsh-price-hint

ドキュメント

README 全文を読む ↗

dsh-price-hint

Hover price hints on the dsh model picker: every model entry gets a native tooltip with its input and output price in USD per 1M tokens.

Install

dsh plugin --profile web add dsh-price-hint

Restart dsh afterwards. As part of DSH CyberWorkStation the plugin is registered by setup.cmd from the repository checkout instead.

How it works

  • The host half exposes GET /dsh-price-hint/prices.json, a map from the model's display name to its price hint. Names come from the llm-pi-ai providers..models settings (id + name); prices come from the cost-meter ledger's config.prices.providers (cacheMiss = input, output = output). The file is read on every request, so a refreshed price table applies at once.
  • The browser half fetches that map at boot and every 30 s, and re-annotates the picker's entries (a title attribute) whenever the picker's DOM changes.

The route is GET-only and refuses a foreign Host (DNS rebinding) through dsh-cyberworkstation-kit/fence.

Requirements

dsh-cost-meter-plus provides the price table (~/.dsh/storages/cost-meter/ledger.json); without it the map is empty and no tooltip appears.