sunyuhuirong/deepseek-account

项目介绍Project Overview

这是 DeepSeek Harness 的账户插件,在网页侧边栏设置旁添加钱包按钮,点击显示已配置账户的余额卡片,并提供 deepseek_balance 工具供智能体查询余额。适用于需要在界面或代理流程中查看 DeepSeek 账户余额时。插件仅展示余额,不存储 API 密钥,密钥仍保存在 Harness 设置的 DEEPSEEK_API_KEY 凭据中。

A DeepSeek Harness account plugin that adds a wallet button next to Settings in the web sidebar. Clicking it shows a balance card for the configured account, and a deepseek_balance tool lets the agent query balance directly. Use it when you need balance visibility in the GUI or agent workflow. It only displays balance and never stores API keys; the key remains in Harness Settings under the DEEPSEEK_API_KEY credential.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin add @deepseek-ai/dsh-deepseek-account --profile web

sunyuhuirong/deepseek-account 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

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_balance tool 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 the deepseek_balance tool, which reads the account credential via the harness credentials service and calls the DeepSeek balance API.
  • Client half (src/client/): registers into the settings.triggerExtra slot (a wallet button next to Settings) and renders the balance card popover.

License

MIT

上一个 Prev dsh-colorschemes 下一个 Next dsh-asc