Preface¶
When using DeepSeek Harness (DSH) for local or remote development, it is common to additionally open SSH, systemctl, journalctl, or separate file management tools. Since DSH already possesses a web service and authentication, if one can view resources, manage systemd, modify configurations, and follow logs within the same UI, there is no need to pile on another layer of entry points for daily operations. Below is an introduction to the community plugin dsh-server-panel (maintainer lsl1931): it extends the DSH WebUI into a sidebar “Server” full-page panel without opening new ports or relying on nginx, inheriting DSH’s authentication, themes, dark mode, and languages.
What is this¶
dsh-server-panel is a Web client plugin for DSH (dsh.client.platform is web in package.json). The Host half registers approximately 26 /dsh-server-panel/* routes and performs metrics sampling within the dsh process; the Client half injects sidebar icons and left navigation (Overview / Services / Files / Logs / Packages / Network) along with a command palette. Access still goes through your existing tunnel to dsh web on 127.0.0.1:3080; the plugin does not listen on a separate public port.
Repository: https://github.com/lsl1931/dsh-server-panel
Community Directory: https://www.skillhub.cn/plugins/lsl1931/dsh-server-panel (Independent community site, with no official affiliation to DeepSeek / High-Flyer)
License: MIT (© 2026 lsl1931). The current package version is 0.1.0, requiring Node >= 22.
Architecture Overview¶
The structure in the README can be summarized as follows:
Browser (via your SSH tunnel)
└── 127.0.0.1:3080 dsh web
├── DSH Original UI
└── dsh-server-panel
├── Client Half: Left Nav Panel + Command Palette
└── Host Half: /dsh-server-panel/* Routes + Sampler + root Channel
The Host entry point is in src/index.js (config, samplers, sudo sessions, routes); client resources are bundled into lib/ via build.mjs and loaded by the module loader. Note: The Host half runs in the same process as dsh, so the same module path is loaded only once. After modifying src/*.js, you must restart dsh (power button) to load the new code. Only changes to the config in cordis.patch.yml take effect immediately; Client pages will refresh after the restart.
Core Features¶
The interface uses a v2 layout: The Top Bar contains the hostname, distro/load/memory summary, command palette (⌘K / Ctrl+K), auto-refresh, and the root identity capsule; the Left Navigation corresponds to six pages.
| Page | Capabilities (per README) |
|---|---|
| Overview | Anomaly banners (failed units, disk ≥85%, memory ≥90%, load exceeds cores, upgradable packages); CPU/Memory/Disk/System KPIs; Quick start for common services (favoriting available); Session operation event stream |
| Services | Grouping (Failed/Running/Enabled/All) and search; Inline start/stop/restart; Right drawer to view status and real-time follow journalctl |
| Files | Breadcrumbs and bookmarks; List and overlay editor (mtime conflict detection); Upload/Download/New/Rename/Delete/chmod/chown |
| Logs | Filter by unit and keyword, real-time follow, selectable line count 100–1000 |
| Packages | apt simulated upgrade list, single/bulk upgrade, index refresh, installed queries |
| Network | NICs (IP + real-time rate), listening ports (with full process names when root), established connections Top, firewall status |
The Command Palette allows page navigation, unlocking/locking root, refresh, pausing polling, opening /etc or /var/log, refreshing apt index, and upgrading all.
Key HTTP routes on the Host side include (excerpt): GET /health, /overview; GET /services, /services/logs; POST /services/action; GET/POST /sudo/state, /sudo/unlock, /sudo/lock; File related GET/PUT/POST at /files/*; Packages /packages/*; Network /network/overview, /listeners, /connections. See the repository README for the complete table.
Permission Model and Security¶
The plugin’s capabilities differ between locked and unlocked (root channel) modes:
- Locked: File access is limited to whitelisted paths (e.g.,
~,/etc,/var/log, etc.); only logs visible to the current user are shown; Services and Packages are read-only. - Unlocked: After entering the sudo password in the panel, module requests automatically carry
root=1; full read/write access to files; full logs; services can be started/stopped/restarted/enabled; packages can be updated/upgraded. Operations requiring permissions will pop up an unlock box first if locked, and automatically retry after success.
Writing to system directories (/etc, /boot, /usr, /lib*, /bin, /sbin, /var/lib) requires secondary confirmation; deleting critical directories (/, /etc, /usr, /home, etc.) will be rejected. Passwords are used only via stdin for sudo -S and stored in dsh process memory; locking, idling for 10 minutes, or uninstalling the plugin will clear it and execute sudo -k. The README states clearly: After unlocking, root can modify system configuration and start/stop services; please use this only locally or behind a trusted tunnel, and do not expose port 3080 to the LAN or public internet.
Installation and Build¶
The official README does not provide a one-liner command like dsh plugin add github:.... The installation method is via DSH’s plugin_manager → install_bundle, setting the target to the absolute path of the plugin directory. Developers can build and test locally first:
node build.mjs # Build: src/*.js → lib/*.js
node test/run.mjs # 10 test files, 90+ assertions
Please read the repository source code and MIT license before installing; the plugin runs with the current dsh process permissions, and after unlocking, the impact scope is equivalent to using sudo/root locally.
Typical Usage¶
- Click the “Server” icon in the DSH WebUI sidebar to enter the full-page panel.
- View KPIs and anomaly banners in Overview; when services need modification, search for units in the Services page, unlock root if necessary to start/stop/restart, and follow journalctl in the drawer.
- Modify configurations via the Files page (bookmarks allow quick access to
/etc); secondary confirmation is required when writing to system directories. - Use the Logs page for troubleshooting by filtering by unit and following in real-time; use the Packages page for patch management by refreshing the index and upgrading single or all packages.
- Use ⌘K / Ctrl+K to open the command palette for quick page navigation, locking root, pausing polling, or opening common directories.
Use Cases and Notes¶
Suitable for: Developers already using DSH Web tunnels to manage local or development machines who wish to complete systemd, log, apt, and basic network troubleshooting with fewer terminals.
Notes:
- Classified as a client-side plugin; capabilities are bound to dsh web and Host routes, it is not a standalone daemon.
- Depends on systemd, journalctl, apt, and the command-line tool environment listed in the README; network and metrics come from
/procsampling and parsing ofip -j,ss, etc. - You must restart dsh after modifying Host source code; it is recommended to run
node test/run.mjssuccessfully before production use. - Community directory stars and other metadata are subject to the site; functional descriptions are subject to the GitHub README.
Conclusion¶
dsh-server-panel consolidates the DSH WebUI into a local operations console: resource overview, systemd & real-time logs, files & apt with a sudo gate, and network snapshots, all reusing DSH’s existing authentication and themes. If you are already using dsh web via a tunnel, you can integrate it via the README’s bundle installation method, and strictly adhere to the security instructions regarding root unlocking and localhost exposure.
- Directory Page: https://www.skillhub.cn/plugins/lsl1931/dsh-server-panel
- Source Code & Documentation: https://github.com/lsl1931/dsh-server-panel