DSH Plugins Marketplace

DSH Plugins

Plugins

/

Terminal & Clients

/

dsh-usage-widget

A

dsh-usage-widget

Manifest valid

DSH plugin: Live view of DeepSeek balance and Kimi Code usage in the left sidebar (5-hour window + weekly quota).

UI (client)hasBundlePatch

dsh-usage-widget

A DeepSeek Harness (DSH) plugin that keeps a compact usage widget inside the left sidebar of the Web GUI:

  • DeepSeek account balance — GET https://api.deepseek.com/user/balance
  • Kimi Code quota — GET https://api.kimi.com/coding/v1/usages (5-hour window + weekly quota)

The panel is always visible in the sidebar footer, click to collapse/expand, auto-refreshes every 60 s, and offers a DeepSeek / Kimi toggle.

Community plugin, not an official DeepSeek plugin.

Install

Requires a DSH Web/Desktop profile (the plugin targets the browser client).

# from GitHub (repo ships prebuilt lib/, no build step needed)
dsh plugin --profile <name> add github:AHui-Lab/dsh-usage-widget

# once published to npm
dsh plugin --profile <name> add dsh-usage-widget

# if no global dsh CLI
npx --yes @deepseek-ai/dsh plugin --profile <name> add github:AHui-Lab/dsh-usage-widget

Restart DSH, then look at the bottom of the left sidebar for the "用量" entry.

How the data flows

The browser cannot call api.kimi.com directly (its CORS preflight rejects the Authorization header), so the plugin keeps two data paths:

  1. Host route GET /usage-monitor/deepseek|kimi (registered on the host webserver) proxies the upstream. It prefers the API key the client sends in the Authorization header, otherwise falls back to the DSH credentials service / env.
  2. Browser-direct fallback (used when the host route is unreachable): fetch the upstream directly with a key the user stored in the panel. Works for DeepSeek (CORS allowed); Kimi is CORS-blocked in this mode.

API keys

Keys are per-machine and never ship with the plugin:

  • Host route mode: put DEEPSEEK_API_KEY / KIMI_CODING_API_KEY in ~/.dsh/.credentials.yaml or the environment (host reads them).
  • Browser-direct fallback: open the panel → gear icon → paste the DeepSeek API Key and the Kimi Code token. They are kept in the browser's localStorage only (key prefix usage-monitor.key.*) and sent only to the upstream API.

Note: keys are intentionally not distributed with the plugin. Each machine configures its own.

Layout

The widget registers into the sidebar.footer.action list slot and renders inline inside the sidebar column (full column width, no floating overlay, no overlap with the chat area). All styles are scoped under data-plugin="dsh-usage-widget".

Development / publishing notes

  • Host entry: lib/index.js (registers the two /usage-monitor/* routes; inject: ["webServer"]).
  • Client bundle: lib/client.js (ModuleLoader bundle; only react + @deepseek-ai/dsh-client-ui-primitives from the baseline).
  • lib/ is committed so both GitHub and npm installs need no build step.
  • Environment overrides: USAGE_MONITOR_DEEPSEEK_REF, USAGE_MONITOR_KIMI_REF, USAGE_MONITOR_DEEPSEEK_BASE, USAGE_MONITOR_KIMI_BASE.

Verify before releasing:

npm run check
npm pack --dry-run --ignore-scripts

License

MIT

Comments

Loading…

From the same category

dsh-purge

by kingcharleslzy-ai

Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 9.8k

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-purge-community

by ccch1mneyyy

DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol

Terminal & ClientsManifest valid

★ 7.9k

↓ 19.2k/wk

MIT

TypeScript

Nov 17, 2026

dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tui

by mmparko

DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。

Terminal & ClientsManifest valid

★ 5.3k

↓ 17.9k/wk

MIT

JavaScript

Oct 13, 2026

dsh plugin --profile web add dsh-purge

by bowenliang123

The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,

Tools & CapabilitiesUI & ExperienceTerminal & ClientsManifest valid

★ 5.2k

↓ 123.5k/wk

Apache-2.0

TypeScript

Nov 17, 2026

dsh plugin --profile web add dsh-context

by strukto-ai

The World's First Virtual Terminal for AI Agents

Terminal & ClientsManifest valid

★ 3.8k

↓ 532/wk

Apache-2.0

TypeScript

Nov 18, 2026

dsh plugin --profile agent add @struktoai/mirage-dsh

by c1overzz

DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你

Tools & CapabilitiesNotifications & IntegrationsTerminal & ClientsManifest valid

★ 1.4k

↓ 9.9k/wk

MIT

JavaScript

Nov 12, 2026

dsh plugin --profile web add dsh-bili-scroll