DeepSHPlugins
dsh-console 项目预览
GITHUB / COMMUNITY PROJECT

dsh-console

工具与集成JavaScriptMIT

dsh 控制台命令:/web 启动/停止/重启/状态、/tunnel SSH 隧道管理、/ask 一次性问答、/console 启动控制台 TUI。

1 StarsIsanti2016 更新时间 2026-08-16
访问 GitHub 仓库
dsh-console 项目预览

项目介绍

中文

dsh 控制台命令:/web 启动/停止/重启/状态、/tunnel SSH 隧道管理、/ask 一次性问答、/console 启动控制台 TUI。

English

Slash-command console for dsh: /web start|stop|restart|status, /tunnel SSH forward management, one-shot /ask, and a console TUI launcher.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
Isanti2016
仓库
Isanti2016/dsh-console
GitHub Stars
1
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-16
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

51/ 100
维护活跃
82
文档与实用信息
85
生态关注度
9
安装便捷信号
75
项目声明信号
100

README 含完整安装与使用说明;关注度尚低(1)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add github:Isanti2016/dsh-console

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-console

Console commands for DeepSeek Harness: manage the web service, the SSH tunnel, one-shot questions, and an optional console TUI — straight from the slash-command plane.

Quick start

# 1. install the bundle
dsh plugin --profile web add dsh-console

# 2. restart dsh web, then use the commands
/web status
/tunnel status

Out of the box, /web and /tunnel status work with zero config (the plugin auto-detects the running dsh entry). Configure the tunnel host and the console TUI path in the profile's cordis.patch.yml:

- id: dsh-console
  config:
    tunnelHost: '192.168.1.100'        # your SSH server
    tunnelUser: 'root'
    tunnelKey: 'C:\\Users\\you\\.ssh\\id_rsa'
    consoleCommand: 'python C:\\tools\\dsh-tui\\main.py'

Then dsh plugin --profile web again + restart, and /tunnel start / /console are live.

Commands

CommandDescription
/web statusIs the web UI up? (port + PID)
/web startBackground-start the web UI (node <dshBin> web --port <webPort>)
/web stopStop the web UI process
/web restartRestart it
/tunnel statusIs the SSH tunnel up?
/tunnel startStart the SSH tunnel (needs tunnelHost)
/tunnel stopStop the tunnel
/ask <问题>One-shot question through the headless profile (timeout-bounded)
/consoleLaunch the console TUI (needs consoleCommand)

Configuration

All keys carry sensible defaults; set them in the profile's cordis.patch.yml (or a --patch overlay), overriding the row this bundle adds:

- id: dsh-console
  config:
    webPort: 3080            # dsh web UI port
    dshBin: ''               # path to apps/cli/lib/bin.js; empty = auto-detect
    tunnelHost: '192.168.1.100'
    tunnelUser: 'root'
    tunnelKey: 'C:\\Users\\you\\.ssh\\id_rsa'
    tunnelLocalPort: 3081
    tunnelRemotePort: 3080
    askTimeout: 150
    consoleCommand: 'python C:\\tools\\dsh-tui\\main.py'
KeyDefaultMeaning
webPort3080The dsh web UI listens on 127.0.0.1:3080 by default; /web start spawns it there.
dshBinautoAbsolute path to your checkout's apps/cli/lib/bin.js. Empty = detected from the running process (process.argv[1]), so a from-source dsh usually needs no config.
tunnelHost''SSH server host. Empty disables /tunnel start.
tunnelUserrootSSH user on the server.
tunnelKey''Absolute path to your SSH private key (-i). Omit for agent/other auth.
tunnelLocalPort3081Local listen port of the tunnel (127.0.0.1:3081).
tunnelRemotePort3080Remote port the tunnel forwards to (127.0.0.1:3080 on the server).
askTimeout150Seconds before /ask is killed.
consoleCommand''Shell command launching your console TUI.

How the tunnel is wired

your machine                     SSH server (tunnelHost)
127.0.0.1:3081  ──ssh -L──▶  127.0.0.1:3080
   ▲                               ▲
   │  /tunnel start binds here     │  dsh web runs here (or any service)

/tunnel start runs ssh -N -L <tunnelLocalPort>:127.0.0.1:<tunnelRemotePort> <tunnelUser>@<tunnelHost> (with -i <tunnelKey> when set) as a detached process. /tunnel stop finds and kills the listener on tunnelLocalPort.

Typical setups

  • Local launcher (CLI/headless profile) — manage the web UI from a terminal:

/web start → open http://127.0.0.1:3080; /web stop → stop it.

  • Remote web (this machine reaches another host) — point tunnelHost at the remote, browse http://127.0.0.1:<tunnelLocalPort>.
  • In the web profile itself — /web status and /tunnel status are safe; /web stop|restart kill the process serving the current UI — manage deliberately.

Security notes

  • /web stop / /web restart kill the process serving the current UI when run from the web profile.
  • /tunnel start runs ssh with your configured key — only configure keys from sources you trust.
  • /ask runs the headless profile and consumes model quota; results are rendered by the command plane and never enter model history.

Development

npm test          # node test of the backend primitives (read-only)
pnpm pack         # build the installable tarball

The bundle has no build step: plain ESM, ships index.js + lib/ + cordis.patch.yml.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目