xiaoyizhuang03-droid/dsh-lmstudio-router ↗★ 0
dsh-lmstudio-router
本地 LM Studio 模型路由器:将高 Token 消耗的非核心任务(如文本整理、会话命名)自动路由至本地运行的模型。
AI 分析
核心用途是通过本地模型分流非核心任务以节省 API 额度。适合本地拥有一定算力(运行 LM Studio)且希望降低 API 账单开销的用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaoyizhuang03-droid/dsh-lmstudio-router说明文档
阅读完整 README ↗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:
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