JasonCHTT/dsh-plugin-deepseek-balance0

dsh-plugin-deepseek-balance

DeepSeek 余额与单次运行花费显示插件,专为 DeepSeek Harness Web UI 设计,无需平台登录。

AI 分析

核心用途是实时监控 DeepSeek 账户余额和单次对话的花费。适合需要精细化控制 API 预算、避免超支的开发者或高频用户。需配置 API Key 或环境变量。

包名
dsh-plugin-deepseek-balance
版本
1.0.0
许可证
MIT
最近更新
2026年8月15日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

Configuration

The built-in defaults work out of the box. To override, add a config block to the row in cordis.patch.yml:

KeyDefaultMeaning
apiKeyLiteral API key. Not recommended — the key lands in a config file in plain text.
apiKeyEnvDEEPSEEK_API_KEYCredential reference resolved through the credentials service (fallback: process env).
baseURLhttps://api.deepseek.comBase URL of the balance endpoint.
currencyCNYDisplay currency; falls back to the first entry the API returns.
pollMs60000Poll interval (minimum 15 000 ms).

Example:

- insert:
    - id: deepseek-balance
      name: 'dsh-plugin-deepseek-balance'
      config:
        pollMs: 30000

Usage

  • Read本次运行已用 ¥0.42 · 余额 ¥10.98 under the composer.
  • Hover — tooltip with granted / topped-up balance, an 余额不足 marker when is_available is false, and the last update time.
  • Click — forces an immediate refresh (useful right after a spend or top-up).
  • Loading — shows DeepSeek 余额查询中… until the first snapshot arrives.
  • Missing key — shows DeepSeek 余额:未配置 API Key with a hint; the plugin retries every 5 seconds and heals as soon as a key becomes available.