返回目录
模型与 MCP 插件

dsh-sidebar-wallet

chipcats/dsh-sidebar-wallet

DeepSeek balance and today's spend in one line at the right end of the DSH sidebar account row. Hover for requests, tokens and peak/off-peak countdown.

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:chipcats/dsh-sidebar-wallet

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Sidebar Wallet · dsh-sidebar-wallet

English | 简体中文

A status dot and today's spend at the far right end of the DeepSeek Harness sidebar account row; hover for the details card (balance included), click to refresh.

● ¥12.34

Sidebar readout and hover card (English)

Sample data rendered from the component styles — not a screenshot.

Features

  • Balance: the official GET /user/balance — uses the saved DEEPSEEK_API_KEY first, falling back to the signed-in DeepSeek account wallet.
  • Today's spend: the official Platform usage export (Beijing calendar day, same numbers as the console's Usage page); falls back to a local session-log estimate, marked with ≈.
  • Hover / click: hover shows balance, today's spend and request count, input (hit / miss) tokens, output tokens, cache hit rate, the peak/off-peak countdown, update time and source; click refreshes.
  • Status dot: the dot in front of the readout is green during off-peak hours and amber during peak hours; the hover card carries the countdown.
  • Language: the readout follows the DSH interface language (Chinese / English) and switches live with the Language setting.

Install

Requires DeepSeek Harness ≥ 0.2.1-rc.1 (tested on 0.2.1-rc.5):

dsh plugin --profile desktop add github:chipcats/dsh-sidebar-wallet

Notes

  • The official usage comes from the private Platform web endpoint api/v0/usage/export (not a public API): the plugin reads the signed-in account session through DSH's deepseekAccount.getPlatformSession(), so no manual token is needed; when it is unavailable the local estimate is used instead and the readout never goes blank.
  • Privacy & security: only two hosts are contacted — api.deepseek.com (balance) and platform.deepseek.com (usage); tokens stay in the Host process memory and are never sent to the browser or written to disk; the only route is a read-only GET /dsh-sidebar-wallet/state.json (loopback / same-origin fence). No writes, no telemetry, no third-party runtime dependencies.
  • Holiday data: holidays.json ships with the plugin (generated by tools/refresh-holidays.mjs from a community mirror of the State Council announcements, MIT licensed); it is bundled at build time and no holiday endpoint is contacted at runtime. Make-up workdays stay off-peak because they are weekends, and the official peak windows only cover Monday–Friday.
  • Known limits: the official figure covers every API call of the account (any API key or client); without a signed-in account only the local estimate is shown; the peak/off-peak and holiday tables only affect the local estimate and the countdown.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。