dsh-system-proxy: Egress Policy Injection for the DSH Proxy Process

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, where each plugin runs as an independent process and communicates with the DSH daemon through standard interfaces. In agent development, you often need to route a specific Profile’s traffic through a particular outbound policy—for example, distinguishing between internal network access, compliance-gated egress, or specific ISP routes. The traditional approach is to handle this at the Profile configuration level, but DSH’s plugin mechanism provides more fine-grained control.

Plugin Overview

dsh-system-proxy is a DSH plugin developed by maintainer d2184. It applies an outbound proxy policy to the process-level traffic of a given Profile. The plugin is categorized under the admin-security branch, making it suitable for scenarios that require precise control over network egress.

Core Functionality

The core capability of this plugin is binding a proxy policy to the processes of a Profile. This means all processes spawned within that Profile will use the specified policy for their network requests, rather than relying on global configuration. This is particularly useful for scenarios involving environment isolation, compliance requirements, or testing different outbound routes.

Installation & Activation

Add the plugin using DSH’s plugin installation command:

dsh plugin add github:d2184/dsh-system-proxy

Once installed, the plugin starts with the DSH daemon and awaits configuration to take effect.

Typical Usage

Specify the plugin policy in the DSH configuration file. An example configuration is shown below:

profiles:
  my_profile:
    plugins:
      - dsh-system-proxy
    proxy:
      - name: custom_proxy
        type: http
        url: socks5://127.0.0.1:1080

The above configuration applies the custom_proxy policy to the process traffic of my_profile. When DSH starts this Profile, the plugin reads the configuration and activates it.

Use Cases & Cautions

This plugin is well-suited for scenarios where you need to set an independent outbound policy for a specific Profile, such as:
- Internal service calls that require a dedicated egress route
- Isolating network routes during multi-environment testing
- Compliance requirements that mandate egress differentiation by business line

Before use, review the plugin’s source code and license to ensure it meets your environment’s requirements. The plugin runs with the same privileges as the DSH process—do not use it without verifying the code.

Summary

dsh-system-proxy provides the ability to inject proxy policies at the Profile level, making network egress control more flexible. If you need to configure different outbound routes for different Profiles in DSH, this plugin is worth trying.

  • Catalog page: https://www.skillhub.cn/plugins/d2184/dsh-system-proxy
  • GitHub: https://github.com/d2184/dsh-system-proxy
羽毛球分组比赛记分
小程序二维码

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

Xiaoye