DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

C163q /

C163q/dsh-bili-upstream-proxy-patch

Verified

[CODING WITH AI] A DeepSeek Harness plugin that lets billion-context use your shell’s proxy settings for model requests in auto mode.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@c682c4d3

DSH bili upstream proxy patch

Run dsh web with the usual shell proxy settings. This Host plugin starts the profile's installed copy of billion-context with the DSH proxy environment and connects its native tools and model interceptor to that process. In bili's auto mode, model requests can then use the same HTTP proxy as the DSH Host.

Install in a Web profile

Tested on Linux with DeepSeek Harness 0.2.3-alpha.2 and billion-context versions 0.1.216 and 0.1.218. Install billion-context in the profile first. From this repository, pack and install the patch after it.

# Run this first only if the profile does not yet have billion-context.
dsh plugin --profile web add billion-context@0.1.218

npm pack
dsh plugin --profile web add "$PWD/dsh-bili-upstream-proxy-patch-0.1.1.tgz"

When upgrading from patch 0.1.0 after a market restart, stop the old Web Host and launch dsh web once from a fresh terminal. Version 0.1.0 published its attach address without ownership metadata. Subsequent market restarts under 0.1.1 start a fresh managed relay. Reload the Web page to pick up the new settings URL.

Use the shell's proxy

In the existing bili configuration, set the top-level field "upstreamProxyMode": "auto". On Linux the default file is ~/.config/billion-context/billion-context.json. Its minimal contents are:

{
  "upstreamProxyMode": "auto"
}

Start DSH from the terminal that has your proxy variables. For example, with a local HTTP proxy on port 7897:

export HTTPS_PROXY=http://127.0.0.1:7897
export HTTP_PROXY=http://127.0.0.1:7897
dsh web

If the variables are already exported, only the last command is needed. Restart the Web profile after installation or after changing its launch environment. Opening another browser tab uses the existing Host.

bili configuration Model traffic
auto Uses the inherited proxy environment and honors NO_PROXY for environment-based routing.
manual Uses bili's configured upstreamProxy address.
direct Uses bili's direct routing policy.
Mode omitted Uses bili's default selection, including manual mode when a manual address is configured.

Bili continues to resolve explicit overrides. A provider-specific proxy and BILI_UPSTREAM_PROXY can take precedence over the mode. To switch between modes, remove any such overrides you previously used for that purpose. The Loopback address printed for the managed bili process is its listener. Your shell proxy is its upstream.

Send a model message, then check which route bili chose. For example, for OpenRouter on Linux:

rg -F '[upstream-proxy] openrouter.ai' "${XDG_STATE_HOME:-$HOME/.local/state}/billion-context/bili.log" | tail -1

A proxied request reports via and the upstream port. If you already supply a bili attach target or use a launcher that owns the relay, that launcher continues to manage its networking.

Remove

dsh plugin --profile web remove dsh-bili-upstream-proxy-patch

Restart the profile to return to the native bili launcher. For development and verification, see the documentation index.

—/ 5

No ratings yet

Verified DSH bundle

Commit c682c4d3d1d1

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout