Preface¶
DeepSeek Harness (DSH) decouples capabilities into plugins, but there is no official “plan page” similar to a Coding Plan—users often have to align recharging, tiers, and quotas elsewhere. If you want a pricing-page-style entry within your own DSH: to select a tier, jump to the official recharge page, and write the quota back into the rationing system after recharging, the community plugin dsh-plan (Deep Dive Plan) is a client-side plugin designed for this purpose. Quota enforcement relies on dsh-ration; funds go into the DeepSeek official balance, while the “plan” is executed by ration.
What is this¶
dsh-plan is released by the maintainer wobenshiwomu and categorized as a client-side plugin. It mimics the layout of a Coding Plan pricing page within DSH: seven subscription tiers (¥10–¥500 and Custom). Clicking “Subscribe” opens the official DeepSeek recharge page; the host background monitors the balance increase, matches the tier, and automatically writes the quota into dsh-ration.
- Directory: https://www.skillhub.cn/plugins/wobenshiwomu/dsh-plan
- Source Code: https://github.com/wobenshiwomu/dsh-plan
- Version in current docs: 0.1.3 (MIT License)
Page & Tiers¶
The entry point is a black rounded button “Token Plan” at the bottom of the sidebar; the page does not pop up automatically, and the /plan command only serves as an entry hint.
Seven tier cards slide horizontally: Trial ¥10, Shallow Dive ¥20, Deep Dive ¥50, Abyss ¥100, Trench ¥300, Mariana ¥500, and Custom (user-defined amount). Each card contains the tier name, slogan, ¥X/month, a subscribe button, and a feature list; the page itself does not annotate token quotas—numbers appear in the rationing widget and the subscription success pop-up. The color scheme follows the DSH theme (light/dark). “Current Tier” is stamped only if you have subscribed before; otherwise, it shows “Not Subscribed”.
Subscription Lifecycle¶
Below is the flow from clicking subscribe to quota synchronization (consistent with the README):
Click "Subscribe" → Opens platform.deepseek.com/top_up in a new tab (Official Recharge Page)
→ Page enters "Waiting for subscription to take effect" (Can also click "I've Recharged · Check Now")
Host monitors balance → Net increase ≥ ¥10判定 subscription (Nearest tier match ±5%, defaults to Custom if no match)
→ Automatically writes quota to dsh-ration → Pops up "Subscription Successful" window (Reversible)
Conversion chain: Net increase ÷4 → Week, ÷5 → 5 hours (Docs state 1 Yuan = 8 million tokens; e.g., ¥100 tier corresponds to 5 hours / 40 million tokens or 1 week / 200 million tokens). Balance polling: 20 seconds interval when the page is open; checks immediately on window focus; 5-minute grace period after leaving the page (30s/interval). Only recognizes balance “increases”; daily consumption decreases will not trigger false positives. Balance reading prioritizes the official account service; if not logged in, it falls back to the API key’s /user/balance (same approach as dsh-tide). If dsh-ration (v0.1.2+) is not installed, you can still view the page and jump to recharge, but the quota will not sync automatically after subscription.
Installation & Activation¶
Install using the web profile in the terminal (commands from the repository README):
dsh plugin --profile web add 'https://codeload.github.com/wobenshiwomu/dsh-plan/tar.gz/v0.1.3'
# Installing dsh-ration (v0.1.2+) simultaneously is recommended:
dsh plugin --profile web add 'https://codeload.github.com/wobenshiwomu/dsh-ration/tar.gz/v0.1.2'
GUI: Sidebar “Plugins” → Add Plugin → Enter the tarball URL above. A DSH restart is required to take effect. Runtime environment requirements (package.json): Node ^22.19.0 || >=24.0.0, DSH >=0.2.0-rc.1.
Typical Usage¶
- Click “Token Plan” at the bottom of the sidebar (or execute
/planto view hints). - Select a tier → Subscribe → Complete the official recharge in the new tab → Return to DSH (Auto-detected within the 5-minute grace period, or click “I’ve Recharged · Check Now”).
- Once “Subscription Successful” pops up, the quota is synchronized; you can “Undo” to restore the pre-subscription state if needed.
Configuration (Overridable at Profile Level)¶
The following fields are provided in the README and can override default behavior as needed:
- id: dsh-plan
config:
topUpUrl: https://platform.deepseek.com/top_up
intervalOpenMs: 20000 # Balance polling when page is open
intervalGraceMs: 30000 # Grace period polling after leaving page
graceMs: 300000 # Grace period duration (5 minutes)
minRise: 10 # Minimum net increase to判定 subscription (Yuan)
tolerance: 0.05 # Tolerance for nearest tier matching
balanceBaseUrl: https://api.deepseek.com # Fallback balance API
apiKeyRef: DEEPSEEK_API_KEY # Reference name for fallback API key
Use Cases & Notes¶
Suitable for: Developers or small teams already using the DSH web client for personal use who want a closed loop using fixed tiers + official recharge + ration allocation.
Please read the source code and MIT license yourself before installing; the plugin runs under the current DSH process permissions and will read balance-related APIs and configured API key references. Community directories like SkillHub have no official affiliation with DeepSeek / High-Flyer and should not be treated as official app stores. The repository provides node test/sim.mjs (62 assertions) for maintainer self-testing; regular users should focus on installation and the usage described above.
Links¶
- Plugin Directory: https://www.skillhub.cn/plugins/wobenshiwomu/dsh-plan
- GitHub: https://github.com/wobenshiwomu/dsh-plan