agent
by jsdvjx
把本地 dsh 网页通过带登录门禁的中继转发到公网 *.ds.hn 子域名(也可自托管到自己的域名),支持可选的端到端加密(PBKDF2 到 AES-256-GCM)。
Forwards a local dsh web UI to the public internet under a *.ds.hn subdomain (or your own self-hosted relay), gated by a login, with optional end-to-end encryption (PBKDF2 to AES-256-GCM).
安装
dsh plugin --profile web add github:jsdvjx/dshn#path:/packages/agentGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
The dsh plugin half of dshn. It opens one outbound WebSocket
to the relay, claims a subdomain with the (subdomain, password) the user typed in
the setup dialog, and replays whatever the relay forwards against the local dsh
web server — HTTP over node:http, dsh's own /api/events.* downlink sockets
over a tunnelled ws client.
Two halves:
- Host (
src/index.ts→lib/index.js): the tunnel client, the replay engine, the reconnect/heartbeat loop, credential persistence, and the/dshn/status·/dshn/configure·/dshn/disconnectroutes. - Browser (
client.js, hand-authored factory format): ashell.overlaypill that opens the setup dialog when unconfigured (subdomain + password), or the live status + public URL when connected.
Why no trustedHosts patch
The agent rewrites each forwarded request's Host/Origin to the local loopback
authority before replaying it to dsh. dsh's /api browser-trust fence then
accepts it as a loopback, same-origin request — for any subdomain, with no
composition-time trusted-host entry. That is what lets the subdomain be chosen at
runtime in the dialog; access is gated by the relay's login instead of the fence.
Config
Credentials (subdomain + password) are not configured here — the user sets
them in the dialog (POST /dshn/configure, loopback-only) and they persist to
DSHN_STATE. Only infrastructure is env-configured:
| env | meaning | default |
|---|---|---|
DSHN_RELAY_HOST |
host the tunnel dials | relay.ds.hn |
DSHN_ORIGIN_CA |
PEM cert to pin when dialing a direct grey-cloud origin | — |
DSHN_STATE |
file the chosen credentials persist to | ~/.dshn-agent.json |
DSHN_LOCAL_PORT |
local dsh port to replay against | the web server's port |
DSHN_ENABLED |
0 loads the plugin inert |
1 |
原始 README: https://github.com/jsdvjx/dshn/blob/main/packages/agent/README.md ↗
同类插件
查看全部 →
k8e
k8e.sh — 开源 Agentic AI 沙箱矩阵

hol-guard
开源AI代理防病毒:运行时拦截风险工具、秘密访问、提示注入、恶意软件包、MCP服务器、插件和技能。

anolisa
ANOLISA(Agentic Nexus Operating Layer & Interface System Architecture):具备运行时、安全性、可观测性和 Tokenless 响应压缩能力的 Agentic OS,可降低 Token 使用量与成本。

mobius
首个自我演进的开源 Agent OS:连接你的团队、AI agent、设备与算力

deepseek-harness-desktop
DeepSeek Harness Tauri 桌面版 | Only 5mb installer, zero environment setup. Windows / macOS / Linux.

open-managed-agents
开源Claude管理代理API实现和自托管Claude标签式代理运行时。即插即用;在Cloudflare Workers/Durable Objects或Node.js上运行。Apache 2.0。