Introduction¶
Under DSH’s “everything is a plugin” model, desktop windows, runtime management, platform compatibility, billing views, and file editing can all be accessed as plugins. dsh-desktop-tools is a DSH environment management plugin: after installation, dsh web can automatically acquire the desktop host and open a desktop window, while providing an environment panel popup, DeepSeek official billing panel, and a built-in code editor.
What is it¶
dsh-desktop-tools is a DSH environment management plugin written in TypeScript, licensed under MIT, and available at https://github.com/YUEEEEY/dsh-desktop-tools. It covers several capabilities:
- Desktop Window: The Rust/Tauri host is acquired automatically based on the system.
- Runtime Management: Provides a one-click update entry.
- Platform Compatibility: Automatic adaptation; non-Windows systems are automatically skipped.
- DeepSeek Official Billing Panel: View DeepSeek official billing information.
- Built-in Code Editor: Browse and edit workspace files.
The plugin declares peerDependencies as @deepseek-ai/schemastery ^3.18.1.
Core Features¶
Desktop Window¶
After installing the plugin, a desktop window can be equipped. The host is a Tauri 2 binary, approximately 5MB in size, supporting Windows / macOS / Linux.
When starting dsh web, the plugin will automatically acquire the desktop host and open a desktop window. If you do not want to open the window automatically, you can use:
dsh web --no-desktop
Environment Panel Popup¶
Use Ctrl+Shift+P, or open the independent panel window from the tray/menu. The panel content includes host status, runtime, platform compatibility, and billing summary.
One-click Runtime Update¶
The plugin provides a one-click runtime update capability. Both updates and platform adaptation rely on the location of the dsh installation. If the dsh installation cannot be located, it will return “dsh installation not located”, but billing, editor, and page functions are unaffected.
Automatic Platform Compatibility Adaptation¶
Platform compatibility adaptation is handled automatically by the system: non-Windows systems are automatically skipped; the configuration autoApplyPatches only takes effect on win32.
DeepSeek Official Billing Panel¶
The plugin provides a DeepSeek official billing panel for viewing DeepSeek official billing information.
Code Editor¶
Use Ctrl+Shift+E, or open the code editor within the main window from the tray/menu to browse and edit workspace files.
At the top of the code view, you can switch between “Chat / Code”, or use Ctrl+B to return to the chat view.
The editor supports multiple tabs: language is identified by file extension, Ctrl+S saves, unsaved files are marked, and the status bar displays the path, language, and line/column. You can also switch the workspace root directory at runtime to open other projects without needing to restart.
The default root directory is the dsh workspace, which can be overridden using the configuration editorRoot. The file API includes:
/api/fs/tree
/api/fs/read
/api/fs/write
/api/fs/watch
/api/fs/changes
/api/fs/root
These interfaces are strictly limited within the workspace root directory and are accessible locally only; change-related interfaces perform same-origin checks.
Installation and Enablement¶
Install command:
dsh plugin --profile web add dsh-desktop-tools
Start after installation:
dsh web
The plugin will automatically acquire the desktop host and open a desktop window. If you need to disable automatic window opening:
dsh web --no-desktop
The plugin runs with the permissions of the current dsh process; you should check the source code and license before installing.
Typical Usage¶
The following describes several usage scenarios that can be reproduced directly.
- Open the environment panel: Use
Ctrl+Shift+Por the tray/menu to view host status, runtime, platform compatibility, and billing summary. - Open the code editor: Use
Ctrl+Shift+Eor the tray/menu to browse and edit files within the workspace. - Switch back to the chat view: Click “Chat / Code” at the top of the code view to switch, or press
Ctrl+B. - Save files: Press
Ctrl+Safter editing; unsaved files will be marked, and the status bar will display the path, language, and line/column. - Switch projects: Switch the workspace root directory at runtime to open other projects without needing to restart.
- Network exception handling: When the network is unavailable, the plugin works normally, only failing to open the desktop window temporarily; you can click “Re-acquire host” in the panel later.
Applicable Scenarios and Notes¶
Suitable for developers who need to integrate dsh web into a desktop window, view environment status uniformly, and edit workspace files.
Usage notes:
- In automatic platform compatibility adaptation,
autoApplyPatchesonly takes effect onwin32; non-Windows systems are automatically skipped. - The code editor’s default root directory is the dsh workspace; if you need to change the scope, use
editorRoot. - The file API only accesses files within the workspace root directory; change-related interfaces perform same-origin checks.
- When the dsh installation cannot be located, updates and adaptation will prompt “dsh installation not located”, but billing, editor, and page functions are unaffected.
- The plugin runs with the permissions of the current dsh process; you should check the source code and MIT license before installing.
Conclusion¶
dsh-desktop-tools puts desktop windows, environment panels, runtime management, platform compatibility adaptation, billing panels, and code editors into a single dsh plugin, making it suitable for daily use in dsh web.
GitHub repository: https://github.com/YUEEEEY/dsh-desktop-tools.
The DSH Community Directory is an independent site with no official affiliation with DeepSeek or Huansuan; you can search for dsh-desktop-tools within the directory.