編集者注

DeepSeek Harness 钱包

The multi-provider wallet chip for the DeepSeek Harness Web GUI.

これは DeepSeek Harness(DSH)プラグインです。当サイトは GitHub README、インストール情報、メンテナンス状況、公開セキュリティシグナルをまとめています。

deepseek-harness-wallet

DeepSeek Harness Balance Monitor & Recharge Plugin · 余额监控和充值插件

English · 简体中文

Version 0.1.2 DeepSeek Harness rc.6 MIT License

The multi-provider wallet chip for the DeepSeek Harness Web GUI.

A resident one-line chip beside the composer: official DeepSeek (balance, session cost, tokens, one-click recharge, low-balance alert) plus the third-party token total. Accounting is bucketed per provider — a GLM session never shows a DeepSeek balance, and DeepSeek costs are never computed from GLM tokens.

If deepseek-harness-wallet helps you, please consider leaving a ⭐ Star. Thank you!

What it shows

余额 5.89 · 本场 0.72 · 官 18.8M | 三方 800K · ↗充
  • Official DeepSeek — live balance (60s global refresh with fast boot retries), current-session cost (official pricing timeline, including the 2026-08-17 peak/off-peak rollout), and token breakdown.
  • Third-party total — current-session tokens (input / cache read / output). No balance guessing, no cost math, zero configuration.
  • Click the chip to open the detail panel: per-currency balance breakdown, cost and token splits, a freely editable low-balance threshold in CNY (two decimals, persisted globally; the chip compares the CNY balance, never a mixed-currency sum), manual refresh, and a jump to the official recharge page (first click shows the domain for confirmation — anti-phishing).
  • Floating window mode — from the detail panel, detach the wallet into a floating window you can drag anywhere (position remembered across reloads), or minimize it to a small dot; the dot turns red below the threshold.
  • Low-balance alert — below the threshold the chip turns red with a breathing animation and fires one desktop notification; it resets automatically once the balance recovers.
  • Theme-native UI — built entirely on --dsw-alias-* theme variables, so light and dark themes both render correctly; the panel closes when you click outside and flips open-direction near screen edges.
  • Clear current session — one button clears only the open conversation's token/cost records; every other conversation is untouched.

Screenshots

Floating window (draggable)Minimized dotBelow threshold (alert on)Above threshold (normal)
Floating wallet windowMinimized floating dotBelow thresholdAbove threshold

Install

From npm:

dsh plugin --profile web add deepseek-harness-wallet

or from GitHub directly:

dsh plugin --profile web add github:feibi-mochi/deepseek-harness-wallet

Restart dsh web, then hard-refresh the page.

Update

dsh plugin --profile web update deepseek-harness-wallet

Remove

dsh plugin --profile web remove deepseek-harness-wallet

The package was renamed from dsh-wallet to deepseek-harness-wallet in 0.1.1. If you installed the old name, remove it with dsh plugin --profile web remove dsh-wallet first.

Data & trust

ItemBehavior
Token accountingListens to the llm/stream event and buckets per provider (deepseek-official vs. everything else) and per session; multiple sessions never mix accounts.
BalanceThe DEEPSEEK_API_KEY from the credentials seam never leaves this machine except as the Authorization header of the official /user/balance request.
Session logThe plugin writes no events; its data lives in $DSH_HOME/storages/wallet.json.
Model surfaceNo tools registered, no prompt injection, zero token cost.
RechargeThe URL is hardcoded to the official https://platform.deepseek.com/top_up and is not user-configurable (anti-phishing).

Pricing timeline

CNY per 1M tokens, curated from official announcements (cache writes are not billed):

  • Since 2025-02-09 — deepseek-chat 2/8 (cache read 0.5), deepseek-reasoner 4/16 (cache read 1)
  • Since 2026-04-24 — v4-flash 1/2 (cache read 0.02), v4-pro 3/6 (cache read 0.025)
  • Since 2026-08-17 00:00 Beijing — peak/off-peak pricing for the v4 models (peak windows Beijing 09:00–12:00 / 14:00–18:00; off-peak is half the peak rate):
    • v4-flash (off-peak / peak): cache read 0.05 / 0.10, input 1.5 / 3, output 4.5 / 9
    • v4-pro (off-peak / peak): cache read 0.15 / 0.30, input 4.5 / 9, output 13.5 / 27

deepseek-chat and deepseek-reasoner keep their flat rates. Costs are estimates; the API-returned balance is authoritative.

Roadmap

  • Third-party price tables (cost per token)
  • Balance history chart
  • Balance-API adapters for other providers (e.g. Zhipu)

License

MIT

REPOSITORY SIGNALS

セキュリティとインストールエビデンス

このスコアは公開リポジトリメタデータと当サイトに登録されたインストールエビデンスのみに基づくもので、コードセキュリティ監査とは異なります。

出所の追跡可能性

公開プラグインカタログから取得し、公開 GitHub リポジトリにリンクしています。

ライセンス

リポジトリは MIT ライセンスを宣言しています。

メンテナンス活動

過去180日以内にコードの更新があります。

インストールエビデンス

再現可能な正確なインストールメタデータはまだ登録されていません。リポジトリの説明に従って手動で確認してください。

インストールライフサイクルスクリプト

確認したパッケージメタデータにインストールライフサイクルスクリプトは宣言されていません。