@rellopn/dsh-p2p-lan
LAN P2P AI-to-AI collaboration messaging (host node + browser gate panel) 适合需要在局域网内实现多台设备上的 AI 智能体直接发现与协同通信的用户。
インストール
$
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.
| Key | Default | Meaning |
|---|---|---|
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 |
autoDiscover | true | UDP multicast discovery |
manualPeers | [] | [{ name, host, port }] fallback when multicast is blocked |
autoAccept | true | Auto-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) |
port | 53420 | Requested 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 |
waitTimeoutSec | 60 | Total 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 |
debug | false | Settings panel shows the plugin version, live counters, and the last raw wire JSON frames (in/out) |