Back to catalog

xiaoyizhuang03-droid /

xiaoyizhuang03-droid/dsh-lmstudio-router

Verified

Local LM Studio model router for the dsh web GUI: routes token-expensive bulk tasks (text work, compaction, session titles) to a local LM Studio model over its OpenAI-compatible /v1 endpoint, auto-launches LM Studio, and fits requests into the model context window. Zero-dependency host plugin.

0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: master@8a9f4ea9

dsh-lmstudio-router

Local LM Studio model router for the dsh web GUI. Routes unimportant but token-expensive requests (bulk text work, compaction, session titles) to a local LM Studio model over its OpenAI-compatible /v1 endpoint, auto-launches LM Studio when it is not running, and fits every local request into the model's context window (default 8192). Dependency-free host plugin.

See README.zh.md for the full Chinese documentation.

Install

dsh plugin --profile web add link:<path-to-this-package>

Then add a config override in ~/.dsh/profiles/web/cordis.patch.yml:

- id: lmstudio-router
  name: 'dsh-lmstudio-router'
  config:
    baseUrl: http://127.0.0.1:1234/v1
    model: qwen3.5-9b
    contextWindow: 8192
    autoLaunch: true

Restart dsh web. Force routing with [local] / [remote] (or local: / remote:) at the start of a user message.

Test

node scripts/selftest.mjs

License

MIT

/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.