OpenCode Desktop → Scan VM testing
One-line setup for the OpenCode desktop app, pointed at our shared inference box. Windows, PowerShell.
irm https://ai.mindprobe.xyz/go | iex
This is a clean-slate install. If you already have OpenCode, it is
removed first — including session history and saved provider
logins. Nothing is asked. Pass -KeepData to keep your existing
directories.
What it does
- Removes DeepSeek Harness — the
@deepseek-ai/dshpackage and its~/.dshdirectory. - Removes every OpenCode it can find — the desktop app (via its
own uninstaller, after closing any running copy), the
opencode-aiand@opencode-ai/clinpm packages, and copies installed through scoop, choco, winget or bun. - Deletes all OpenCode user data — config, state, data, cache,
the legacy
~/.opencode, and the Electron shell's%APPDATA%\OpenCode. - Confirms the Scan VM is reachable and actually serving the model.
- Installs the OpenCode desktop app fresh (~120 MB, x64 or arm64 as appropriate).
- Writes
%USERPROFILE%\.config\opencode\opencode.jsoncso the Scan VM is the default model the moment you open the app.
No Node.js needed to run OpenCode — the desktop app is a standalone binary. npm is only invoked to uninstall old npm-installed packages, and only when it is present; if it is missing there is nothing of that kind to remove.
It asks nothing. Paste it, walk away, come back to a working install. Every removal above happens without a prompt, because the outcome is the same on every machine. The flags below are the only way to opt out.
Then
Launch OpenCode from the Start menu. Qwen3.8 27B FP8
should already be selected. If it is not, pick Scan VM (vLLM FP8) in the model
selector — the provider is configured either way.
Options
To pass arguments through irm, wrap it in a scriptblock:
& ([scriptblock]::Create((irm https://ai.mindprobe.xyz/go))) -Channel beta
-Channel—stable(default) orbeta, the preview desktop build.-KeepData— keep your config, sessions and cache instead of purging them. Your old config is still backed up and replaced, or the Scan VM would not become the default.-KeepApp— do not uninstall an existing desktop app first (the installer then upgrades in place).-KeepDsh— leave DeepSeek Harness installed.-ConfigOnly— write the config only; touch no installs.-NoInstall— change nothing; print exactly what it would remove and install. Worth running first if you are nervous.
Updating
The desktop app updates itself, so there is nothing to re-run for a new version.
Re-running the one-liner is a full clean reinstall, not a no-op —
it will wipe your sessions again. To re-apply just the model configuration, use
-ConfigOnly.
Before you paste
irm … | iex runs whatever this server returns, with your user's
authority. That is fine because this is our domain and our script — but the
habit is worth keeping deliberate.
Read the script first if you have not seen it.
Troubleshooting
- Cannot reach the Scan VM — check you are on the office
network, then
Test-NetConnection 10.2.2.7 -Port 48765. - The model is not in the selector — you likely used
-KeepDataand an older config won. Re-run without it, or check%USERPROFILE%\.config\opencode\opencode.jsonc. - You wanted your sessions back — they are gone; the purge is
not recoverable. Only the previous config file is backed up, as
opencode.jsonc.bak-<timestamp>. - Download is tiny and fails — the URL returned an error page rather than the installer. The script catches this; grab it by hand from opencode.ai/download.
dshstill on PATH afterwards — npm was missing, so the package could not be removed. Install Node, or runnpm uninstall -g @deepseek-ai/dshyourself. The script warns when this happens rather than failing.