dsh-api-usage: View DeepSeek API balance and usage in the DSH Web sidebar
dsh-api-usage is a lightweight plugin developed specifically for DSH Web, designed to address the pain point of needing to query balance, consumption, and usage separately after model invocation. Maintained by chenzhexii and based on the MIT license, the plugin provides a resident widget at the bottom of the sidebar to centrally display real-time balance, today's consumption (accurate to cents), Token usage, request count, and a 24-hour consumption bar chart. Its core functions include automatic balance polling every 60 seconds, calculating real consumption based on balance differences, manual refresh, one-click navigation to the top-up page, and automatic retry on faults. Data states are persistently saved, and the interface features a responsive design with strict loopback address routing protection. Before installation, ensure the environment supports DSH Web, Node 20+, and a configured DeepSeek API Key, installed via dsh plugin.
Read More