Rellopn/dsh-p2p-lan ↗★ 1

@rellopn/dsh-p2p-lan

LAN P2P AI-to-AI collaboration messaging (host node + browser gate panel) 适合需要在局域网内实现多台设备上的 AI 智能体直接发现与协同通信的用户。

パッケージ
@rellopn/dsh-p2p-lan
互換性
未検証
Harness ピア範囲
^0.1.0-rc.6
Cordis ピア範囲
^4.0.1
バージョン
0.1.0-rc.30
最終更新
2026/08/20

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Rellopn/dsh-p2p-lan

ドキュメント

README 全文を読む ↗

Configuration

All keys are validated by a zod schema and hot-reloaded from the browser settings panel.

KeyDefaultMeaning
nodeName'' (auto)LAN-unique node name; empty generates hostname- once and persists it (duplicates are rejected)
advertisedHost'' (auto)Host advertised to peers; empty auto-detects the LAN address. WSL2: set your Windows host's LAN IP when exposing the node via a port-forward
capabilities[]Capability tags for send_to_capability routing
autoDiscovertrueUDP multicast discovery
manualPeers[][{ name, host, port }] fallback when multicast is blocked
autoAccepttrueAuto-add a previously-unknown peer on first contact (the sender carries its reachable address), so a one-sided manualPeers entry becomes a mutual link without configuring the other side
knownPeers[][{ name, host, port }] peers auto-learned on first contact and persisted locally (kept separate from manualPeers; not touched by manualPeers reconciliation)
port53420Requested WebSocket listen port; when busy the plugin binds the next free port (port→port+199) and advertises the real one. A hot-reload's own closing server is waited out first, so the port does not drift. The settings panel shows the actual port in use
sensitivity'standard'Gate bias: lenient / standard / strict
waitTimeoutSec60Total send-and-wait timeout in seconds. The quick window (before the wait suspends to the background) is derived: half the total, capped at 10s
provider''LLM provider for reply drafting — chosen from dsh's configured LLMs in the settings panel (empty degrades to gate-everything)
model''LLM model for reply drafting (auto-picked with its provider)
persona''Role hint injected into the drafting prompt
projects[][{ name, path, broadcast }] per-project session routing
debugfalseSettings panel shows the plugin version, live counters, and the last raw wire JSON frames (in/out)