zzh407/dsh-newapi-usage: View NewAPI relay balance and usage in DSH Web interface

A DSH Web plugin that displays the balance, consumption, request count, and API key details for one or more NewAPI sites in the sidebar. Site addresses and system access tokens are stored locally in DSH credentials, and requests are initiated by DSH Host, ensuring the browser never handles the full token. Installation is executed via `npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zzh407/dsh-newapi-usage`, which requires enabling Web UI, Connection, Credentials, Layout, and Sidebar in the Web profile. Data is sourced from four management endpoints: `/api/user/self`, `/api/log/self/stat`, `/api/token/`, and `/api/status`. It requires a system access token, not a `sk-` relay key. The text details statistical definitions, ~60-second caching with a 2-minute auto-refresh, no redirect following, currency conversion rules, and advises reviewing the source code and MIT license prior to installation.

Read More