Way2LOose4/dsh-agent-pricing0

dsh-agent-pricing

DSH 实时会话费用显示插件:支持输入框底栏费用预览、今日消耗图表及估算工具

AI 分析

提供实时的 Token 消耗费用预览与统计图表,价格与官方同步并支持自定义价格表。适合需要严格监控 API 消耗成本、进行预算控制的个人或企业用户。

包名
dsh-agent-pricing
版本
1.1.1
许可证
MIT
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Way2LOose4/dsh-agent-pricing

Usage

  1. Open any conversation — a compact cost line appears under the composer.
  2. Click CNY/USD to switch currency, click ▸ 图表 to open the today overlay.
  3. Ask your agent "how much have we spent?" — it can answer itself with session_cost, and quote before-the-fact numbers with price_estimate.

Configuration (optional)

Drop an agent-pricing.json into your workspace root to fully override the price table — same shape as prices.json in this repo:

{ "models": [{ "keys": ["my-model"], "label": "My Model", "input": 1.0, "output": 2.0 }] }

Optional per-row fields: cacheRead, cacheWrite, and tiers ({ "effectiveAt", "peakHoursUtc", "peak": {...}, "offPeak": {...} }). The file is re-read on activation and on every periodic refresh. Models that match no row cost 0 and are listed in the result's note.