dsh-openrouter-monitor
Manifest validDSH plugin: OpenRouter account balance, per-key spend, alert thresholds and trend charts under the composer.
dsh-openrouter-monitor
A DeepSeek Harness Web plugin that puts one line under the composer:
● 餘額 $12.40 · 今日 $0.85 · 本週 $3.20 · 4m
⚠ 餘額不足
- Live OpenRouter account balance and today/week spend, summed across every key.
- Alert thresholds — low balance, daily spend, per-key remaining — tint the row orange and can fire browser notifications (edge-triggered, once per UTC day).
- Hover card: account totals, balance & daily-spend trend charts, top keys with remaining-limit bars, and a local setup box.
- Configured in DSH settings under 「OpenRouter 監控」— interval, thresholds, display currency with manual FX rate — all live-applied without a restart.
Install
dsh plugin --profile web add dsh-openrouter-monitor
Restart dsh web; confirm both halves:
dsh --profile web --dump-config | grep openrouter-monitor
Setup
- Hover the row → paste an OpenRouter Provisioning/Management key
(
sk-or-v1-…, created on openrouter.ai/keys with provisioning enabled). It is stored in this browser only (localStorage) and sent only to openrouter.ai — never to the DSH host. This is deliberate: DSH's settings wire redacts secret-role fields before they reach any browser, so the key could not be usable from settings even if it were stored there. - Tune interval / thresholds / currency in DSH settings → OpenRouter 監控.
A plain inference key authenticates but gets HTTP 403 on /keys — the setup box
labels it insufficient. Without any key the row stays dim with a hint; poll
failures keep the last good numbers alongside a red dot.
Notes
- Display conversion is by manual rate only (
fxRate); USD passthrough needs none. The host schema rejects non-USD currencies withfxRate ≤ 0at write time, and unknown codes degrade to plain$. - Trend history keeps the latest 240 samples in
localStorage; reloads continue the chart rather than restarting it. - AI analysis of your bill needs no extra code here — paste the hover card's text into any DSH session.
MIT
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 18.3k
CC0-1.0
Python
Oct 10, 2026
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.2k
CC0-1.0
Python
Oct 10, 2026
by pax-beehive
Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub
★ 450
MIT
TypeScript
Oct 6, 2026
by xiajiajun516
DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.
★ 176
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add dsh-config-managerby yjh051108
推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。
★ 164
TypeScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby jigjoy-ai
A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.
★ 124
MIT
TypeScript
Oct 2, 2026