DeepSeek Harness Plugin

xgone/dsh-netshell

Stars ★ 1 Downloads (30d) 1,800 Category Remote & Mobile Added 2026-09-05 npm @xgone/dsh-netshell

Local and remote SSH terminals for DeepSeek Harness Web with three permission levels, human approval for risky AI commands, and encrypted credential storage.

Install

# from npm (prebuilt)

dsh plugin --profile web add @xgone/dsh-netshell

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:xgone/dsh-netshell

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

DSH-NetShell lets you manage servers, use a live terminal, and keep a clear human checkpoint before risky commands run in DSH. Human input and AI actions share the same command guard. Interface copy follows the DSH UI locale — Chinese, English, Japanese, Spanish, French, German, Russian, or Portuguese.

Highlights

Capability What you get
Local terminal Start bash, sh, PowerShell, or cmd on the current device without SSH setup; Windows prefers PowerShell/pwsh/cmd
Remote SSH Manage hosts, ports, users, and authentication with multiple sessions; supports Windows OpenSSH Client
Command guard allow runs immediately, ask waits for approval, deny blocks
Per-session server access Enable or block AI access per remote server for the current conversation session; the state follows your answer in the AI connection confirmation prompt
Visible execution Human input and AI commands appear in the same live terminal panel
Credential isolation SSH passwords stay in DSH's encrypted store and never enter AI messages, tool results, or logs
Command history Review run, blocked, and allowed counts plus every decision record
Interface language Chinese, English, Japanese, Spanish, French, German, Russian, or Portuguese, following the DSH UI locale

Install

Published package:

dsh plugin --profile web add @xgone/dsh-netshell

From a local checkout:

dsh plugin --profile web add link:/path/to/dsh-netshell

On Windows, install/enable the Windows OpenSSH Client (ssh -V checks availability); saved-password automation requires SSH_ASKPASS_REQUIRE=force support (OpenSSH 8.7+ recommended). Restart DSH Web after installation, then open Settings → Terminal.

Quickstart

Local terminal

  1. Open the Terminal tab in the main area.
  2. Click New on the Local terminal row.
  3. Type commands and watch the live output.

The local terminal does not read remote profiles or SSH passwords.

Remote server

  1. Open Settings → Terminal → New.
  2. Enter a name, host, port, and username.
  3. Choose password, private key, or ssh-agent authentication.
  4. Choose a permission level; keep guarded for a first connection.
  5. Return to the Terminal tab and click Connect on the server row.

A saved password is shown only as configured status and is never displayed again. On Windows, private-key auth uses a temporary copy protected by the current user's ACL; it is removed after the session, and the original key file and its ACL are left unchanged.

Risky commands

Commands are checked when you press Enter:

Level Behavior
open Everyday use; hard-deny rules still apply
guarded (default) High-risk commands pause for approval
locked Only explicitly allowed commands run directly

For an ask command, choose Run once, Always allow this command, or Deny. A permanent allow applies only to the current server and exact command text.

UI Preview

Terminal and dangerous-command confirmation

The terminal footer shows run, blocked, and allowed counts. Open History to review command records. Switching to another DSH tab does not disconnect a background session.

Terminal output supports mouse selection, with Copy, Paste, and Select all toolbar actions. Shortcuts include Ctrl/Cmd+V to paste and Cmd+A or Ctrl+Shift+A to select all. Select text before using Ctrl/Cmd+C; with no selection, Ctrl+C still sends the terminal interrupt signal. Each command in a multiline paste still passes through the risky-command guard.

netshell_run reuses the remote PTY selected in the current chat, so AI and human commands share the same shell account, working directory, and environment. It opens a session first when needed. While an AI command runs, ordinary typing and paste are locked; use the Interrupt toolbar button or Ctrl+C with no text selected to stop it. Input unlocks after a shell prompt is detected. A timeout sends Ctrl+C; save multiline commands to a file first.

AI Tools

The plugin exposes two model tools:

Tool Purpose
netshell_servers List server profiles without passwords
netshell_run Run one command on a selected server

AI commands and human input use the same Guard. deny commands never run, and ask commands require a decision from you in the DSH confirmation UI or terminal panel. The AI cannot see passwords or forge approval results.

On the first use of a server by a model session, or after the user manually disconnects that server, netshell_run asks for remote-connection approval before starting SSH. Approval is retained per model session and server for the current plugin lifetime; different model sessions must approve independently even when they reuse the same SSH session. A network failure, SSH exit, or connection timeout only triggers reconnection for the already-approved model session. A manually opened GUI session does not replace model approval. If the confirmation service is unavailable, the plugin fails closed and does not connect automatically. Your answer also updates the Enable / Block state of the server in the left sidebar, and you can switch it manually at any time.

Per-session server access

Each remote server row in the left sidebar has an Enable / Block button pair that controls whether the AI in the current conversation session may use that server. Every server has one of three states per session:

State Meaning What netshell_run does
Not set (default) No decision yet Asks with the remote-connection confirmation prompt first
Enabled You allow AI in this session to use the server Connects directly, no prompt
Blocked You forbid AI in this session from using the server Refuses immediately, no prompt and no SSH connection

Click the active button again to return to "not set", which restores the ask-before-connecting default. The state follows your answer in the AI connection confirmation prompt: Allow this connection enables the server, Deny blocks it (so the same session is not asked again); cancelling or an unavailable prompt is not a decision and leaves the state unchanged.

The switch only constrains the AI. After blocking a server you can still connect to it yourself by clicking the server row. Disconnecting a server yourself clears its per-session state, so the next AI use asks again; reloading the plugin or restarting DSH also returns to the ask-first default.

While the AI is working on a server, the matching session row and server row in the left sidebar flash and show an AI badge, and hovering the terminal-count badge at the top shows AI using: <server> (all busy servers are listed).

Security Boundary

This is an operation guard, not a complete security sandbox. It protects commands entering through this plugin's terminal and netshell_run; SSH connections created by other plugins or generic shell tools are outside its scope. Use locked for sensitive environments and review actions inside interactive programs carefully.

SSH host keys are stored in the plugin-private $DSH_HOME/netshell/known_hosts (falling back to ~/.dsh/netshell when DSH_HOME is unset), separate from the user's ~/.ssh/known_hosts.

Documentation

FAQ

What should I check when a connection fails? Verify the host, port, username, and authentication method. If the host key changed, confirm the server was intentionally rebuilt before removing the stale entry from the plugin-private known_hosts file.

Can the AI see my password? No. The Host reads it from DSH's encrypted credential store only while establishing SSH; profile listings, tool results, logs, and terminal output never contain the password value.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.