Introduction¶
In DeepSeek Harness (DSH), a session may contain multiple rounds of messages, tool calls, and context statistics. It is not appropriate to directly expose the main service port when another device on the same network needs to view this session. DSH’s plugin form provides a more specific approach: instead of exposing the main harness, generate a read-only, revocable, and expirable LAN sharing link for the current session.
Below is an introduction to zljr/dsh-share. It is a DSH plugin for the web profile, maintained by zljr, under the MIT license.
What is it¶
The core function of dsh-share is to freeze the current session into a read-only snapshot and generate a link that devices on the same local area network (LAN) can open.
It adds a Share button to the session header. Upon clicking, the plugin organizes the current session into a self-contained, read-only HTML page and provides the token URL. The sharing page is served by a separate read-only HTTP server, while the main harness remains loopback-only (i.e., 127.0.0.1).
Core Features¶
Share Entry¶
- Adds a
Sharebutton to the session header. - One-click freeze of the current session into a self-contained, read-only HTML snapshot.
- Generates a token URL usable by devices on the same LAN.
Read-only Service¶
- The snapshot page is served by a separate read-only HTTP server.
- Only exposes
GET /s/<token>. - The sharing server defaults to binding
0.0.0.0:3081. - The sharing page contains no JavaScript and no external resources.
Snapshot Content¶
- Markdown rendering, escapes raw HTML, and blocks
javascript:URLs. - Long message collapse previews, and consecutive tool calls are merged into a group.
- Displays session statistics and context usage composition bar.
- Light/dark theme follows
prefers-color-scheme. - Intelligently selects LAN IP and filters virtual adapters.
Link Management¶
- Uses
128-bitrandom tokens. - Supports revoking shares.
- Supports optional expiration:
1h / 24h / 7d. - Share state is persisted to
~/.dsh/dsh-share.json.
Plugin Interface¶
The plugin exposes the /dsh-share RPC, with operations including:
create
revoke
list
Installation and Usage¶
npm Installation¶
First, execute the following command to add the plugin to the web profile:
dsh plugin --profile web add @zljr/dsh-share
Then, start the web profile:
dsh --profile web
Installation from Source¶
For local development, first install dependencies and build the artifacts:
pnpm install
pnpm build
Then, install the local directory to the web profile using an absolute path:
dsh plugin --profile web add /absolute/path/to/dsh-share
Finally, start the web profile:
dsh --profile web
Typical Usage¶
- Open any session and click the
Sharebutton in the session header. - On first use, the sharing server starts via lazy loading.
- Open a link like
http://192.168.1.20:3081/s/<token>via a browser. - In the sharing interface, set expiration (
1h / 24h / 7d), copy the link, or revoke.
After the above steps, devices on the same LAN can view the frozen session snapshot. This snapshot will not re-read the session storage after creation.
Configuration¶
The sharing server can be configured via environment variables or cordis.patch.yml. Example values are as follows:
DSH_SHARE_HOST=0.0.0.0
DSH_SHARE_PORT=3081
On Windows, listening on 0.0.0.0 for the first time may trigger a firewall prompt that needs to be allowed.
Use Cases and Notes¶
This plugin is suitable for DSH web profile users: those who need to share the current session with read-only access to devices on the same LAN without exposing the main harness’s command execution entry point.
Before using, confirm the following points:
- The plugin runs with the permissions of the current dsh process; check the source code and license before installing.
- The sharing link contains a token and may be accessed if leaked; revoke or set expiration when no longer needed.
- The sharing page is a frozen snapshot, not a real-time session view.
- The read-only sharing service defaults to binding
0.0.0.0:3081; use only within a trusted network.
Conclusion¶
dsh-share separates “viewing a session” from “operating the DSH main service”: what the sharer gets is a read-only, revocable, and expirable LAN snapshot, rather than an open main service entry point.
The DSH community directory is an independent site and has no official affiliation with DeepSeek / HF (Huanfang).
Directory Page: https://www.skillhub.cn/plugins/zljr/dsh-share
GitHub: https://github.com/zljr/dsh-share