AlexPeng07/dsh-custom-plugin ↗★ 5
@alexpeng/dsh-custom-plugin
Custom convenience suite for the dsh web GUI: appearance, timeline, folders, prompts, session export/search, Mermaid, quote reply, usage analytics, local budget, key-free backups, and a Ctrl/Cmd+K command palette; dual-face plugin mounted without dsh source changes.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AlexPeng07/dsh-custom-plugin说明文档
阅读完整 README ↗Balance and usage
A balance badge sits in the session header (clickable to pin); the balance panel provides:
- Balance: the official
https://api.deepseek.com/user/balanceendpoint, CNY preferred, granted and topped-up balances listed separately, with the account availability flag. - Key resolution order: the system credential store (when available) → the legacy plugin state-file key → environment variables
DEEPSEEK_API_KEY/DEEPSEEK_KEY/DEEPSEEK_TOKEN(values must start withsk-) → the DSH credentials file$DSH_HOME/.credentials.yaml(reuses the DeepSeek key already configured in DSH — no duplicate setup). - Today's usage: per-model input / output / cache token counters and call counts, folded live from
session/eventrecords. - Cost estimate: DeepSeek's current official peak/off-peak table — peak hours are Beijing Monday–Friday 09:00–12:00 / 14:00–18:00; all other hours, including weekends, are off-peak at half price:
deepseek-v4-flash/deepseek-v4-flash-vision-exp¥3 / ¥9,deepseek-v4-pro¥9 / ¥27 (CNY per 1M tokens in / out, cache writes ¥0.1 / ¥0.3; the retireddeepseek-chat/deepseek-reasonerprice as v4-flash). Indicative only. - Scan: "scan today's session logs" replays every session and buckets usage events by their own timestamp (cross-midnight sessions keep contributing today's usage), reporting how many active sessions were scanned.
- History and budget: inspect 7 / 30 / 90-day trends and per-model totals, export UTF-8 CSV, and set a local monthly CNY budget with an in-plugin warning threshold.