dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek balance widget for the dsh web sidebar
English | 中文
A multi-provider AI balance widget for the dsh web sidebar. DeepSeek is built in; add MiMo (Xiaomi) from the popover. Auto-refreshes every 30 seconds.
Sidebar entry
Detail popover
Usage stats
DEEPSEEK_PLATFORM_TOKEN (just tell your AI "help me configure usage stats"); balance-only otherwiseAI-guided setup
Version & updates
vX → vY Update with one-click auto-updateSkin & third-party plugin compatibility (since v2.4.3)
[data-maid-sidebar-footer]) as fallback sidebar anchorsRequires: dsh installed (with dsh web working).
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.3
Installed from npm and auto-registered by dsh. Restart dsh web and the balance button appears in the sidebar.
Always pin the version
@2.4.3(the current latest stable). Do not use@latest— local pnpm/npm cache or a mirror registry can resolve it to an outdated release. When a newer version is released, bump the number here.
Or just tell your AI:
Install the dsh-deepseek-balance-widget plugin for me via npm: run
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.3.
On first use the plugin creates a DeepSeek entry and reads your local DEEPSEEK_API_KEY.
To add MiMo, open the popover, click "+ Add", then "AI Configure", and send the copied prompt to your AI. Or just tell your AI:
Configure dsh-deepseek-balance-widget for me.
The AI takes care of everything: asks for your API key / guides you through getting the platform cookie → writes the local config → reminds you to restart dsh web.
| Provider | Credential | Notes |
|---|---|---|
| DeepSeek | DEEPSEEK_API_KEY | Required, balance |
| DeepSeek usage | DEEPSEEK_PLATFORM_TOKEN | Optional, cumulative / monthly / today stats |
| MiMo (Xiaomi) | Login cookie | Guided by your AI |
Credentials are stored locally in ~/.dsh/ai-balances.json; nothing is shipped with the plugin and nothing is uploaded.
Upgrade to the latest stable release on npm regardless of which older version you currently have.
vX → vY Update (where vY is the highest semver version on npm).dsh web (stop the dsh web process / quit the desktop app and reopen — refreshing the browser tab is not enough) for the new version to load.The popover's "Update" skips the
latesttag and installs the highest semver version on npm, so it still reaches latest even if someone lowers thelatesttag.
dsh plugin --profile web add dsh-deepseek-balance-widget@2.4.3
Pinning @2.4.3 bypasses local cache / mirror desync / a stale latest resolution in one step. Then fully restart dsh web.
cd ~/.dsh/profiles/web
npm install dsh-deepseek-balance-widget@2.4.3 # use `pnpm add` if a pnpm-lock.yaml exists in this dir
# verify the on-disk version actually changed
cat node_modules/dsh-deepseek-balance-widget/package.json | grep '"version"'
Once it prints 2.4.3, fully restart dsh web.
If the popover / command-line update keeps failing (version never changes), an agent host (e.g. WorkBuddy) is likely injecting a file-deletion guard via
NODE_OPTIONS, which makes pnpm/npm abort during updates. Run the command in a plain terminal (not through the agent), or unsetNODE_OPTIONSfirst (PowerShell:set NODE_OPTIONS=) and retry.
Uncaught NotFoundError: insertBefore in the console) when running alongside skins such as maid-atelierappendChild otherwise — it never throwstryPlace() is fully guarded, so a single failure no longer kills retries; a next-frame check re-places the entry if the skin / React moved it in the same ticksidebarRoot() gained a [data-maid-sidebar-footer] skin-marker fallbackSee GitHub Releases.
dsh plugin --profile web rm dsh-deepseek-balance-widget
Or just tell your AI:
Uninstall the dsh-deepseek-balance-widget plugin for me via npm.
Questions or suggestions? Feel free to reach out:
If this plugin helped you, consider buying me a ham sausage for dinner 🍗