DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-lan-share

W

dsh-lan-share

Manifest valid★ 1

Share the DSH workspace over the local network: phones, tablets and other computers browse, download and upload files via browser with no DSH login. Token gate, path boundary, read-only mode and rate

hasBundlePatch

dsh-lan-share

DeepSeek Harness 的局域网文件共享插件 —— 把工作区通过 HTTP 共享到同一局域网:手机 / 平板 / 其他电脑用浏览器直接浏览、下载、上传文件,不需要登录 DSH。零依赖(node:http)。

和现有方案的区别:

  • dsh-lan-gate / dsh-plugin-remote-access:代理整个 DSH 网页(要登录/批准设备);
  • dsh-ssh:远程服务器上的执行与 SFTP;
  • dsh-webfile:S3/FTP 等远程存储;
  • 本插件:本机工作区文件的纯局域网 HTTP 共享——临时传个文件给手机、让同事浏览器拉取产物,开箱即用。

注册工具

工具功能
lan_share_start启动共享服务器(可指定端口/token/只读模式/子目录),返回访问地址
lan_share_status查看共享状态(运行中/根目录/只读/URL/token/文件统计)
lan_share_stop停止共享

快速开始

lan_share_start → {
  "ok": true,
  "running": true,
  "port": 3980,
  "root": "F:/work",
  "readOnly": false,
  "urls": ["http://192.168.1.5:3980/?token=9f2c...", "..."],
  "token": "9f2c..."
}

手机/其他电脑浏览器打开 http://192.168.1.5:3980/?token=9f2c... 即可:

  • 📂 浏览目录树(面包屑导航)
  • 📄 点击文件名下载
  • ✏️ 读写模式:拖拽/点击上传到当前目录、删除文件
  • 🛡️ 只读模式:仅浏览 + 下载

安全模型

  • token 门禁:启动时生成随机 token;访问需带 ?token= 或 X-Token 头;无 token 访问首页显示输入框;
  • 路径边界:所有路径解析后必须位于共享根内,../ 与绝对路径越界拒绝(HTTP 400);
  • 只读模式:readOnly: true 时上传/删除/移动全部拒绝;
  • 限流:每 IP 每分钟默认 120 请求,超限 429;
  • 敏感文件隐藏:默认隐藏 .env、凭据类(credentials.yaml、.netrc)、密钥(*.pem/*.key/*.pfx)、node_modules、.git 等;
  • 监听地址可收紧:settings 里 host: 127.0.0.1 可只让本机代理接入。

访问控制(口令 / 到期 / 权限)

除了启动时生成的随机 token(长期 + 最高权限),可额外设置固定口令,每个口令独立控制:

字段说明
password口令,允许弱口令(不做强度校验)
roleread(仅浏览/下载)或 write(最高:可上传/删除/移动)
expiresIn到期:8h / 3d / 2mo / long(缺省=长期)

在 lan_share_start 传入 passwords,或用 settings lan-share.passwords 预设:

lan_share_start → { passwords: [
  { password: "family", role: "read",  expiresIn: "3d" },
  { password: "admin",  role: "write", expiresIn: "long" },
] }

浏览器访问时输入对应口令即可(?password= 或 X-Password 头)。

免口令全开(明确授权):allowOpenAccess: true(或 lan_share_start 的 open: true)时豁免口令门禁——局域网内任何设备免口令访问。默认关闭,仅在明确授权时开启。

安装

# cordis.yml / dsh.profile 引用
plugins:
  - id: tool-lan-share
    name: 'dsh-lan-share'

或本地路径:

plugins:
  ./src/index.ts: {}

settings(可选)

命名空间 lan-share:

lan-share:
  port: 3980            # 监听端口
  host: 0.0.0.0         # 0.0.0.0=全局域网;127.0.0.1=仅本机
  readOnly: false       # 默认只读模式
  rateLimitPerMin: 120  # 每 IP 限流
  hideSensitive: true   # 隐藏敏感文件

开发

npm install
npm run check   # typecheck + test + build
  • Node 要求:^22.19.0 || >=24.0.0。
  • 核心在 src/lan-share-core.ts(纯函数 + HTTP 处理,可单测),插件入口 src/index.ts。
  • 测试覆盖:路径越界、token 门禁(query/header/错误 token)、敏感文件隐藏、列表/下载/上传/删除/移动、只读模式拒绝、目录排序。

许可

MIT

Compatibility

DSH 0.2.1-alpha.4: failedDSH 0.2.1-alpha.2: failedDSH 0.2.1-alpha.3: failed

Versions

Latest versionPublishedSize
0.0.0-stage——
0.1.0——
0.1.1——

Comments

Loading…

Similar plugins

dsh-file-share

by weibaohui

dsh 插件 · 目录共享:任意可配置目录经 HTTP 在线浏览/上传/下载 + 对话框 @ 文件给 agent 处理

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add @weibaohui/dsh-file-share

by deepseekharness-dsh

Local File Share / 本地文件共享 — let the dsh agent list, read and write files on the machine that runs your browser, through a private WebSocket relay and the File System Access API. Zero data copied onto the dsh host.

Terminal & ClientsManifest valid

★ 0

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-local-file-share

by idoall

LAN access for the official DSH Web UI through a gated reverse proxy: DSH keeps its own loopback binding, and a second port adds a password gate, self-signed HTTPS and per-device pairing that can be r

Tools & CapabilitiesManifest valid

★ 3

↓ 626/wk

MIT

TypeScript

Oct 27, 2026

dsh plugin --profile web add dsh-lan-guard

LAN-only remote access for DSH: pair a phone or another PC by QR code or token to open the same web UI, with optional key-free access inside the LAN.

Tools & CapabilitiesManifest valid

★ 0

Apache-2.0

JavaScript

dsh plugin --profile web add dsh-lan-pair

by Leon0555

一个DSH局域网内访问插件:让 DeepSeek Harness 可在局域网内被其他设备访问的 DSH 插件。同一局域网下,手机/平板/电脑打开浏览器即可直接访问你某台设备上的 DSH——无需 SSH、无需内网穿透,npm 一键安装。

Tools & CapabilitiesManifest valid

★ 13

↓ 385/wk

MIT

JavaScript

Aug 24, 2026

dsh plugin --profile web add dsh-lan-access

by donoteatme

Browser-first, LAN-only access to the current DeepSeek Harness Web UI with one-time QR pairing, revocable devices, event-driven diagnostics, and a slot-preserving mobile layout; no companion app, clou

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 1

↓ 588/wk

MIT

TypeScript

Sep 12, 2026

dsh plugin --profile web add dsh-local-link