deepseek-balance
其他 活跃维护

deepseek-balance

adoreQ/deepseek-balance

轻量级DeepSeek生态扩展插件,安装后可直接在当前使用界面内实时查看账户余额,无需跳转第三方页面,操作简单快捷,数据同步及时,本地运行无额外资源占用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
5 KB
仓库大小
23 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:adoreQ/deepseek-balance
git clone https://github.com/adoreQ/deepseek-balance.git
git clone git@github.com:adoreQ/deepseek-balance.git
README.md main

deepseek-balance

DSH (DeepSeek Harness) Web plugin — 实时查看 DeepSeek API 余额,以悬浮窗展示。

A DSH Web client plugin that displays your DeepSeek API balance (total / topped-up / granted) in a real-time floating window (悬浮窗), refreshed every 30 seconds.

Features

  • 🪟 Floating window — draggable overlay card rendered in the DSH shell.overlay slot, collapsible via − / +.
  • 🔄 Real-time refresh — polls the balance every 30 s (configurable) plus a manual refresh button.
  • 🔒 Key stays on host — the host half reads the DEEPSEEK_API_KEY credential and proxies GET https://api.deepseek.com/user/balance; the API key never reaches the browser.
  • 🌓 Theme-aware — uses the DSH design tokens (--dsw-*) so it matches light/dark mode.

Requirements

  • A running DSH web profile (dsh --profile web).
  • A DeepSeek API key stored through the credentials service (DEEPSEEK_API_KEY), or exported in the launching environment.

Install

Register the plugin in the web profile's cordis.patch.yml and install the package into the profile's node_modules:

- insert:
    - id: deepseek-balance
      name: deepseek-balance

Then place this package (or a symlink) under ~/.dsh/profiles/web/node_modules/deepseek-balance/, restart dsh web, and refresh the GUI — the floating balance window appears.

Files

  • lib/index.js — host half: registers the /deepseek-balance proxy route.
  • lib/client.js — client bundle: renders the floating window and polls the route.

License

MIT