dsh-lan-share: DeepSeek Harness LAN Text and File Sharing

Preface

When running DeepSeek Harness across multiple machines, the common practice is to use USB drives, cloud storage, or temporary HTTP services to transfer files and text snippets. These methods either add a copying step or require setting up services and memorizing addresses. The DSH community plugin dsh-lan-share (Maintainer: Endless-zby, Category: Networking Tools) integrates “discovering devices on the same network segment, sending and receiving text/files directly, receive policies, and progress tracking” into the LAN Services tab on the right sidebar of the Harness. These operations can also be performed via model tools within the conversation.

Below is an introduction to what it does, how to install it, and points to note for daily use.

What is this

dsh-lan-share is a Local Area Network (LAN) sharing plugin for DeepSeek Harness: it discovers devices on the same local network that have the plugin installed, sends text or files to selected devices, and receives content from others based on policies. The accept-or-ask policy mentioned in the intro refers to a master switch, a default policy for unknown devices, and the receiving method overridden for specific devices.

The plugin is released under the MIT License. The source code and documentation are available in the GitHub repository; the community directory page is at SkillHub Plugin Page. The DSH ecosystem emphasizes “Everything is a Plugin”; SkillHub and similar sites are community directories and are not officially affiliated with DeepSeek or Higgsfield.

Core Features

The following capabilities are derived from the plugin’s README and package.json description. After installation, they can be used in the sidebar’s LAN Services tab or invoked by agents through seven model tools: lan_share_devices, lan_share_send_text, lan_share_send_file, lan_share_inbox, lan_share_respond, lan_share_rename_device, lan_share_settings.

Discovery & Device Management

  • Discover devices on the same network segment via UDP Multicast and Broadcast; if the network filters multicast/broadcast, you can manually add device IPs.
  • Rename supported: The display name of the local machine on the LAN, or a local alias for other people’s devices.
  • Visibility: You can completely hide the local machine, or require the other party to possess a Shared Passcode to establish a connection.

Send & Receive

  • Send text or files to selected devices; when sending files, you must fill in the Local Absolute Path (the panel cannot obtain the real path from the browser file picker).
  • Receive text and files; the file save location can be chosen between the Current Workspace Directory and a Specific Directory. The resolved absolute path is displayed at the top of the panel.
  • Receive Policy: A master switch for Accept All by Default, a fallback policy for unknown devices, and individual settings per device. Additionally, there are size limits and extension filters to determine which files can skip confirmation.
  • Arrival Notifications: Unread counts in the tab, full-page prompts when a decision is required, and a receive history with local paths.
  • Progress is shown for every transfer (bytes, speed, estimated remaining time, cancel); if interrupted, resume is supported from the bytes already retained by the receiver.

Network & Panel

  • Defaults are UDP 48900 (Discovery, Multicast 239.255.77.88 and Broadcast) and TCP 48901 (Transfer, bound to 0.0.0.0); these can be changed in the composition patch via discoveryPort, transferPort, etc.
  • The transfer plane is independent of the DSH Web Server (peers access via LAN); the sidebar panel uses same-origin APIs protected by the host trust boundary.

Security Notes (README Summary)

  • The beacon is only used for advertisement and does not authorize data transfer; data requests require a handshake token. If a Shared Passcode is set, changing the passcode invalidates existing tokens.
  • The sender’s display name comes from the receiver’s local device table; filenames are sanitized and the write path is validated; various executable extensions are rejected by default.

Installation & Enablement

DSH Desktop uses the web profile; the application must be restarted after installation, as the host side only loads it at startup.

In an environment where the dsh command line is configured:

dsh plugin --profile web add dsh-lan-share

If dsh is not in the PATH, you can use the Desktop’s built-in binary (replace <INSTALL_DIR> with the actual installation directory):

$app = "<INSTALL_DIR>\DSH Desktop\resources\app"
node "$app\node_modules\@deepseek-ai\dsh\lib\bin.js" plugin --profile web add dsh-lan-share

Verifying Installation

  1. dsh-lan-share is included in both the dependencies of profiles\web\package.json and dsh.profile.bundles.
  2. index.js and client.js exist in profiles\web\node_modules\dsh-lan-share\lib\.
  3. After restart, LAN Services appears in the “Add Tab” guide on the right side of the conversation, and a corresponding button appears in the conversation title bar.

Other machines require individual installation; installing on one machine does not make it available to the whole network. In addition to the registry installation above, the README explains that you can use npm pack to get a .tgz for offline addition on target machines, or use npm publish and have each machine use the same dsh plugin --profile web add dsh-lan-share command. Target machines can use curl to probe http://127.0.0.1:48901/lan-share/v1/info (check actual logs or the panel for the correct port).

package.json requires dsh >= 0.1.5 and Node ^22.19.0 || >= 24.0.0; the current package version is 0.1.1.

Typical Usage

Start with discovery, then proceed to sending or handling the inbox.

  1. Open the LAN Services tab in the sidebar, or ask the agent in the conversation to call the tools mentioned above.
  2. Under the Same LAN, devices usually discover each other within seconds; if not, use Manual Add Device to fill in the other party’s IP (Guest Wi-Fi and managed switches often discard multicast).
  3. For the first time on a trusted network: Leave the Shared Passcode blank, or set the same passcode on both machines; devices that do not know the passcode cannot connect.
  4. Send: Select a device and click Send Text or Send File; the file path must be a local absolute path.
  5. Receive: By default, it asks before writing; enabling Accept All by Default skips this; you can set individual devices to Manual or Auto.

Unfinished large files are temporarily stored in <Save Directory>/.dsh-lan-share-incoming and moved to the target directory upon completion.

Scenarios & Caveats

Suitable for: Transferring log snippets, configurations, and small-to-medium files between multiple DSH Desktop / dsh web instances within the same office or home LAN, while preferring to stay within the Harness interface.

Important Notes:

  • The plugin runs with current dsh process privileges and can read/write the save directories you configure and the send paths you specify. You should read the source code and MIT License before installation to assess its use in production or sensitive networks.
  • The transfer listens on 0.0.0.0; you need to allow the corresponding TCP/UDP ports in your firewall (defaults can be checked in the patch).
  • You must restart the Harness after installing or updating lib/client.js; panel route registration may slightly lag behind port listening, so a momentary 404 does not mean it is not installed.
  • Sending files relies on local paths; remote desktop or restricted permission directories may prevent sending.

Conclusion

dsh-lan-share integrates device discovery, direct text/file transfer, receive policies, and progress display into DeepSeek Harness, reducing the need to switch back and forth between the Harness and external file transfer tools.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye