PerryLink/dsh-local-ai
dsh-local-ai
Local-model (Ollama) integration for DeepSeek Harness: discover, pull, remove, and inspect local models, route requests to them by task type or keyword with automatic fallback to the cloud, and get a one-shot status overview via /ollama.
Install
npx @deepseek-ai/dsh plugin --profile web add "github:PerryLink/dsh-local-ai#main"Restart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/dsh-local-ai)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from PerryLink/dsh-local-ai, cleaned of badges and images.
🤖 dsh-local-ai
- 1024 store channel:
npm i -g dsh1024once, thendsh1024 plugin --profile web add dsh-local-ai(counts toward the deepseek1024.com install ranking).
Local-model (Ollama) integration for DeepSeek Harness.
Discover, pull, remove, and inspect local models, route requests to them by task type or keyword with automatic fallback to the cloud, and get a one-shot status overview via /ollama.
Official repository. This is the only official repository of dsh-local-ai, maintained by PerryLink. Same-name repositories under other accounts are not affiliated.
English · 简体中文 · Español · Português · हिन्दी
⭐ 如果它帮到了你
这个插件是 DSH 插件家族的一员(40+ 个,全部 Apache-2.0)。如果你在用,给个 star —— 它不会解锁任何功能,但会让下一个人在搜索里更容易找到它。
English: part of a 40+ plugin family for DeepSeek Harness. If it is useful, a star helps the next person find it — nothing is gated behind it.
Compatibility
| Surface | Status |
|---|---|
| Harness | DeepSeek Harness dsh-v0.1.7-rc.1 (verified 2026-09-24: three typecheck rulers (installed, CI, checkout) + 142 tests + self-contained/artifacts gates; the 0.1.7 content-block union is adapted — a tool result is a first-class tool-role message, and a pre-0.1.7 tool-result wrapper is still read for old logs). The peer range admits every supported line: >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0; dev/test pins are 0.1.7-rc.1. |
| Node | ^22.19.0 || >=24.0.0 |
| Backend | Ollama (local HTTP API + CLI probe) |
| Model | Text-only route (inputModalities: ['text']); tool calls and tool results are supported |
What you get
dsh-local-ai makes Ollama a first-class local provider in DeepSeek Harness:
- Discovery & management —
ollama_list(installed models, running models, disk usage),ollama_show(parameter size, quantization, context length),ollama_pull, andollama_remove. - Health check — process liveness (via the
ollamaCLI) and API responsiveness (via/api/version), reported as two independent signals. - Official adapter — the
ollamaprovider route is registered throughctx.llm.registerAdapter(LlmAdapter), with configurable model mapping and temperature / max-tokens / stop translation. - OpenAI-compatible backends — LM Studio, vLLM, and llama.cpp
--servereach register as their ownopenai:<name>provider through the sameLlmAdapterseam, reusing one OpenAI/v1/chat/completionsadapter (text-only route). - Local routing —
model_routerules route requests to a local model by task type (purpose), case-insensitive keyword, oralways, with automatic fallback to the cloud when the local route fails before producing content. /ollamacommand — a one-shot status overview: models, disk usage, health, and suggestions.- Zero dependencies, HTTP first — everything talks to Ollama's HTTP API (the CLI is used only for the process probe); no model files are bundled.
…
