dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
AI-native terminal & SSH client — built-in DeepSeek Harness to launch agents in TUI or embedded Web UI, plus SFTP, serial/Telnet and MCP server.
This checkout supports a shared official Harness backend with the controlled PetLink plugin. The official workbench stays usable for input, new sessions and history; Pet detail reuses one main-area tab. See the usage, permission and compatibility guide (Chinese).
🔌 Your terminal, now AI's terminal too. LyShell is a Windows terminal with a built-in MCP server — letting Claude Code and other AI clients drive your SSH / Telnet / serial / local PTY sessions directly. Plus a Ctrl+Shift+P command palette, AI Harness workspaces with git-worktree isolation (TUI + embedded Web UI), document tabs, in-app web tabs, AI Agent launcher, plugin system, and Python scripting.English | 简体中文
New in 2.0: plugin views and interactive dialogs, persistent web tabs across tab switches and split-pane moves, scroll-style settings and terminal search, and four scroll materials.
✨ Highlights · ⌨️ Command Palette · 🐋 AI Harness · 🌐 Web Tabs · 🔗 MCP · 🤖 AI Agents · 🧩 Plugins · 🚀 Quick Start · ❓ FAQ
· 🔗 MCP Server — Expose your terminals to Claude Code and other AI clients, with per-session authorization and audit log · 🤖 Agent Launcher — Run Claude Code, Aider, Copilot CLI, or any custom CLI in a clean transient terminal ⌨️ Command Palette — Ctrl+Shift+P fuzzy-search everything: sessions, agents, workspaces, panels, docs · 📄 Document Tabs — Read-only markdown preview with outline rail, plus built-in manual & inventory docs 🧩 Plugin System — Python / Node.js automation, custom sidebar views and interactive dialogs, with granular permissions · 🐍 Python Engine — Script terminal automation through a built-in LyShell API 🐋 AI Harness — DeepSeek / Codex / Claude workspaces with model, environment and permission settings · 🔐 Embedded Web UI — Run dsh web in an in-app `` tab, loopback-locked and URL-validated 🌳 Worktree isolation — Launch each Harness workspace in its own git worktree, so multiple agents on one repo never stomp each other · 🌐 Web tabs — Open any URL as an in-app tab, with recent-access history and autocomplete
Download the installer or portable build from Releases. The portable build runs without installation.
Platform · Format · Architecture · Requirements 🪟 Windows · Installer (-setup.exe) · x64 · Windows 10 / 11, 64-bit 🪟 Windows · Portable (-portable.exe) · x64 · Windows 10 / 11, 64-bit
🚧 Currently Windows only — macOS and Linux builds are not yet available.
Run the updated -setup.exe to register these entry points:
lyshell in File Explorer's address bar to open a terminal in the current folder.lyshell --open-directory "D:\My Project".These terminals prefer PowerShell 7 (pwsh.exe) and fall back to Windows PowerShell. An existing LyShell window receives a new temporary terminal tab. PowerShell starts with -NoProfile to preserve the requested directory. Address-bar launches read the foreground Explorer window's active tab; other launches without arguments use the process startup working directory.
Portable builds do not register Explorer entries; launch the executable by its full path with --open-directory. Uninstalling removes the installed entries.
Ctrl+Shift+P opens a full-screen command palette — one place to reach everything. Fuzzy-search across saved and running sessions, agents, dsh / codex / claude workspaces, variable groups, plugins, web and settings tabs. Slash commands work here too:
/new — new connection dialog · /local — instant local terminal/help — open the built-in user manual · /ls — open an inventory docESC dismisses; the tab strip has a palette entry too.
Read-only document preview as regular tabs — open several, split them, drag them. Four ways in: double-click in the file tree, drop a file onto the window, Ctrl+Shift+O for the system file dialog, or Ctrl+click a path right in the terminal. Markdown renders through the full doc pipeline — outline rail, zoom, theme — and links resolve across panes (including relative paths over SSH).
/help (or /help chinese / /help english) opens the user manual as a document tab./ls snapshots sessions / agents / variable groups / harness workspaces / plugins into a document tab; lyshell-action:// links inside jump straight to each object, and /ls (e.g. /ls env) scopes to one section. Re-run or hit the tab's refresh button to re-inventory.This is what makes LyShell different. It serves as an MCP server, letting external AI clients like Claude Code control terminals via the MCP protocol — listing sessions, sending commands, reading output, transferring files, and managing connections.
📖 Configuration — see MCP Configuration. In most cases you don't configure anything by hand: launch an agent from the Agent Launcher and ask it to configure LyShell as its MCP server itself. Registration configs are emitted in JSON / CLI / TOML to fit different clients.
Current tool names use the lyshell_ prefix. The list available to each client depends on its granted capabilities.
Tool · Capability · Description lyshell_list_sessions · read · List sidebar sessions lyshell_send_input · interactiveWrite · Send text, autoNewline support lyshell_send_and_wait · interactiveWrite · Send and capture response, strips echo + ANSI lyshell_execute_command · execute / localExecute · Run separately from the interactive terminal (SSH or local PTY; hidden from tool discovery) lyshell_run_on_sessions · execute / localExecute · Broadcast command, max 50 sessions, concurrency 10 lyshell_read_output · read · Read N lines of terminal output lyshell_terminal_screenshot · read · Capture a visible, unobscured terminal viewport as PNG lyshell_upload_file / lyshell_download_file · fileWrite · SFTP file transfer lyshell_read_file / lyshell_stat_file / lyshell_list_files · read · Remote file inspection, recursive + glob lyshell_create_session · sessionControl · Create/reuse saved session, auto-dedup by target lyshell_reconnect_session · sessionControl · Reconnect dropped connection lyshell_close_session · sessionControl · Disconnect without deleting the saved session lyshell_open_connection_dialog · sessionControl · Open the new-connection dialog for user input lyshell_read_session_notes · read · Read session summary, notes, tags lyshell_write_session_notes · sessionMetadataWrite · Update summary, notes, tags lyshell_wait_for_prompt · read · Wait for shell prompt or regex lyshell_tail_until · read · Poll output until pattern matches
rm -rf, dd if=, fork bombsFull-screen TUI apps (vim, htop, less) cannot be represented reliably by text output alone. Uselyshell_terminal_screenshotto inspect their visible layout andlyshell_send_inputto send input. Screenshots require the target terminal to be visible and unobscured; the tool does not switch tabs or capture the desktop.
Agent-agnostic terminal — no lock-in to any AI tool. Launch any CLI agent and it runs in a regular terminal with full scrollback, split panes, and IME support.
Agent · Command 🧠 Claude Code · claude 🛠️ OpenAI Codex · codex 🤝 Aider · aider 🔧 Custom CLI · Your configured command
Harness agents — dsh, codex and claude each have a dedicated workspace panel with dependency detection, model and environment settings, launch permissions (Codex / Claude), and optional worktree isolation. See AI Harness for details.
Custom agents: Any CLI tool can be registered — name, command, icon, working directory, env vars. Sessions are transient: close the tab, it's gone.
Manage DeepSeek Harness, OpenAI Codex and Claude Code workspaces in dedicated panels. Each workspace stores its working directory, model and environment group; Codex and Claude also offer launch permission settings. All three launch in terminal tabs. DeepSeek Harness additionally supports an embedded Web UI, which can run alongside its TUI in split panes.
· 🗂️ Workspace panel — create, edit, delete · 🔧 Variable groups — structured Base URL + API Key, one global switch 🎛️ Model presets — save & switch models per workspace · 🖥️ Terminal launch — dsh-tui, codex or claude in a native terminal tab 🌳 Worktree isolation — dedicated git worktree per workspace · 🏷️ Brand badge — session tabs show which harness launched them
Claude offers default, acceptEdits, plan and bypassPermissions; the last adds --dangerously-skip-permissions. Codex offers :read-only, :workspace and :danger-full-access, passed as -c default_permissions=; full access also adds -c approval_policy=never. Fully-open modes show a red warning in the form and on the workspace card, with the launch arguments visible before launch.
CLI dependencies — dsh + dsh-tui for DeepSeek Harness, codex / claude for the others — are detected by scanning PATH once at app startup (all three agents in parallel) and cached: opening a Harness tab reads the cached result instantly, no repeated scans. When something is missing, the panel shows which dependency is absent, its one-line install command, and the source-repo link — it never installs anything for you. A Re-detect button forces a fresh scan, and PATH is read live from the registry, so a freshly installed CLI is picked up without restarting LyShell.
Variable groups live in the left-rail Environment panel, shared by dsh / codex / claude and the embedded dsh Web UI. At most one group is live at a time — the card itself is the switch: click it to power it on app-wide, click again to fall back to the system environment.
Credentials are structured as Base URL + API Key and injected per consumer (dsh → DEEPSEEK_*, codex → OPENAI_*, claude → ANTHROPIC_*); the rest of the group passes through as extra variables, and generic agents can bind a group explicitly (bound group → inline env → system environment). Each workspace picks a specific group or follows the enabled one — enter secrets once, switch environments without touching each workspace.
Secret-looking values (*_KEY, *_TOKEN, *_SECRET, *_PASSWORD, …) are masked by default, with an eye toggle to reveal them. Before launching Codex, LyShell also writes the selected group’s Base URL into the active provider in config.toml under CODEX_HOME (or the default ~/.codex/ directory). The original file is backed up once as .bak.
Point multiple agents at the same repository without them stomping each other. Flip a workspace to worktree isolation and it launches inside a dedicated git worktree at /.lyshell-worktrees/ on branch lyshell/ — created on first launch, reused ever after, so uncommitted changes survive restarts. Deleting the workspace never deletes its worktree.
claude-myapp-20260708-160745, the trailing stamp is the creation time, second-precise); each workspace gets its own checkout.DeepSeek Harness workspaces open in two ways; Codex and Claude workspaces launch in terminal tabs:
dsh-tui runs as a standard terminal tab with full scrollback, split panes, and IME support.dsh web --port 0; LyShell parses the real port from stdout and renders the app in an in-app `` tab. No browser, no manual port juggling.Drag the Web UI tab to a pane edge to split it into its own pane — the TUI and the embedded Web UI run in the same frame, side by side. Drag it back onto a pane's center to remount it as a regular tab.
dsh web subprocess alive; switching back resumes instantly.The left-rail Web panel gives LyShell a light built-in browser for dashboards and docs. Type a URL (no scheme → https:// is prepended), press Enter, and it opens as a regular tab in the active split pane — same drag-to-split and tab semantics as the embedded dsh web UI, so a dashboard can sit right next to the terminal that feeds it.
http/https URLs pass validation; webview navigation and popups route through a dedicated partition in the main process.Permission-gated host for Python (one-shot / persistent) and Node.js (persistent) plugins. Install from local directory, ZIP, or remote URL. Each plugin runs with its own scoped authorization — granular permissions (read / write / execute / file / session control) with path safety, destructive-command confirmation, and shared-PTY locking.
Plugins can add HTML sidebar views and interactive dialogs, either declaratively or through runtime registration by persistent plugins. Views retain their state when switching panels and receive theme changes. With the required permissions, they can open terminals, web tabs and documents, call LyShell APIs, and return dialog results. Disabling or uninstalling a plugin releases its views, tabs, dialogs and controlled processes.
Startup activation (onStartup/*) is supported. Activation throughonCommand/onConnectionTypeevents and declarative command contributions to the command palette are not yet connected.
2.0 compatibility: older plugins declaring only engines.lyshell: "^1.0" show a compatibility warning, which currently does not block installation. Plugins using the new view APIs should declare "^2.0".
📦 Ready-to-run examples in examples/.
Embedded Python with LyShell API for terminal automation:
session = LyShell.get_current_session()
LyShell.execute("ls -la")
LyShell.send("hello\n")
LyShell.wait_for("prompt$")Environment variables: LYSHELL_SESSION_ID · LYSHELL_SESSION_TYPE · LYSHELL_HOST · LYSHELL_PORT.
Python path auto-detected from system PATH, configurable in settings.
💡 For long-running or scheduled tasks, consider Node.js plugins via the Plugin System — they're a better fit.