dsh-balance-display-simple
Shows the DeepSeek API account balance under the brand row of the DSH sidebar and refreshes it every 60 seconds. A dot turns green when the account is available, red when it is not, and orange when the request fails. The balance is read through a same-origin endpoint served by the host, and that endpoint rejects untrusted requests, so neither the API key nor the account token reaches the browser. When a DeepSeek account is signed in, the balance comes from the account wallet, adding top-up and bonus credit per currency; otherwise it falls back to the DEEPSEEK_API_KEY balance API. Next to the amount, a label shows whether the current time falls in DeepSeek peak or off-peak pricing.
Overview
Shows the DeepSeek API account balance under the brand row of the DSH sidebar and refreshes it every 60 seconds. A dot turns green when the account is available, red when it is not, and orange when the request fails. The balance is read through a same-origin endpoint served by the host, and that endpoint rejects untrusted requests, so neither the API key nor the account token reaches the browser. When a DeepSeek account is signed in, the balance comes from the account wallet, adding top-up and bonus credit per currency; otherwise it falls back to the DEEPSEEK_API_KEY balance API. Next to the amount, a label shows whether the current time falls in DeepSeek peak or off-peak pricing.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.