- Início
- Plugins
- Modelos e provedores
- dsh-web-allowlist-fetch
dsh-web-allowlist-fetch
xain/dsh-web-allowlist-fetch
IP/domain allowlist web_fetch provider for DeepSeek Harness: lets web_fetch reach allowlisted hosts/IPs freely (incl. proxy fake-IP addresses like 198.18.x.x) while keeping the default public-IP safety check for everything else.
Instalar
dsh plugin --profile web add github:xain/dsh-web-allowlist-fetchREADME
dsh-web-allowlist-fetch
IP/domain allowlist web_fetch provider for DeepSeek Harness.
web_fetch in Harness refuses any host that resolves to a non-public IP
(the http provider's isPublicIpAddress / unicast guard). In proxy
environments that use RFC 2544 fake-IP (Clash / Surge / Mihomo TUN mode, the
198.18.0.0/15 range), ordinary public domains resolve to fake, non-public IPs
and get blocked — so fetching an otherwise-fine site fails with
URL hostname "…" resolves to a non-public IP address.
This plugin registers a web_fetch provider (id: allowlist) that:
- allowlists the hosts / IPs / CIDRs you configure, and fetches them freely (bypassing the public-IP guard — a fake-IP address is fine once its domain or the fake IP range is allowlisted);
- keeps the stock public-IP safety check for every other host, so the default posture is unchanged.
The allowlist is editable from the web client's Settings → 插件配置 surface; see Configuration.
Install
Publish this package (or install from your git URL), then in your Harness home:
dsh plugin --profile web add dsh-web-allowlist-fetch
The bundle's cordis.patch.yml registers the provider and routes
web.config.fetchProvider → allowlist.
install-time note: a patch row targets a Cordis row by id and replaces its whole config. The bundled patch therefore sets the full
webconfig (bothfetchProviderandsearchProvider). EditsearchProviderin the patch to match your search setup, or the value set by another layer will be overwritten.
Configuration
The allowlist is exposed as a settings namespace (dsh-web-allowlist-fetch)
and edited from the Settings → 插件配置 surface in the web client: open the
plugin's card and edit the allowlist (one host/IP entry per line). A committed
override lands in $DSH_HOME/settings.yaml and applies on the next fetch
without restarting.
The composed default (what the card starts from) is the bundle's patch — edit
it in your profile's cordis.patch.yml (or the settings layer):
- insert:
- id: web-fetch-allowlist
name: dsh-web-allowlist-fetch
config:
allowlist: []
- id: web
config:
fetchProvider: allowlist
searchProvider: ddg
You can also set the namespace directly in your settings layer:
dsh-web-allowlist-fetch:
allowlist:
- weather.com # this domain + any subdomain
- 198.18.0.0/15 # Clash fake-IP range (any host resolving here)
- 127.0.0.1 # a single IP literal
Entry forms
| Form | Matches |
|---|---|
example.com | example.com and every *.example.com |
.example.com | example.com and every subdomain |
*.example.com | every subdomain |
192.168.1.10 | that exact IP literal |
198.18.0.0/15 | any host/IP within that CIDR network |
2001:db8::/32 | any host/IP within that IPv6 CIDR network |
How it behaves
- Allowlisted host/IP → fetched directly via global
fetch(follows redirects). Body decoded as text/html and capped atmaxBodyChars. - Non-allowlisted host that resolves only to public IPs → fetched directly.
- Non-allowlisted host resolving to any non-public IP → rejected with a
descriptive error (unchanged from stock
httpbehavior).
Safety
This is an escape hatch, not a blanket disable. Only entries you list are
released from the public-IP guard. Do not allowlist 0.0.0.0/0, 198.18.0.0/0,
or 10.0.0.0/8 unless you fully understand the implication for a model that can
choose URLs — it would let the model reach your private network.
Development
pnpm install
pnpm run check # build (tsdown) + node --test tests
Build output: lib/index.js (ESM). Host peers resolve from the Harness profile
at runtime and stay external.
Plugins relacionados
dsh-routing-suite
yjh051108/dsh-routing-suite
dsh-plugin-subscriptions
v1ki/dsh-plugin-subscriptions
dsh-commandcode-provider
mars-sea/dsh-commandcode-provider
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect