DeepSeek Harness (DSH) allows feature extension through plugins, but the current plugin center only provides a command-copy capability. Users must manually open a terminal, paste the command, wait for pnpm to finish installing, and manually restart the backend after installation for changes to take effect. dsh-plugin-onekey intercepts this workflow and turns command-line operations into a terminal-free one-click experience. The plugin is maintained by lishLRF and is licensed under the MIT License.

Core Features

True One-Click Installation
The plugin intercepts the “Copy” button in the plugin center and directly shows a confirmation dialog. The backend reads the system clipboard, performs strict allowlist validation, runs the pnpm installation, and displays a real-time progress bar in the frontend.

Error Alert and One-Click Escalation
When installation fails, the dialog displays error details. Clicking “Copy to workspace and ask the LLM” writes the error message directly into the current workspace input box, making it easy to send to the LLM for diagnosis.

Automatic Backend Restart
After a successful installation, the plugin automatically restarts the DSH backend and refreshes the page, requiring no manual action from the user.

/uninstall Slash Command
Type /uninstall in the workspace. The system generates a candidate list based on the configuration for selection. After confirmation, it automatically uninstalls the plugin, rewrites the configuration, and restarts the backend.

Security and Permissions
Install commands are parsed against a strict allowlist. Only valid dsh plugin add-related formats are allowed, while file:, link:, and similar paths are rejected. All extension points are registered through DSH public slots; disabling the plugin removes all of its capabilities.

Installation and Enabling

Prerequisites
- DSH web profile
- Node ≥ 20
- pnpm available (or corepack)

Installation Command

dsh plugin --profile web add dsh-plugin-onekey

After installation, restart dsh web, go to Settings → Plugins → Plugin Configuration, confirm that dsh-plugin-onekey is enabled, and check the permission checkboxes.

Typical Usage

Install a Plugin
1. In Settings → Plugin Center, click “Copy” for any plugin.
2. In the confirmation dialog, click “Confirm Install”.
3. Wait for the progress bar to finish, then click “Restart Backend Now”.

Uninstall a Plugin
1. Enter /uninstall in the workspace input box.
2. Select the plugin to uninstall from the candidate list and confirm.

Handling Errors
When installation fails, click the “Copy to workspace and ask the LLM” button in the dialog.

Use Cases and Notes

This plugin is suitable for developers who frequently manage plugins. Note: the plugin runs with the permissions of the current DSH process. Review its source code and license before installation.

By intercepting the copy action in the plugin center and providing the /uninstall command, the plugin completes the loop from the command line to an interactive interface. For more details, visit the plugin directory or the GitHub repository.