Way2LOose4/dsh-agent-pricing ↗★ 0
dsh-agent-pricing
Real-time session cost readout for DeepSeek Harness: composer-dock cost preview, today usage chart, prices kept in sync with the DeepSeek official site (peak/off-peak aware), plus price_estimate/session_cost agent tools.
AI Analysis
提供实时的 Token 消耗费用预览与统计图表,价格与官方同步并支持自定义价格表。适合需要严格监控 API 消耗成本、进行预算控制的个人或企业用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Way2LOose4/dsh-agent-pricingREADME
Read the full README ↗Usage
- Open any conversation — a compact cost line appears under the composer.
- Click CNY/USD to switch currency, click ▸ 图表 to open the today overlay.
- Ask your agent "how much have we spent?" — it can answer itself with
session_cost, and quote before-the-fact numbers withprice_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.