Preface¶
The official DeepSeek Harness (DSH) desktop settings page already covers common items such as accounts, models, plugins, and sub-agents, but when browsing repositories in the plugin market, pulling GitHub resources, or topping up when the balance runs low, there are still several places without a unified entry: English READMEs make it hard to quickly judge a plugin’s purpose, direct GitHub access is often slow or fails, the market list and translation cache cannot be cleared from the UI, and the recharge page must be located manually. The community plugin dsh-desktop-settings (maintainer VCPr0j3k7, category: client) is installed into the profile as a standalone bundle, does not modify the official code, and is specifically designed to fill these four gaps, along with a connectivity self-test and a sidebar recharge entry.
The following introduces what it is, what it can do, and how to install and verify it.
What Is This¶
dsh-desktop-settings is a settings supplement plugin for the DSH official desktop version: it registers an HTTP API on the host side and mounts the “Desktop Settings Supplement” section and the “API Recharge” entry on the client side via @deepseek-ai/dsh-client-ui-slots. Settings are written to <DSH_HOME>/dsh-extras.json, shared with the plugin-market-related modules in the same file.
It deliberately does not provide “application name”, “DSH data directory (DSH_HOME)”, or “reuse configuration from another DSH directory”—the official desktop version does not isolate ~/.dsh, so these three sections have no premise for existence and are explained in the README.
- Repository: github.com/VCPr0j3k7/dsh-desktop-settings
- Community directory page: skillhub.cn/plugins/VCPr0j3k7/dsh-desktop-settings
- License: MIT (package.json version 0.1.0)
Environment Requirements¶
| Item | Requirement |
|---|---|
| Node.js | ^22.19.0 \|\| >=24 |
| DeepSeek Harness | Official desktop version (the host depends on its process.argv layout and profile structure) |
The host half depends on ctx.webServer; the client half depends on the official client module loader and UI slots.
Core Features¶
README Translation (DeepL)¶
- The switch is on by default. DeepL is only called for text that “contains essentially no Chinese”: a request is made only when CJK characters are fewer than 30 and their proportion is below 8%, so Chinese READMEs do not consume quota.
- Keyword extraction is done locally, independent of the translation switch, and is available offline.
- Translation results are cached on disk per repository, so reopening does not trigger repeated billing.
- The settings page can run a connectivity self-test:
POST /settings/test-translationtranslates a fixed sample sentence; 456 means the quota is exhausted, and 403 means the key is invalid or the Free / Pro endpoint is mis-selected. - DeepL Free keys end with
:fxand must useapi-free.deepl.com; the auth header isAuthorization: DeepL-Auth-Key <key>.
GitHub Acceleration Proxy¶
- Disabled by default, and the proxy address is left blank; the plugin does not bundle any proxy, and when disabled behaves exactly as if the capability were not installed.
- You must both enable the switch and fill in the address; enabling the switch without an address silently falls back to the official address.
- Supports http/https, and normalizes missing protocols, extra slashes, subpaths, etc.; maps upstreams such as
api.github.comandraw.githubusercontent.comonto path prefixes of a self-hosted reverse proxy (e.g./api,/raw), passing tokens and request methods through as-is. - 302 redirects are followed manually by the plugin (up to 6 hops) to avoid
fetchautomatically following them back to a direct GitHub connection. - Connectivity self-test:
POST /settings/test-github-proxyprobes the root path and a real raw request; both must pass. - Optional
githubToken: leave blank for anonymous API quota; filling in a personal access token raises the API rate limit. The token is not written to logs and is not distributed with the plugin.
Clear Cache¶
POST /market/clear deletes:
<DSH_HOME>/plugin-data/market-cache.json(market list cache)<DSH_HOME>/plugin-data/market-downloads(download residue)<DSH_HOME>/plugin-data/translate-cache/(translation cache)
Individual deletion failures are skipped and do not cause the whole operation to fail.
API Recharge¶
GET /recharge/statusreturns the recharge page and usage page URLs, the source of the API Key, and the data directory; it only probes whether the key exists (environment variableDEEPSEEK_API_KEYor<DSH_HOME>/.credentials.yaml) and does not return the key itself.POST /recharge/openopenshttps://platform.deepseek.com/top_upin the system browser (only http/https is allowed).- Clicking the sidebar “API Recharge” icon opens the browser, and the main panel switches to the recharge page.
Configuration File¶
Settings are uniformly written to <DSH_HOME>/dsh-extras.json. Main fields (missing items fall back to defaults, unknown fields are preserved as-is):
| Field | Default | Description |
|---|---|---|
appName |
"DeepSeek Harness" |
Display name |
githubProxy.enabled |
false |
Whether to enable the GitHub proxy |
githubProxy.baseUrl |
"" |
Proxy base URL |
githubToken |
"" |
Optional GitHub API token |
translate.enabled |
true |
Whether to enable README translation |
translate.endpoint |
https://api-free.deepl.com/v2/translate |
DeepL endpoint |
translate.apiKey |
"" |
DeepL API Key |
translate.targetLang |
"ZH" |
Target language (DeepL uppercase code) |
translate.characterCount |
0 |
Local cumulative number of translated characters |
translate.maxCharacters |
4000 |
Maximum number of characters translated per README |
Reads are not cached; after editing the file it takes effect on the next request. On first run, if the file does not exist, it attempts to migrate translate and githubProxy from the old desktop configuration under %APPDATA%.
Installation and Activation¶
Install into the target profile using the pnpm bundled with the official desktop version (replace paths according to your machine):
# Install into the profile with the pnpm bundled with the official desktop version
pnpm add "file:<absolute path to the plugin directory>"
# Or install directly from GitHub
pnpm add "github:VCPr0j3k7/dsh-desktop-settings"
Windows example:
PNPM="D:/DeepSeek Harness/resources/runtime/pnpm/bin/pnpm.cjs"
NODE="D:/DeepSeek Harness/resources/runtime/primary-runtime/dependencies/node/bin/node.exe"
PROFILE="C:/Users/<username>/.dsh/profiles/desktop"
cd "$PROFILE"
"$NODE" "$PNPM" add "file:C:/path/to/dsh-desktop-settings"
Key step: pnpm add only writes to dependencies. You must also add the package name to dsh.profile.bundles in the profile’s package.json; otherwise the plugin will not load, and the process will produce no error and the UI will show no prompt:
{
"dsh": {
"profile": {
"bundles": [
"dsh-desktop-settings"
]
}
}
}
The official CLI’s dsh plugin add registers bundles automatically; when using pnpm manually you must fill this in yourself. After installation you must restart DeepSeek Harness (the host assembles the plugin tree only at startup).
To verify it is effective:
- After restart, “Desktop Settings Supplement” appears on the settings page, and “API Recharge” appears in the sidebar;
- The developer tools console should show
[dsh-desktop-settings] client factory 已执行and[dsh-desktop-settings] 宿主基址 = …. Only the first line without the second indicates that the client did not connect to the host.
To uninstall: in the profile directory run pnpm remove dsh-desktop-settings, remove the corresponding entry from dsh.profile.bundles, and restart. To temporarily disable it, just remove the entry from bundles and restart.
Typical Usage¶
- Configure DeepL and self-test: In “Desktop Settings Supplement” fill in
translate.apiKeyand the endpoint (useapi-free.deepl.comfor Free), save, and use the on-screen translation connectivity test (corresponding to the APIPOST /settings/test-translation). - Enable a self-hosted GitHub reverse proxy: Fill in
githubProxy.baseUrl, turn ongithubProxy.enabled, and run the GitHub proxy self-test (POST /settings/test-github-proxy). Fill ingithubTokenwhen a higher API rate limit is needed. - Market list or README translation anomaly: Use the cache clearing in settings (
POST /market/clear), then refresh the plugin market. - Low balance: Click “API Recharge” in the sidebar, or open the DeepSeek Open Platform recharge page in the recharge section.
The host API prefix is /dsh-desktop-settings/api (e.g. GET /config, POST /config deep-merge write). On its first request the client tries the relative path and http://dsh.internal in order, and determines an available base URL by whether the data.plugin returned by GET /info is this plugin’s id.
Use Cases and Notes¶
Who it is for: Developers who use the DSH official desktop version daily, frequently read English READMEs in the plugin market, need to pull plugins or resources from GitHub, and want to manage DeepL and the proxy in one place and clear the market cache.
Permissions and security: The plugin runs under the permissions of the current DSH process, can read and write configuration and cache under <DSH_HOME>, and can relay DeepL and GitHub requests. Before installing you should read the source code and the MIT license, and keep DeepL and GitHub tokens yourself; the proxy address must be a service you control, and the plugin does not silently direct traffic to third-party preset nodes.
Ecosystem note: DSH adopts an “everything is a plugin” approach; community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer (幻方). This plugin is a community-maintained client-type bundle; stars and versions are as per the repository and directory page.
Known architectural limitations: Progress notifications use GET /events?since= polling rather than SSE; /settings/inspect-homes and /settings/import-from return “not applicable” by design in the desktop scenario.
Conclusion¶
dsh-desktop-settings brings the four missing items in the desktop settings—DeepL README translation, self-hosted GitHub proxy, market/translation cache clearing, and the Open Platform recharge entry—into a single UI and dsh-extras.json, mounted as a bundle without touching the official tree. If you are already using a desktop profile, follow the README to install with pnpm, register the bundles, and restart to verify.
- Directory page: https://www.skillhub.cn/plugins/VCPr0j3k7/dsh-desktop-settings
- GitHub: https://github.com/VCPr0j3k7/dsh-desktop-settings