Drives Alibaba Cloud ECS through the local Workbench CLI: 11 agent tools for cross-region instance search, remote exec with zero-escaping scripts, byte-cursor log reading, file and directory upload with sha256 verification, read-only diagnostics, guarded multi-step deploys, runbook checks and release snapshots, plus a settings panel. Instances need no public IP; destructive commands are rejected unless explicitly approved. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-workbench-ecs
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:nishuoyang/dsh-workbench-ecs
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
v0.10.0 · MIT License
中文 | English
A DeepSeek Harness (Cordis) plugin that lets the Agent control remote Alibaba Cloud ECS instances through the local Workbench CLI.
It drives the official Alibaba Cloud Workbench CLI locally and ships 11 agent-native tools (ecs_find / ecs_list / ecs_exec / ecs_log / ecs_upload / ecs_download / ecs_diagnose / ecs_deploy / ecs_runbook / ecs_snapshot / ecs_session), covering the full find → list → diagnose → execute → upload → restart → verify → snapshot check loop, plus a visual settings panel. Instances are reached through the Workbench backend channel, so no public IP is needed; destructive commands go through the Harness approval guard and are rejected unless explicitly allowed (fail closed).
Features
Only the highlights here; the complete list is in Complete feature list, and parameter-level details are in the tools reference.
- Runs on both surfaces (v0.9.0+): the browser surface (
dsh web) and the DeepSeek Harness desktop app (dsh-desktop-host) — one package, onelib/client.js; the settings tab and all 11 tools appear on both, locked in bytest/compat.mjs - No public IP required: tools run the local
workbenchcommand and reach instances through the Alibaba Cloud Workbench backend;upload/downloadrelay through OSS - Zero-escaping script delivery (v0.4.0+):
ecs_exec { script }base64-delivers the body to a remote file and executes it, never through a shell quoting layer — nested quotes, Chinese text,$, backticks and heredocs all work untouched; bodies over 16KB are chunked and byte-verified - Guarded deployment (v0.6.0+):
ecs_deploy { steps }expresses "upload → run → assert → read log" as one call;assertstates exactly which check failed, what was expected and what happened;dry_runpreviews,from_stepresumes - Release snapshots (v0.8.0+):
ecs_snapshotmakes "rollback point before + difference check after" a first-class tool — read-only collection written to.dsh/workbench-ecs/snapshots/<name>.jsonin the workspace, diffable / committable / greppable - Failures you can attribute (v0.7.0+): remote timeouts settle to
exit_code: 124(the CLI's JSON claims 0); guard rejections are explained in four distinct cases (no approval service /neverpolicy / user rejected / no responder); upload failures say the problem is the "machine → OSS" hop, not the target instance - Long tasks and pseudo-sessions (v0.5.0+):
detachstarts a remotenohupjob and returnsjob_id/log_pathimmediately without holding the instance;session_idcarriescd/exportacross calls - Visual settings panel: CLI status, instance browser, one-click diagnostics with disk & memory gauges, guarded deploy wizard, sessions, operation timeline — auto-adapts to light/dark
Quick start
Three steps, about five minutes. Full instructions (all five credential modes, least-privilege RAM policy, multiple profiles, the Windows PATH trap) are in Installation & credentials.
1. Install Workbench CLI and configure credentials
# Linux / macOS
curl -fsSL https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.sh | bash
# Windows (PowerShell)
irm https://workbench-cli.oss-cn-hangzhou.aliyuncs.com/install.ps1 | iex
workbench version # self-check: prints version / commit / build date
workbench config # prompts for AccessKey ID / Secret, writes ~/.workbench/config.json (0600)
Official docs: Alibaba Cloud — Install and configure Workbench CLI credentials (installation, least-privilege RAM policy, every credential mode, upgrade and uninstall). In production prefer a RAM role (
RamRoleArn) over a long-lived AccessKey;scripts/workbench-setup.ps1in this repo writes the config, fixes permissions and handles multiple profiles in one go.
2. Install the plugin
# browser surface
dsh plugin --profile web add dsh-workbench-ecs
# desktop app (a separate profile — the two are not interchangeable)
dsh plugin --profile desktop add dsh-workbench-ecs
Restart the host afterwards (the desktop app reads its profile only at process start).
3. Verify
# the desktop host uses 19387, `dsh web` uses 3080 — use whichever you run
curl -s http://127.0.0.1:19387/dsh-workbench-ecs/health
# => {"ok":true,"plugin":"dsh-workbench-ecs","version":"0.9.2"}
Then ask the agent to call:
ecs_list { region: "cn-shanghai" }
ecs_exec { instance_id: "i-xxx", command: "df -h" }
Tools at a glance
| Tool | What it does | Since |
|---|---|---|
ecs_find |
Cross-region instance search (name / ID / private & public IP / type / tag); searches all 22 public regions in parallel by default | v0.7.0+ |
ecs_list |
List instances in one region with status / tag / type / name filters and pagination | — |
ecs_exec |
Remote command execution: zero-escaping script, instance_ids batches, concurrency, detach long tasks, session_id pseudo-sessions, read_only guard |
v0.5.0+ |
ecs_log |
Read any remote file by byte cursor (read-only) | v0.5.0+ |
ecs_upload |
Upload a file or a whole directory (local_dir → tar + sha256 verify + remote extract), with retries on transient failures |
— |
ecs_download |
Download a file from an instance | — |
ecs_diagnose |
One-shot read-only diagnostics (host / disk / memory / ports / containers), read-only guard on by default | — |
ecs_deploy |
Guarded deployment and multi-step orchestration: steps / assert / dry_run / from_step / runbook |
v0.6.0+ |
ecs_runbook |
Read-only inventory and static checks for workspace runbooks (validate / plan) |
v0.6.3+ |
ecs_snapshot |
Release snapshots: create / list / diff / against |
v0.8.0+ |
ecs_session |
Pseudo-session management (list / reset) | v0.5.0+ |
What the commands look like
11 tools, 13 primary usage shapes: what you hand the Agent on the left, the exact command the plugin hands to the workbench CLI in the middle, and the interesting result fields on the right.

A "502 triage -> deploy dry-run" session looks like this (read-only guard, script delivery, byte-cursor log follow, dry_run preview, zero-remote runbook check):

Both images are rendered from HTML in this repo (
docs/internal/assets/*.html); the commands come from the code paths that actually build the argv. Random instance IDs and temp filenames are elided.
Documentation
| Doc | Contents |
|---|---|
| Complete feature list | All 30 feature notes verbatim, with the version and reasoning behind each |
| Installation & credentials | Workbench CLI install, all five credential modes, least-privilege RAM policy, multiple profiles, manual install, local development |
| Usage guide | Settings panel, how it works, project-level instance anchors (instances.json), production fix loop |
| Tools reference | Every tool's parameters and results, built-in runbook templates, snapshots and diffs |
| Safety & troubleshooting | Approval guard, read-only guard, exit-code semantics, common issues |
| Development & release | Local debugging, test matrix, release flow and the traps hit along the way |
Safety
- Destructive commands fail closed:
rm -rf,shutdown,reboot,mkfs,dd,iptables -F/-Xand friends go through the Harness approval service; anything withoutallowed-onceis rejected — the plugin never guesses that you meant it - Read-only guard:
read_only: truerejects redirects,rm/mv/chmod,docker/systemctlmutations before they reach a shell; on by default forecs_diagnose - Credentials stay local: the plugin neither reads nor forwards
~/.workbench/config.json— it only invokes the localworkbenchcommand; grant the RAM user the official least-privilege policy
Requirements
| Item | Requirement |
|---|---|
| Node.js | ≥ 20 |
| Host | dsh web or the DeepSeek Harness desktop app — install the plugin into each profile separately |
| Workbench CLI | On the same machine as the plugin, with credentials configured |
| Target instance | Linux only (Workbench CLI connects over SSH; Windows instances are unsupported) with the Cloud Assistant agent running |
| Network | The local machine reaches *.aliyuncs.com and the Workbench backend WebSocket; upload/download also need the instance to reach its regional OSS internal endpoint |
License
MIT © 2026 nishuoyang
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10703
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 10703
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 4109
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 1033
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
WNLUO/dsh-mobile-plugin★ 536
The DeepSeek Harness app lets you use the DeepSeek Harness on this computer or server from your phone. Phones and tablets both work, on Android and iOS. On your phone you can keep chatting, look at files and manage plugins, and the machine you are using can also connect to DeepSeek Harness on your other machines and open each one separately.
uumit-ai/dsh-uumit-remote★ 534
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.