DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Deepseek Balance — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@freespace8/dsh-deepseek-balance

Deepseek Balance

Official DeepSeek API balance pill for the DeepSeek Harness Web GUI session header, with click/timed refresh and auto-hide for non-official models. 官方 DeepSeek API 余额胶囊。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @freespace8/dsh-deepseek-balance@0.1.2
READMECompatibilityVersions

Compatibility and provenance

Deepseek Balance is published as @freespace8/dsh-deepseek-balance and currently resolves to version 0.1.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

0.1.2stable
8/15/2026
0.1.1stable
8/15/2026
0.1.0stable
8/15/2026

Related plugins

Loading related plugins…

Latest
0.1.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
45.7 kB
Files
8
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
41
Last push
8/21/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

@freespace8/dsh-deepseek-balance

A DeepSeek Harness plugin that shows your official DeepSeek API balance as a pill in the Web GUI session header (left of the Session log). It is shown only when the current session model is an official DeepSeek model and auto-hides for third-party relay/proxy models.

English · 简体中文


Table of contents

  • Features
  • Preview
  • Requirements
  • Installation
  • Configuration
  • How it works
  • Verification
  • License

Features

  • Displays the official DeepSeek balance as ¥xx.xx (no currency suffix) in the session header;
  • Shown only when the session's current model is an official DeepSeek model (provider deepseek-official, i.e. api.deepseek.com) — third-party relay/proxy models hide it automatically;
  • Hover shows the granted/topped-up breakdown and the last refresh latency;
  • Click the refresh button in the pill to refresh immediately (with a spinner animation); auto-refreshes every 5 minutes;
  • No caching: every refresh really calls the official endpoint; on failure the previous balance is kept and a red dot is shown.

Preview

The pill as it appears in the session header (left of the Session log):

DeepSeek official balance pill preview

Visibility: the pill appears only when the session's current model is an official DeepSeek model (provider deepseek-official, i.e. api.deepseek.com). If you switch to a non-official DeepSeek relay/proxy model the pill hides; it reappears when you switch back to an official model.

Requirements

  • DeepSeek Harness with a running web profile;
  • A stored official DeepSeek API key: DEEPSEEK_API_KEY in ~/.dsh/.credentials.yaml (or the same-name environment variable).

Installation

Published on npm — install with a single command (target profile web):

dsh plugin --profile web add @freespace8/dsh-deepseek-balance

After installing, restart the web profile (dsh plugin add only updates the manifest and dependencies; a running instance does not hot-load a new bundle). To uninstall:

dsh plugin --profile web remove @freespace8/dsh-deepseek-balance

Configuration

Override any field in the profile's cordis.patch.yml by id (the config block is replaced wholesale):

- id: deepseek-balance
  config:
    apiKeyEnv: DEEPSEEK_API_KEY   # credential name used for the balance request
    refreshIntervalMs: 300000     # auto-refresh interval (milliseconds)
    order: -1                     # pill order in the session header (lower = earlier)
    shellTimeoutMs: 8000          # total shell timeout for fetching the balance (ms)

How it works

  • Host half (src/index.js): resolves the API key via ctx.credentials, runs curl https://api.deepseek.com/user/balance through ctx.shell, and registers the HTTP route /plugins/dsh-deepseek-balance/balance to deliver the result (including the refresh-interval config) to the browser;
  • Client half (lib/client.js): registers a conversation.session.header.utilities slot entry; reads the session's current model via ctx.modelDirectories to decide visibility; fetches the balance route to render the pill.

Balance data always comes from the official DeepSeek endpoint (using the stored official key), regardless of which provider the model traffic goes through; visibility depends only on whether the session's current model is an official DeepSeek model.

Verification

npm run check   # artifact gate: syntax, export shapes, exports/files, patch line, client id

Real-behavior verification (after installing into a profile): restart the web profile → open an existing session → the balance pill appears in the header; switch the model to a third-party relay model → the pill disappears; switch back to official DeepSeek → the pill returns.

License

MIT — see LICENSE. This is an original work and contains no third-party code.