Introduction¶
When running DeepSeek Harness (DSH) locally, stopping the service often requires returning to the terminal to press Ctrl+C; it is also inconvenient to check console output after minimizing the window. If you wish to start and stop the application like a standard desktop app via a shortcut or tray icon, and perform shutdowns or restarts directly from the Web interface, you need to find the corresponding capabilities within DSH’s plugin system. The following introduces the community plugin @mostkia/dsh-launcher (Maintainer: mostkia, Category: Client): it provides a power button at the bottom of the official sidebar and includes a tray launcher on Windows that supports auto-start at boot.
What is this¶
@mostkia/dsh-launcher is designed for the “vanilla” DSH host, splitting power control and launch methods into two components: a Power button in the sidebar (occupying the official sidebar.footer.action slot, alongside Settings), and a Windows tray launcher (Desktop shortcut + System tray). The plugin itself is cross-platform; however, the tray and logon auto-start features are currently implemented only for Windows, with clear explanations regarding unsupported platforms in the README.
Compared to similar solutions that only perform HTTP shutdowns (such as the community’s dsh-shutdown, MIT, whose code is not included in this plugin), this plugin also handles tray supervision, console output capture, and the registry key for auto-start shared with the sidebar dialog.
Core Features¶
Sidebar Power Button¶
After installation and restarting DSH, a power entry appears at the bottom of the sidebar. Clicking the dialog allows the following options:
- Shut down: Gracefully exit, with the process ending with code 0.
- Restart: Exit with the restart convention exit code; under tray supervision, the tray will relaunch DSH.
- Start at logon toggle at the bottom of the dialog: Reads and writes the same registry value as the同名 item in the tray menu (
HKCU\Software\Microsoft\Windows\CurrentVersion\Run→DSHLauncher).
Interface colors, border radius, and shadows are derived from DSH theme tokens (--dsw-alias-*, etc.) and switch according to light/dark themes; text is processed via the client locale service, supporting both Chinese and English.
Windows Tray Launcher¶
After the first installation of the plugin, you must restart DSH once; the tray component will be installed automatically during this restart. Antivirus or system permission prompts may appear (for creating shortcuts, installing tray), and you should allow them as prompted. After the restart is complete, a DSH shortcut will appear on the desktop; you must then close DSH and launch it from this shortcut for full functionality to be available.
Typical operations for the Tray (Black Whale icon, derived from the DSH favicon):
- Double-click: View captured console output.
- Menu: Show/Hide, Start, Restart, Open DSH, Open Logs, Start at logon, Shut down DSH and exit tray.
Start at logon is not enabled by default; it can be enabled via the tray menu or the sidebar power dialog.
HTTP API (Scripts and Other Launchers)¶
All endpoints are under the plugin namespace; requests containing an Origin header that is not local loopback will be 403 forbidden; requests from scripts without an Origin (such as curl) are allowed by design to distinguish between browser CSRF and local automation.
| Method | Path | Description |
|---|---|---|
| GET | /_dsh-launcher/status |
Platform, pid, supervisor status, auto-start status |
| POST | /_dsh-launcher/shutdown |
Graceful exit, code 0 |
| POST | /_dsh-launcher/restart |
Graceful exit, code 42 (only when supervised) |
| POST | /_dsh-launcher/autostart/enable |
Register logon startup item |
| POST | /_dsh-launcher/autostart/disable |
Remove logon startup item |
Installation and Activation¶
Host Requirements (from README): DSH 0.1.7-rc.1, 0.1.7-rc.2, or newer (Dependencies: sidebar.footer.action, ctx.appExit, webServer registration APIs); Node ^22.19.0 || >=24.0.0 (Consistent with DSH). Current release version 0.1.0, License MIT.
Install from GitHub and pin the tag for reproducibility:
dsh plugin --profile web add github:mostkia/dsh-launcher#v0.1.0
After installation, the sidebar power menu is visible, but you must restart DSH for the tray to self-install; follow the “Shut down → Launch from desktop shortcut” steps above to complete the setup. Only then will both sidebar and tray capabilities be fully available.
Uninstall the plugin (Removes only the host-side power plugin):
dsh plugin --profile web remove @mostkia/dsh-launcher
The tray must be uninstalled separately: Right-click the tray icon → Uninstall tray…, which will stop the tray and remove auto-start entries, desktop shortcuts, and the launcher itself. The two parts can be kept or removed independently.
Typical Usage¶
- Daily Use: Use DSH in the browser; click Shut down in the sidebar when you need to stop the service, or Restart (with tray supervision) for a restart without terminal intervention.
- Auto-start: To run DSH automatically at boot, enable Start at logon in the power dialog or tray menu.
- Local Scripts: Query status or shut down (Examples require DSH to be listening and the plugin loaded; specific Host/port depends on your local DSH configuration):
curl -s http://127.0.0.1:<port>/_dsh-launcher/status
curl -X POST http://127.0.0.1:<port>/_dsh-launcher/shutdown
Scenarios and Notes¶
Target Audience: Developers who primarily run DSH locally on Windows long-term, do not want to rely on terminal windows to kill processes, and desire a consistent themed power UI in the sidebar.
Permissions & Security: The plugin runs with the same permissions as the current DSH process; you should read the source code and MIT license on GitHub before installation to confirm that the HTTP policy, which only faces the local loopback, meets your deployment needs. Non-Windows platforms can still use the sidebar power and HTTP capabilities, but do not expect the tray or logon auto-start.
Compatibility with Other Plugins: It only occupies its own routes; the README states it does not replace dsh-shutdown at the routing layer; installing them separately allows them to work independently. The package is designed to have no runtime dependencies, with all @deepseek-ai/* packages as peerDependencies, avoiding Cordis Symbol splitting caused by duplicate installations.
Ecosystem Note: The DSH community plugin directory (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer; the facts in this article come from the plugin repository’s README and package.json (GitHub stars were 0 at the time of data retrieval).
Links¶
- Directory Page: https://www.skillhub.cn/plugins/mostkia/dsh-launcher
- Source Code & Documentation: https://github.com/mostkia/dsh-launcher