Brings the WorkBuddy, Trae and Qoder desktop logins on this machine into DeepSeek Harness as OpenAI-compatible local endpoints, with an account pool, automatic account switching when WorkBuddy is rate limited, and a settings panel.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-wtq-pool
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/chengzhi-c/dsh-wtq-pool/releases/download/v1.0.2/dsh-wtq-pool-1.0.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:chengzhi-c/dsh-wtq-pool
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This project is for educational use only. Unofficial clients may trigger account restrictions. Review the risks and the relevant service terms before use.
The plugin registers providers separately by vendor and region. When an account is rate-limited, out of credits or signed out, requests switch accounts according to that source's rules.
Install
Supports DeepSeek Harness 0.2.0, 0.2.2, and the 0.2.3 series starting at 0.2.3-alpha.2, including prereleases allowed by engines.dsh. Requires Node ^22.19.0 || >=24.0.0, as well as the Node version required by the host.
Desktop app
On the Plugins page, select Add plugin → Install third-party plugin, enter dsh-wtq-pool and install, then enable the plugin.
CLI
Requires the DSH CLI (@deepseek-ai/dsh). The CLI manages non-desktop profiles such as web and tui; the desktop profile is reserved by the desktop app, so install there through its plugin page.
dsh plugin --profile web add dsh-wtq-pool
web is the DSH profile; replace it with the profile you use. Open dsh-wtq-pool on the Plugins page. After upgrading from 1.1.x to 1.2.0, provider IDs changed to wtqpool-*; select your models again.
Usage
Sign in to WorkBuddy, Trae or Qoder, then select Detect accounts again. WorkBuddy supports multiple sign-ins; domestic Trae reads Trae CN and TRAE SOLO CN separately. Each Qoder installation and the international WorkBuddy edition retain one sign-in. Signing in to another account replaces the current one.
WorkBuddy 5.6+ $wbEncrypted sign-ins need a decryption key from the local WorkBuddy installation. On Windows, only signed installations with a supported key on a fixed local drive are used; decryption is skipped when the host runs elevated. On macOS, the local app is run to read the key without signature verification; root processes on macOS and Linux also skip decryption. Use a trusted installation.
Add an account
Add an account through the official sign-in page in the panel, or import an .info file containing {auth, account}. Run this from a source checkout:
$dshHome = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $HOME ".dsh" }
$pluginData = Join-Path $dshHome "dsh-wtq-pool"
$accountFile = Read-Host "Sign-in file path"
node .\tools\import-signins.cjs --data $pluginData --from $accountFile
Optional arguments: --region cn|global|all, --dry-run, --force.
Files in signins/ contain usable access and refresh tokens; protect them as account passwords. Deleting a plugin-managed sign-in requires a second confirmation; the desktop app's active sign-in cannot be deleted from the panel.
Panel
Account pool manages sign-ins and account status. Models controls published models and display options. Connection check reports gateways, catalogues, addresses and host registration. Growth centre manages WorkBuddy rewards.
Automatic check-in is off by default, runs at 09:00 Beijing time and can be changed in the panel. Check-in and Run now may use make-up cards or lottery draws. Domestic Trae allows one check-in per device each day; Qoder commonly opens at 10:00 Beijing time.
Refresh now renews plugin-managed sign-ins issued at least six hours ago or expiring within five minutes; the desktop app renews sign-ins it manages.
Expand an account in the growth centre to see this month’s login status. Green marks active days and gray marks inactive days. Hover over a day to see its date. The growth centre supports streak and travel rewards, destination selection, a single lottery draw and make-up check-ins. Run now handles cat travel and growth rewards in one pass. Actions that spend cards, trips or lottery chances require confirmation. Feature availability varies by region.
Features
- Account distribution: priority, round robin, expiring credits first and WorkBuddy conversation stickiness.
- Composer credits show the current account's balance. Click the balance to switch accounts.
- Each model group publishes up to 64 models; catalogues refresh on demand and gateways return SSE
chat.completion.chunkresponses.
Failover and recovery
| Condition | Handling |
|---|---|
| Invalid request or Trae/Qoder model missing from the catalogue | Return 400 or 404 without sending a chat request |
| WorkBuddy rate limit, upstream 5xx or host unavailable | Try the next account; rate limits follow the upstream wait time or configured cooldown |
| WorkBuddy exhausted credits | Hold the account for up to six hours; a positive balance or manual cooldown reset releases the hold |
| WorkBuddy expired sign-in | Hold the account for up to six hours; successful refresh, a new sign-in or manual cooldown reset releases the hold |
| WorkBuddy plan excludes a model (11158) | Disable that model on the account for 24 hours; return 400 if no account supports it |
| Trae/Qoder authentication failure, rate limit, exhausted credits or empty response | Try the next sign-in and lower its priority for the cooldown; a sole sign-in is still used |
| Trae/Qoder upstream 5xx | Return the upstream failure |
Trae/Qoder cooldowns default to 60 seconds and can be set up to 24 hours. WorkBuddy refreshes once after an expired sign-in; domestic error 11128 retries once for the channel check without holding the account.
Settings
Edit settings on the plugin page or DSH settings page: source switches, WorkBuddy distribution, cooldowns, automatic check-in and composer credits. Complete definitions and defaults are in the settings source.
Ports
| Source | Domestic | International |
|---|---|---|
| WorkBuddy | 42831 |
42841 |
| Trae | 42851 |
42861 |
| Qoder | 42871 |
42881 |
If a preferred port is occupied, the gateway uses an ephemeral port and runtime registration and the panel report the actual address; if a port is taken after reservation but before listening, that model group is not published. The PI-Desktop edition uses a separate range starting at 41831; the editions keep settings and credentials separately, and sharing a WorkBuddy sign-in can let refresh-token rotation invalidate the other edition.
Privacy and data
The plugin sends conversation content to the selected vendor and does not save local chat history. Requests also carry the selected vendor's account and device identifiers (account uid, machine id, device id), as the vendor's own desktop client does. On macOS, reading a Qoder sign-in accesses the login Keychain and may prompt for access.
Gateways listen only on 127.0.0.1, but local processes and OS users can still call them and spend account quota. Sign-in files and token archives have no additional encryption and rely on OS file permissions; restrict the plugin data directory ACL on Windows.
The data directory is ~/.dsh/dsh-wtq-pool/, or $DSH_HOME/dsh-wtq-pool/ when DSH_HOME is set. signins/ and credentials-archive.json contain usable sign-in tokens; filenames may include billing identity. Archives remain for 30 days after the later recorded access or refresh expiry; records without an expiry are cleared when deleted.
Panel Delete removes a plugin-owned sign-in and its archive entry and prevents an old desktop snapshot from rejoining; Remove only excludes it from distribution. External links open on click; sign-in pages and token requests use only these vendor hosts:
- WorkBuddy:
copilot.tencent.com,www.codebuddy.cn,www.codebuddy.ai,www.workbuddy.ai - Trae:
api.trae.cn,solo.trae.cn,trae-api-cn.mchost.guru,coresg-normal.trae.ai,growsg-normal.trae.ai - Qoder:
gateway.qoder.com.cn,openapi.qoder.com.cn,api3.qoder.sh,openapi.qoder.sh
Preview


