spoon-man569/dsh-token-price2

dsh-token-price

Live token cost + account balance readouts for the DeepSeek Harness Web UI

AI Analysis

核心用途是实时监控 API 消耗成本和剩余额度。适合高频调用 API、需要严格控制预算或多模型对比成本的 DSH 用户。

Package
dsh-token-price
Version
0.2.0
License
MIT
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:spoon-man569/dsh-token-price

Configuration

- id: token-price
  name: dsh-token-price
  config:
    balanceBaseURL: https://api.deepseek.com
    balanceApiKeyEnv: DEEPSEEK_API_KEY
    balanceRefreshIntervalMs: 60000
    referenceRateRefreshIntervalMs: 3600000
    requestTimeoutMs: 5000

balanceApiKeyEnv names the credential holding the DeepSeek API key used for the balance request. The key remains on the host. A failed refresh keeps the last balance sample.