Introduction¶
When integrating OpenRouter into DSH (DeepSeek Harness), the model list and usage rankings change: new slugs go online, weekly ranking positions shift, and free variants form their own separate rankings. If you only occasionally open openrouter.ai in a browser, it’s hard to leave a reviewable record in your local workflow; manually diffing the ranking page as a data source is time-consuming, and any change to the page structure breaks the parsing.
The community plugin dsh-plugin-modelwatch (maintainer gh-gongjin) adds a panel under “Plugins” in the DSH Web sidebar. It uses read-only GET requests throughout to pull official lists and unofficial ranking endpoints, summarizing “new models / popular weekly rankings / free rankings / change logs”, without sending any external notifications, and does not perform model switching or calls for you.
What Is This¶
dsh-plugin-modelwatch is an OpenRouter model monitoring plugin for DSH, categorized as a “Web Tool”. It injects an entry point into the host Web interface, running a check cycle by default approximately every 60 minutes (can be changed to 1 / 6 / 12 / 24 hours), making three GET requests to the upstream per cycle; one additional request on demand when clicking model details. It doesn’t require an OpenRouter key, doesn’t send POST to OpenRouter, and doesn’t push external notifications.
The plugin is not an official OpenRouter tool, has no affiliation with openrouter.ai; popularity ranking numbers come from usage estimates from third-party pages/APIs, for observation purposes only, not for cost alerts or automatic model switching.
Core Features¶
New Models¶
Based on the created timestamp in the official model list, calculates models listed within the last N days (data is available upon first run, not dependent on diff). Table columns include name, slug, listing time, context length, input price, output price.
Popular Weekly Rankings¶
Weekly ranking by token usage, taking the top topN entries (default 15, configurable 5–20). Positions use gold/silver/bronze badges, usage column uses a relative magnitude bar compared to the top entry, making it easy to see the gap between rank 1 and rank 15. Data source is the react-query hydration data embedded in the GET https://openrouter.ai/rankings page, which is an unofficial reading method; changes to their page may cause parsing failures; on failure, the card shows a prompt in place and retains the last successful snapshot.
Free Rankings¶
Weekly ranking for :free variant models, using an independent data source GET https://openrouter.ai/api/frontend/v1/rankings/models?view=week, with separate fault gates from the popular weekly ranking—one failing does not affect the other. Also shows 15 entries by default (the page sidebar can rank more free models); positions are sorted by token usage, card source notes explain the difference from the 20-entry ranking in the SSR page.
Change Log¶
Append-only timeline, event types include new_model, removed_model, top_enter, top_exit, top_move, source_error (Chinese labels are defined on the host side, displayed via interface lookup table). Weekly ranking position shifts ≥3 are recorded as top_move; small daily fluctuations are treated as noise. Events are retained for 500 entries by default (configurable between 50–2000), older entries are trimmed when exceeded.
Model Details¶
Six model names in the interface are clickable, opening a centered detail modal: listing time, context, price, and per-endpoint details fetched on demand from the official list API GET /models/<slug>/endpoints (cached in-process for 10 minutes, not in the scheduled chain, not persisted to KV). The modal title links to the OpenRouter model detail page (URL constructed by the host from the id returned by the source). Detail fetch failure does not affect the main monitoring chain; the next click will retry.
Settings and Data Source Fault Tolerance¶
Settings page can change monitoring frequency, ranking count, event retention count, and displays a read-only “Runtime Environment” capability table. List source, SSR ranking source, free ranking source, and detail source are each independent; recovery from failure in any round records source_error, consecutive failures don’t spam. Monitoring still runs when KV is unavailable, but will prompt that this round’s changes cannot be persisted.
Installation and Activation¶
In the DSH ecosystem, plugins are installed via profiles; the Web side commonly uses the web profile. The official CLI installation command is as follows (internally uses pnpm, ensure pnpm is in PATH):
dsh plugin --profile web add github:gh-gongjin/dsh-plugin-modelwatch
For local clone directories, you can also use absolute paths: dsh plugin --profile web add <absolute path of this repo>.
For manual installation, edit ~/.dsh/profiles/web/package.json (on Windows %USERPROFILE%\.dsh\profiles\web\package.json), add "dsh-plugin-modelwatch": "link:<absolute path>" to dependencies, append "dsh-plugin-modelwatch" at the end of dsh.profile.bundles, and create a directory junction under the profile’s node_modules; restart dsh after changing bundles.
To temporarily disable, write to ~/.dsh/profiles/web/cordis.patch.yml:
- id: modelwatch
disabled: true
Plugin version 0.1.0, license MIT (see repository package.json).
Typical Usage¶
After installing and restarting DSH, enter the modelwatch panel from the sidebar. The header right side shows data source status, check time, and total model count; to refresh immediately click Check Now (shares the same code path with scheduled checks, returns busy status if in progress).
| Tab | Purpose |
|---|---|
| Overview | Data source status, top 3 this week, new and change summaries (default page) |
| Popular Weekly | Full weekly ranking table (position, model, weekly tokens, magnitude, change from last round) |
| Free Rankings | Free variant weekly ranking, table structure same as popular weekly |
| New Models | Full table of new models listed in the last N days |
| Change Log | Event timeline |
| Settings | Monitoring interval, topN, event retention count |
Relative times are all based on the current check time, not the browser’s current time. When you need a model’s endpoint and pricing, click the model name in any ranking or new model table to open details.
External HTTP is mounted under the host prefix /modelwatch; for example, browsers or scripts can read GET /modelwatch/api/snapshot, GET /modelwatch/api/stream (SSE), POST /modelwatch/api/check to trigger checks, etc.; details are proxied by GET /modelwatch/api/model?slug=, avoiding direct browser connection to openrouter.
Use Cases and Notes¶
Suitable for: Developers developing or operating agents in the DSH Web environment, needing to compare OpenRouter model updates and weekly ranking changes, and wanting changes to stay only in the local panel and KV, without introducing external notification chains.
Notes:
- The plugin runs with current dsh process permissions and accesses the network; before installation, please read GitHub source and LICENSE, confirm it meets your security policy.
- Popular and free rankings depend on unofficial pages/frontend APIs; OpenRouter changes may cause parsing failures. The panel retains the last data and notes the source—do not treat stale snapshots as real-time authoritative.
- Does not do automatic model switching, API calls, or cost alerts; for notifications please use the DSH host or other mechanisms. This plugin only handles read-only observation and local logs.
The community directory SkillHub plugin page and GitHub repository are independent of each other, neither is an official DeepSeek/Huanshuo app store; DSH itself follows the “everything is a plugin” extension approach.
Conclusion¶
dsh-plugin-modelwatch brings OpenRouter new models, popular and free weekly rankings, and reviewable change logs into the DSH sidebar, with clear read paths and zero notification binding. To install or see update notes, open directory page and GitHub repository.