Probes Windows-host Ollama, LM Studio, vLLM, and llama-server from WSL, compares ctx, and reports /v1/models apiReady versus TCP.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:173787247/dsh-wsl-hostsvc
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Install set: part of dsh-wsl-kit. Prefer
KIT_SET=daily|llm|github|full(see kit README). Fault tree: TROUBLESHOOTING.md.
DeepSeek Harness plugin: from WSL, probe Windows-host OpenAI-compatible LLM servers and suggest a reachable baseURL.
Where it sits
From WSL, probes Windows-side Ollama, LM Studio, vLLM, and llama-server. TCP open is not the same as API ready.
flowchart LR
agent["dsh agent"] --> tool["host_reach"] --> win["Windows local LLM ports"]
Suite diagram and version snapshot: dsh-wsl-kit. This plugin is 0.4.3 (llm; also in full). Do not copy that matrix into this README.
Compatibility
| Field | Value |
|---|---|
| Plugin | dsh-wsl-hostsvc 0.4.3 |
| Minimum dsh | ≥ 0.1.2 (web UI one-shot ?token= on Windows relay :3081) |
| Latest verified | See dsh-wsl-kit Compatibility (currently 0.2.2-rc.5) — single source of truth for the suite |
| Kit set | llm / full (some also useful alone) |
| Cloud Flash | Use model id deepseek-flash (V4.1 Flash) in ~/.dsh/settings.yaml / llm-deepseek — not configured by this plugin |
| Agent Teams | Core support in dsh rc.2 (named subagents + shared task board); the old experimental profile is retired. Not required here |
Suite floor versions: kit check-plugin-versions.sh. Fault tree: TROUBLESHOOTING.md.
Scope: local OpenAI-compatible servers on the Windows host (host_reach). Does not configure cloud DeepSeek; for V4.1 Flash set model id deepseek-flash in settings.
What it does
Tool host_reach (default profile=all) probes:
| id | Port | Typical server |
|---|---|---|
ollama |
11434 | Ollama |
lmstudio |
1234 | LM Studio local server |
vllm |
8000 | vLLM OpenAI server |
llama |
8080 | llama-server / Unsloth Desktop |
Hosts tried: 127.0.0.1, localhost, host.docker.internal, and the Windows IP from /etc/resolv.conf.
Outputs worth pasting
suggestedBaseURL/ per-service URLs →llm-pi-ai.providers.*.baseURL(keep/v1)providerSnippets.yaml→ paste underllm-pi-ai.providersin~/.dsh/settings.yamlollamaModels→ exact ids fromollama list//api/tagsconnectivityPlaybook→ ordered tools when HTTPS/DNS also fail- hints → Ollama
n_ctxvs settingscontextWindow, Unsloth Desktop vs Studio, VRAM
Template: examples/local-llm-providers.settings.yaml.
Ollama context (common 400)
Plugin-heavy dsh prompts often need >8k tokens even for a short chat turn. This is independent of cloud deepseek-flash (V4.1 Flash), which you configure under official llm-deepseek / default model — not via host_reach.
- Set Ollama
PARAMETER num_ctx 32768(Modelfile / recreate model), orOLLAMA_NUM_CTXon Windows before starting Ollama. - Match
contextWindowin settings to thatnum_ctx(not the model's theoretical max like 131072 unless Ollama actually runs it). - Keep
maxTokenssmaller thancontextWindow(e.g. 4096) so the prompt still fits.
Mismatch examples:
- settings
131072+ Ollaman_ctx=8192→ API errors - settings/Ollama both
8192+ fat system/tools prompt (~10k) →CONTEXT_WINDOW_EXCEEDED
Unsloth / Flash-Next
- Unsloth Desktop (winget) ≠ Unsloth Studio (
~/.unsloth/studio). Desktop often exposes OpenAI/v1on 8080 (llamaprofile). - Multi-shard Flash-Next GGUF may need Desktop or a patched llama.cpp; plain Ollama cannot load every shard layout.
- Do not co-load Ollama + vLLM + llama-server on one 16GB GPU without headroom.
Install
# Recommended with the LLM set:
curl -fsSL https://raw.githubusercontent.com/173787247/dsh-wsl-kit/master/install.sh | KIT_SET=llm bash
# Or alone:
dsh plugin --profile web add github:173787247/dsh-wsl-hostsvc
Restart dsh web and open a new session.
WSL UI from Windows browser: use kit scripts/restart-dsh-web.sh and open http://127.0.0.1:3081/ (relay; dsh itself binds 127.0.0.1:3080 only).
Usage
Ask the agent to run host_reach (profile: ollama|lmstudio|vllm|llama|all, optional port, includeProviders).
If nothing opens: on Windows bind beyond loopback (e.g. OLLAMA_HOST=0.0.0.0:11434) or enable WSL mirrored networking, then re-probe.
License
MIT
Links
More in this category
6Mikao9/dsh-wsl-workspace★ 126
Add a WSL workspace from the web GUI without needing to install dsh or related tools again inside WSL. Bash commands and file read/write operations run within the local WSL distribution on the host machine, while Windows files remain accessible.
XINY11451/dsh-wsl★ 21
Extends the working range of DSH into WSL. Files in the distribution can be read, written, edited and searched by DSH directly. Depending on the task, the AI chooses for itself: run a one-off command, or open its own terminal and run several commands there to finish the job. Typing `dsh` in a WSL terminal calls DSH (type `dsh help` there for details), fusing WSL and DSH deeply. Every terminal you open can collaborate visually with the AI.
Edge-Echo/dsh-win-toolkit★ 4
Windows-native tools for DSH agents: clipboard read and write, system notifications, hosts file inspection and network diagnostics, each returning structured data with UI cards from injection-safe PowerShell.
Han-1413141/dsh-wsl-native★ 4
Use Windows and native Linux DSH sessions in one Windows window, with WSL environment switching and bidirectional system tools.
stallenlu/dsh-wsl-suite★ 4
WSL workspaces for DeepSeek Harness. A sidebar W button lists installed distros and registers a Linux folder as a host workspace addressed by a UNC path, and the sidebar terminal opens a real Linux pty inside the distribution for WSL sessions. A persistent zero-dependency agent running in the distro answers file, shell and search requests over a JSON-lines pipe, so no polling timers touch the distribution while it is idle and /mnt drives stay reachable from tools and the terminal (registering one as a workspace is refused, because the host realpaths workspace paths and Windows cannot resolve drvfs); grep and glob run the distro's own ripgrep. WSL preset twins such as wsl-standard swap in the WSL shell and fs tools. A rebuild of 6Mikao9/dsh-wsl-workspace — do not install both: they mount the same W entry in the Workspaces header, publish the same wsl-<mode> presets, and each wrap the host's single-slot terminal provider.
173787247/dsh-wsl-env★ 3
Injects WSL distro, Linux path mapping, /mnt/c CRLF and git caveats, and NODE_USE_ENV_PROXY into the system prompt.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.