The live preview runs the actual panel code with demo data.
Development
pnpm install
pnpm run build
pnpm run typecheck
pnpm run typecheck:client
pnpm test
src/ contains plugin logic, renderer/ the plain JavaScript panel and lib/ the tsdown build shipped in the package. Rebuild lib/ after changing src/. typecheck excludes src/host.ts; typecheck:client checks the client code. Tests use Node's built-in runner and run offline.
Credits
| Project | Reference |
|---|---|
| XDTrees/dsh-xdpool | WorkBuddy pool and porting base |
| corrinehu/dsh-workbuddy-connect | Loopback endpoint security model |
| dingminhua/dsh-connect-workbuddy | WorkBuddy API and error classification |
| dingminhua/dsh-connect-trae | Trae protocol |
| eghrhegpe/dsh-connect-qoder | Qoder protocol |
| ardeyouxipianyi/workbuddy2api-hub | Growth centre, account retention and international activity reports |
Copyright and license notices for ported code shipped with the plugin are in THIRD-PARTY-NOTICES.md. Other projects are listed as references.
License
This project is licensed under MIT; see LICENSE. Third-party notices for ported code shipped with the plugin are in THIRD-PARTY-NOTICES.md.
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 91554
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2164
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1029
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
V1ki/dsh-plugin-subscriptions★ 646
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
XDTrees/dsh-workbuddy-xdpool★ 644
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 644
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.