
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-account-balance
Advanced tools
A DeepSeek Harness (DSH) web client plugin: a small label in the composer tool row (right end, beside the send button) showing your DeepSeek API account balance.
Scope: balance only for now. A "spent today" readout is a planned follow-up — DeepSeek has no usage-history API, so it must be computed separately.
topped_up_balance as ¥ 1,234.56.DEEPSEEK_API_KEY) and never exposes it to the browser.A DSH plugin is an npm package with two halves:
| Half | File | Job |
|---|---|---|
| Host | lib/index.js | Cordis service registering GET /dsh-usage/balance; resolves the key and calls DeepSeek's balance API behind a 60 s cache. |
| Client | lib/client.js | Module-loader bundle injecting a React label into the conversation.input.right slot. |
The client polls GET /dsh-usage/balance every 60 s and passes ?refresh=1 on click. No build step: the client bundle is hand-authored in module-loader format.
GET https://api.deepseek.com/user/balance returns balance_infos[0] with total_balance, granted_balance, and topped_up_balance (CNY, as strings). The host parses them into numbers.
The composition must provide the DEEPSEEK_API_KEY credential (the same key DSH uses to call DeepSeek). The host reads it through ctx.credentials, falling back to the process environment.
Requires DSH's web profile. The default web profile lives at
~/.dsh/profiles/web/.
dsh plugin --profile web add dsh-account-balance
Installs from npm and reconciles it into the profile's bundle list (the package declares dsh.bundle). Requires pnpm on PATH.
git clone https://github.com/weiyuou-chowbus/dsh-usage.git
ln -sfn "$(pwd)/dsh-usage" ~/.dsh/profiles/web/node_modules/dsh-account-balance
Then add the row to ~/.dsh/profiles/web/cordis.patch.yml:
# ~/.dsh/profiles/web/cordis.patch.yml
- insert:
- id: usage
name: dsh-account-balance
Restart with npm exec @deepseek-ai/dsh web and refresh http://127.0.0.1:3080.
| Key | Type | Required | Meaning |
|---|---|---|---|
apiKeyEnv | string | no | Credential ref to resolve (default DEEPSEEK_API_KEY). |
| Route | Method | Query | Response |
|---|---|---|---|
/dsh-usage/balance | GET | ?refresh=1 (optional, bypass cache) | { isAvailable, currency, totalBalance, grantedBalance, toppedUpBalance } |
On failure: 502 { error, balance: null }.
api.deepseek.com; a custom chat baseURL is ignored.lib/client.js) hot-reload: DSH's client-modules watcher re-hashes the bundle and a refresh applies it.lib/index.js) need a dsh web restart.dsh.client declares inject: ["@deepseek-ai/dsh-client-runtime"] and platform: "web", so the shell serves /plugins/dsh-account-balance/client.js.FAQs
DSH web composer tool-row DeepSeek account balance indicator
The npm package dsh-account-balance receives a total of 0 weekly downloads. As such, dsh-account-balance popularity was classified as not popular.
We found that dsh-account-balance demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.