DeepSeek Harness Remote Access Plugin (dsh-guard-messenger)

If you need to access the DeepSeek Harness Web UI for coding on mobile devices but do not want to expose the service directly to 0.0.0.0, you can use the dsh-guard-messenger plugin. It provides an authenticated remote access path via a Telegram bot and a Cloudflare tunnel, keeps the service running locally on 127.0.0.1, and places access control under key and session management.

Plugin Overview

  • Plugin name: frederico-kluser/dsh-guard-messenger
  • In one sentence: A Cordis plugin for DeepSeek Harness that enables remote control via Telegram—featuring authenticated tunneling, agent chat, worktrees, and task metrics.
  • Maintainer: frederico-kluser
  • License: MIT

Installation

Run one of the following commands in your terminal to install:

dsh plugin --profile web add dsh-guard-messenger

Or install via a GitHub repository link:

dsh plugin add github:frederico-kluser/dsh-guard-messenger

Core Features

This plugin primarily addresses the tension between “local development” and “remote access”:

  1. Protect the tunnel rather than the loopback: DeepSeek Harness still opens directly on 127.0.0.1 (no login required). What is exposed is an authenticated proxy entry point, not a direct service listener on 0.0.0.0. Any non-loopback bind configuration is rejected.
  2. Passwordless authentication: When accessing via the tunnel, authentication occurs only via the key in the session or link (?key=). There is no login form or password entry. A 401 error is challenge-less (no browser login popup).
  3. Ephemeral tunnel and toggle control: You can start an ephemeral tunnel and use the Telegram bot to enable or disable access to that tunnel at any time.
  4. Local passthrough: Direct access via 127.0.0.1 is responded to by DSH directly, bypassing any authentication steps.

How It Works and Security Model

Understanding its security boundaries is crucial for correct usage:

  • TLS terminates at the Cloudflare edge: This means plaintext content such as prompts, code, and responses passes through Cloudflare. This is not end-to-end encryption, and text content transits a third party.
  • Public URL vs. private key: The tunnel URL is public and not a secret. The real protection lies in the ?key= parameter in the URL. Only holders of the key can access the service.
  • Access control: Only the owner’s paired Telegram bot can control the plugin. Access via the tunnel requires possession of the key in the session or link. The danger-full-access permission is forbidden. There is a limit on brute-force attempts.
  • Key mechanism: Keys are reusable but can be rotated by executing the /rotacionar command. After rotation, old keys become invalid, and all active WebSocket and streaming connections are actively terminated.

Use Cases and Considerations

  • Use cases: Suitable for scenarios where you need to access the DeepSeek Harness Web UI via a mobile device (e.g., a phone) in restricted network environments to perform coding.
  • Considerations:
    • The plugin runs with the privileges of the current DSH process.
    • It solves the remote access problem but does not eliminate the risk of “exposing logic”; it merely shifts the risk to the authentication boundary.
    • If security requirements are extremely high, prioritize solutions such as SSH or Tailscale.

Summary

dsh-guard-messenger provides a controllable remote access solution for DeepSeek Harness through a Telegram bot and a Cloudflare tunnel. It replaces traditional username-password logins with key-based authentication, making it suitable for developers who need to perform mobile debugging.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye