DSH Usage and Cost Panel
A DeepSeek Harness (dsh) web plugin: shows DeepSeek API balance and token usage at the bottom of the web sidebar (port 3080), with a Today / All-time toggle, filtered by provider (only , ignoring other vendors).
Project overview
Restart dsh web, then refresh the page — a balance button appears at the bottom of the sidebar. Architecture index.js: node-side cordis plugin, registers HTTP route /dsh-balance/data client.js: browser-side plugin, injects into sidebar.footer.action (sidebar bottom button + floating panel) package.json: dsh.bundle + dsh.client.platform: "web" + exports["./client"] cordis.patch.yml: bundle patch registering the node entry Manual install
Then add to /.dsh/profiles/web/cordis.patch.yml:
Restart dsh web and refresh the browser. Dependencies node side: Node built-ins only (node:fs, node:childprocess, node:path); requires the zstd CLI for decompressing session logs browser side: @deepseek-ai/dsh-client-ui-primitives (peer dep, ships with dsh 0.1.0-rc.6) Data source