Back to home@WSL043

dsh-native-deepseek-balance

Compact, private DeepSeek API cash balance for DeepSeek Harness

Stars
0
Language
JavaScript
Created
Aug 24, 2026
Updated
Aug 24, 2026
GitHub repo

Introduction

DSH Native DeepSeek Balance

A compact, private view of your official DeepSeek API cash balance

CI npm total npm downloads MIT

Install · Privacy · 简体中文

DeepSeek API cash balance in DeepSeek Harness Settings

What it does

  • Shows one quiet 28 px balance pill beside the composer controls.
  • Opens a compact detail panel and provides a dedicated Settings → DeepSeek page.
  • Displays every CNY/USD entry returned by DeepSeek, including total, granted, and topped-up cash balance.
  • Lets you choose Auto, CNY, or USD for the composer pill without adding another credential.
  • Pauses automatic refresh in hidden tabs, catches up when visible, and shows when the data was last updated.
  • Keeps the last successful value during a temporary failure and labels it as stale; an unknown balance is never shown as zero.

DeepSeek's public API reports account cash balance, not per-model quota or usage percentages. This plugin does not invent a progress bar, spending history, or token allowance.

Install

PowerShell helper—it still delegates to DSH's official plugin command:

irm 'https://github.com/WSL043/dsh-native-deepseek-balance/releases/latest/download/install.ps1' | iex

Or use the official command directly:

dsh plugin --profile web add dsh-native-deepseek-balance

Restart DSH after installation. The plugin reuses the DeepSeek API key configured in Settings → Models.

Update or uninstall:

dsh plugin --profile web update dsh-native-deepseek-balance
dsh plugin --profile web remove dsh-native-deepseek-balance

For an Agent, use the packaged installation and verification guide.

Privacy and network access

The DSH host calls only DeepSeek's documented GET https://api.deepseek.com/user/balance endpoint. The API key remains in the host credential service; the browser receives only validated currency and balance fields. Provider error bodies, credentials, and account identifiers are never returned to the UI. Successful responses are cached in memory for 30 seconds and are never written to disk.

The plugin registers no model-facing tool, adds nothing to the system prompt or conversation history, and consumes no model tokens.

Compatibility

Supports the latest DeepSeek Harness release recorded in the package metadata. DSH-Portable uses the same standard dsh plugin command and treats this as an optional plugin.

This community project is not affiliated with or endorsed by DeepSeek.

Report a bug · Security · MIT