sunyuhuirong/deepseek-account ↗★ 0
@deepseek-ai/dsh-deepseek-account
DeepSeek 账户插件:在 Web 侧边栏显示配置账户的 API 余额(钱包按钮+余额卡片),并提供查询余额工具。
AI 分析
核心用途是直观监控 DeepSeek 官方 API 的消耗情况。适合频繁调用 DeepSeek 官方接口、需要随时查看钱包余额或允许 AI 代理自行查询余额的用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sunyuhuirong/deepseek-account說明文件
閱讀完整 README ↗dsh-deepseek-account
English | 中文
A DeepSeek account plugin for DeepSeek Harness. It adds a wallet button next to Settings in the web GUI sidebar; clicking it shows a balance card for the configured account, and a deepseek_balance tool lets the agent query the balance itself.
Balance display only. API keys are never stored by this plugin — they stay in the harness Settings under the DEEPSEEK_API_KEY credential.
Features
- Sidebar wallet button + balance popover (with rail/wide sidebar states)
deepseek_balancetool available to the agent- i18n: English + 简体中文
Install
Requires DeepSeek Harness (Node ^22.19 or >=24, ~/.dsh profiles).
# from any harness profile
dsh plugin add @deepseek-ai/dsh-deepseek-account --profile web
Then configure the account in Settings (the plugin reads the existing DEEPSEEK_API_KEY credential; no extra setup).
From source
pnpm install
pnpm bundle # build src -> lib
pnpm test # unit tests
The plugin is developed inside the harness monorepo (packages/extensions/deepseek-account); the standalone repo mirrors the same source with npm-installable dependency ranges. The peer dependencies (client runtime, slots, etc.) are provided by the harness at runtime.
How it works
- Host half (
src/index.ts,src/balance.ts): registers thedeepseek_balancetool, which reads the account credential via the harness credentials service and calls the DeepSeek balance API. - Client half (
src/client/): registers into thesettings.triggerExtraslot (a wallet button next to Settings) and renders the balance card popover.
License
MIT