Crayonnan/DeepSeek-harness-Extension0

dsh-quota-bar

会话页眉额度条插件,显示 OpenCode Go 用量窗口或 DeepSeek API 余额,以及缓存命中率。

AI 分析

核心用途是在会话顶部直观展示 API 余额、用量和缓存命中率。适合需要监控 Token 消耗和资费成本的 DSH 用户。

套件
dsh-quota-bar
版本
0.1.3
最近更新
2026年8月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Configuration

- id: quota-bar
  name: dsh-quota-bar
  config:
    opencodeUsageUrl: https://opencode.ai/zen/go/v1/usage  # default
    deepseekBaseUrl: https://api.deepseek.com              # default
    timeoutMs: 15000                                       # default
    sessionsRoot:                           # optional; default $DSH_HOME/sessions
    modelCosts:                                            # optional; overrides catalog pricing (USD / 1M tokens)
      kimi-k3: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 0 }

Pricing priority: built-in table < pi-ai catalog ( .json) < modelCosts.