JasonCHTT/dsh-plugin-deepseek-balance ↗★ 0

dsh-plugin-deepseek-balance

DeepSeek balance & per-run spend readout for the DeepSeek Harness Web UI (no platform login needed) 直接在界面查看 DeepSeek 账户余额。适合需要随时掌握 API 账户余额的开发者。

パッケージ
dsh-plugin-deepseek-balance
互換性
未検証
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/08/15

同名パッケージの別リポジトリ

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

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
apiKey—Literal 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 the spent figure — opens the DeepSeek platform usage page (https://platform.deepseek.com/usage) in a new tab with the official consumption details (platform login required).
  • Click the refresh icon — 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.