dsh-lmstudio-router
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.
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 18, 2026
- Updated
- Aug 18, 2026
Introduction
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.59b
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