DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-balance

D

dsh-balance

Manifest valid

DeepSeek Harness Balance Query Plugin: View your DeepSeek account balance in the session using the /balance command. / DeepSeek account balance as the /balance command.

hasBundlePatch

description: "dsh-balance: the /balance command shows the DeepSeek account balance inside a session."

dsh-balance

English | 中文

The /balance command for DeepSeek Harness: reads the DeepSeek account balance and answers in the session, without a browser panel or a settings page.

/balance
DeepSeek 账户余额(可用)
CNY 总余额 ¥293.58 · 充值 ¥293.58 · 赠送 ¥0.00
读取于 2026/9/18 13:20:41(刚刚)

What it does

  • Registers /balance with the command registry. The answer is the command's own text, so it renders in the session that invoked it and never reaches the model.
  • Reads GET {baseUrl}/user/balance with the resolved API key and reports every funded currency, with the topped-up and granted parts of each.
  • /balance refresh bypasses the cache.
  • The key is resolved per invocation: config apiKey, then the credentials reference apiKeyRef (DEEPSEEK_API_KEY by default — $DSH_HOME/.credentials.yaml or the process environment). A rotated key reaches the next invocation without a restart.
  • A failed refresh still shows the last successful reading and says so, instead of hiding a known balance behind a transient outage.

Install

# from GitHub
dsh plugin --profile web add github:DWJZ/dsh-balance

# local development (the profile links the checkout, so edits apply on restart)
dsh plugin --profile web add link:/path/to/dsh-balance

Configuration

Optional; write it into $DSH_HOME/profiles/<profile>/cordis.patch.yml:

- id: dsh-balance
  config:
    apiKey: ''                        # explicit key; empty means "use apiKeyRef"
    apiKeyRef: DEEPSEEK_API_KEY       # credentials / environment reference
    baseUrl: https://api.deepseek.com
    timeoutMs: 10000
    cacheMs: 30000                    # how long one reading answers later calls

An unusable value (a non-string reference, a timeout below one second) fails loud at load instead of being silently replaced.

Test

node test/smoke.mjs

Drives the handler against a stubbed platform API: success formatting, the cache and /balance refresh, a missing key, HTTP 401, a transport failure, the stale-reading fallback, and the zero-balance currency rule.

License

MIT

Comments

Loading…

From the same category

archify

by tt-a1i

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.

Workflow & AutomationTools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 73.2k

↓ 5.1k/wk

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile agent add @tt-a1i/archify-dsh

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

★ 41.7k

↓ 292/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by Tencent

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

Development & InfrastructureTools & CapabilitiesManifest valid

★ 30.8k

↓ 1.1k/wk

NOASSERTION

Go

Sep 28, 2026

dsh plugin --profile web add @wxg-prc-cpg/dsh-weknora

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

Tools & CapabilitiesManifest valid

★ 29.3k

↓ 195/wk

MIT

TypeScript

Sep 27, 2026

dsh plugin --profile web add dsh-plugin-desktop

deepseek-harness-desktop is a interface plugin for DeepSeek Harness. See the repository documentation for its documented capabilities.

Tools & CapabilitiesUI & Experience

★ 28.6k

MIT

Index only — not installable

by titanwings

Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).

Tools & Capabilities

★ 25.1k

MIT

TypeScript

Sep 22, 2026

Index only — not installable