
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-server-admin
Advanced tools
中文(默认) · English
一个面向 DeepSeek Harness (DSH) Web 服务器的管理插件:在设置面板中提供「服务器管理」页,无需 SSH 即可完成在线重启、systemd 一键保活、在线安装插件、运行状态监控、活跃会话查看与命令终端操作。
当前托管模式、插件安装、保活配置全部可视化,危险操作带确认与倒计时。
systemctl restart dsh将 DSH 从临时 screen 会话平滑迁移到 systemd 服务托管:
Restart=always,进程异常退出 3 秒内自动拉起systemctl enable,服务器重启后自动运行journalctl -u dsh / journalctl -f -u dsh/etc/systemd/system/dsh.service 已存在且非本插件生成,拒绝覆盖dsh plugin --profile web add <包名>,实时回显 pnpm 输出dsh plugin --profile web add github:sunnywangzi/dsh-server-admin
dsh plugin --profile web add dsh-server-admin
dsh plugin --profile web add /path/to/dsh-server-admin
/root/.dsh/profiles/web(即 web profile)中执行 pnpm adddsh CLI 会自动识别包内 dsh.bundle.patch 声明,并将插件加入 profile 的 bundle 层——无需手动修改任何配置sudo systemctl restart dshsudo pkill -f 'dsh web'; screen -dmS dsh dsh webdsh plugin --profile web rm dsh-server-admin
| 卡片 | 用途 |
|---|---|
| 保活(Keep-alive) | 查看当前托管模式;一键启用 systemd 保活 / 回退 screen;查看将写入的 systemd 配置 |
| 在线控制 | 重启 / 停止 DSH(带 5 秒倒计时确认) |
| 运行状态 | PID、资源占用、版本、磁盘、托管模式,每 2 秒自动刷新 |
| 在线安装插件 | 输入 npm 包名或 git 地址,一键安装并回显输出 |
| 活跃会话 | 查看运行中的对话会话(默认折叠) |
| 命令终端 | 执行服务器命令并查看输出 |
点击「启用 systemd 保活(推荐)」后,插件会自动执行:
/etc/systemd/system/dsh.service:[Unit]
Description=DeepSeek Harness Web (managed by dsh-server-admin)
After=network.target
[Service]
Type=simple
Environment=DSH_HOME=/root/.dsh
WorkingDirectory=<检测到的目录>
ExecStart=/usr/local/bin/dsh web
Restart=always # 崩溃自动重启
RestartSec=3 # 3 秒后拉起
TimeoutStopSec=30
KillMode=control-group
[Install]
WantedBy=multi-user.target # 开机自启
systemctl daemon-reload && systemctl enable dsh(注册 + 开机自启)systemctl start dsh(systemd 接管,DSH 重启一次完成迁移)启用后常用命令:
sudo systemctl status dsh # 查看状态
sudo journalctl -u dsh -f # 跟随日志
sudo systemctl restart dsh # 重启
sudo systemctl stop dsh # 停止
/server-admin/api/* 仅接受回环(127.0.0.1/localhost)同源 POST 请求;方法白名单之外一律 404;请求体限制 1MBexecFile 数组传递(无 shell 注入),但可安装任意 npm 包——请只安装可信来源的插件/etc/systemd/system/dsh.service 已存在且非本插件生成,启用保活会拒绝覆盖/server-admin/api 不被代理放行,或另行加装认证| 问题 | 解决方法 |
|---|---|
| 重启后无法访问 | 查看「运行状态」的托管模式;systemd 模式下 journalctl -u dsh 查日志;screen 模式下检查 screen -ls 会话是否存活 |
| 保活卡片显示「已存在」但状态异常 | 说明单元文件存在但服务状态异常,点「回退到 screen」后重新启用,或 SSH 执行 systemctl reset-failed dsh |
| 面板里看不到「服务器管理」页 | 确认插件已安装并重启 DSH;浏览器强制刷新(Ctrl+Shift+R) |
| 在线装插件报错 | 检查输出信息;确认网络可达 npm registry / GitHub |
| 命令终端命令无输出 | 命令本身可能无输出(如 touch);或用 echo $? 查看退出码 |
A management plugin for DeepSeek Harness (DSH) Web server: adds a Server Admin page in the Settings panel, letting you restart the server, enable systemd keep-alive, install plugins, monitor status, view active sessions, and run commands without SSH.
Every dangerous action comes with confirmation and a countdown.
systemctl restart dsh under systemd, or kill+screen under screen hosting) and stop, with a 5-second countdown confirmation.screen session to a systemd service: auto-restart on crash (Restart=always, 3s), auto-start on boot (enable), logs via journalctl -u dsh; shows the exact unit file before applying; one-click rollback to screen.dsh plugin --profile web add <spec> from the panel with live pnpm output.dsh plugin --profile web add github:sunnywangzi/dsh-server-admin
dsh plugin --profile web add dsh-server-admin
dsh plugin --profile web add /path/to/dsh-server-admin
The dsh CLI auto-detects the dsh.bundle.patch declaration and registers the plugin into the profile bundle layer — no manual configuration needed. Restart DSH after installing (or use the plugin's own restart button once the panel is up).
dsh plugin --profile web rm dsh-server-admin
Enabling writes /etc/systemd/system/dsh.service with Restart=always, RestartSec=3, and WantedBy=multi-user.target, then runs systemctl daemon-reload && systemctl enable dsh, closes the old screen session and starts via systemctl start dsh (one restart to complete the migration).
Useful commands:
sudo systemctl status dsh
sudo journalctl -u dsh -f
sudo systemctl restart dsh
/server-admin/api is not proxied publicly.| Issue | Fix |
|---|---|
| Cannot access after restart | Check hosting mode in Runtime Status; journalctl -u dsh under systemd; screen -ls under screen |
| Keep-alive card shows unit exists but odd state | Roll back to screen then re-enable, or run systemctl reset-failed dsh via SSH |
| No "Server Admin" page in Settings | Ensure installed and DSH restarted; hard refresh (Ctrl+Shift+R) |
| Plugin install fails | Check the echoed output; confirm network access to npm registry / GitHub |
FAQs
DSH 服务器管理面板:在线重启/停止、systemd 一键保活、在线安装插件、运行状态监控、活跃会话、命令终端
We found that dsh-server-admin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.