Connects CLIProxyAPI (CPA) to DeepSeek Harness (DSH) with multiple accounts, model filtering, native protocols, quota lookup and image / video generation; once configured, the selected models appear in the model picker automatically.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-cliproxyapi-pro
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:TinyBOOOOM/dsh-cliproxyapi-pro
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
中文 | English
Bring the models of CLIProxyAPI (CPA) into the model picker of DeepSeek Harness (DSH).
Enter a server URL and an API key, and the plugin reads the CPA model catalog and synchronizes the models you check — with their context window, image input and reasoning levels — into DSH, each over the protocol that suits it best. Connect several CPA accounts at once and enable or disable each one on its own.
- Multiple accounts: each account has its own URL, key, model selection and parameters, and can be switched off at any time. Details
- Works out of the box: on the first connection, the newest model of each family in that server's own catalog is checked (at most 12), so the picker isn't flooded with hundreds of models. Details
- Native protocols: Claude over Anthropic Messages, GPT / Codex / Grok over OpenAI Responses, Gemini over its native
generateContent(needs an API key, otherwise OpenAI Chat), everything else over OpenAI Chat — fewer protocol translations inside CPA. Details - Visual management: check models and edit per-model parameters in the settings panel. By default the plugin registers no agent tool, so it takes no model context (the optional generation tool
generate_mediais switched on in the Generation tab). Details - Channel quota: see each channel's remaining quota per credential, with a badge for the current model in the composer and a quick view of every account in the sidebar footer; failed queries pause automatic refresh. Details
- Images and videos: generate and edit images, and generate, edit and extend videos through CPA; the optional agent generation tool is off by default. Details
- Plugin updates: automatically check Stable / Beta / Dev channels and choose global / Mainland China sources. With the DSH plugin market (dshmarket) installed, new versions install in one click or automatically; otherwise download a verified offline package and upgrade with DSH closed. Details
- Secure: API keys live only in the DSH credentials service, never in configuration files. Details
- Zero dependencies: no npm dependencies and nothing built at install time; installs in seconds. Details
Works with DSH 0.2.0-rc.1 and later (desktop and web).
Installation
The plugin is published on npm as dsh-cliproxyapi-pro and is also available from the China mainland mirror (npmmirror). Pick any one of the methods below.
Option 1: the DSH Plugins page (recommended)
Open DSH and click Plugins in the left sidebar.
Click Add plugin at the top of the page.
Enter the package name:
dsh-cliproxyapi-proTo pin a version, write
dsh-cliproxyapi-pro@1.12.1.Click Install. When it finishes, the dialog offers to enable the plugin right away — accept it.
If downloads are slow in mainland China, open Registry next to the input and choose the mainland China mirror.
Option 2: ask the agent in DSH
Just say in a DSH conversation:
Install the DSH plugin dsh-cliproxyapi-pro
The agent installs and enables it with plugin_manager (depending on your permission settings, it may ask for your approval). Then ask it to configure the plugin, e.g. "set the CLIProxyAPI URL to http://127.0.0.1:8317 with key sk-…".
Option 3: command line
dsh plugin --profile <profile name> add dsh-cliproxyapi-pro
This downloads the plugin from npm and adds it to the profile's enabled plugins in one step. The DSH desktop profile is usually called desktop; if DSH is running, restart it to load the plugin.
Option 4: from GitHub (without npm)
In Add plugin, or as the plugin_manager target, you can also enter:
| Source | What to enter |
|---|---|
| A released version | git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#v1.12.1 |
| Latest development version | git+https://github.com/TinyBOOOOM/dsh-cliproxyapi-pro.git#main |
| Offline package | Download dsh-cliproxyapi-pro.tgz (always the latest release) and enter its absolute local path |
| Local source (development) | Absolute path of a cloned repository; installed as a link, so code changes go live when the plugin reloads |
All versions are listed under Releases.
Getting started
- Open the settings panel: Settings → the CLIProxyAPI page in the left navigation (accounts, models and protocols live there). The plugin's own updates are on sidebar Plugins → CLIProxyAPI and on Settings → Built-in plugins → the CLIProxyAPI tab; those two places contain only update features.
- Add an account: click + Add Account, enter an account name, the Base URL (e.g.
http://127.0.0.1:8317, without/v1) and the API Key (leave it empty for a local CPA without authentication), then click Connect. A successful connection creates and enables the account; on failure the reason is shown so you can fix it, or choose Add Anyway (Disabled). - Choose models: the account's Models tab lists every model on the server, with the recommended models already checked by product line (the newest Claude Opus, Sonnet, Fable, …, informed by online model info, on by default and download only). Adjust the selection and click Save & Apply at the bottom.
- Use them: open the model picker in a conversation; the models appear in a group named after the account.
If CPA runs on this machine on the default port 8317 without a key, there is nothing to fill in: the plugin finds it automatically.
Screenshots
The panel follows the DSH display language; the screenshots show the Chinese UI. Images 1–7 are offline component renders: this plugin's real UI code with sample data (example.com addresses, fictional accounts) rendered in a browser, with colors approximating the DSH dark theme; the real colors follow your DSH theme. Image 8 is an actual capture of 1.6.0 in the DSH desktop app.
1. Accounts and connection. The CLIProxyAPI page in the Settings dialog's left navigation: one account bar for all four tabs (Connection / Models / Generation / Quota); under the account title are the connection state, address and model count, with the Enabled switch (applies at once) and the ⋯ menu (Probe & Refresh, Delete Account) on the right. The Connection tab has one row per setting, Test Connection next to the address (uses the values being edited, saves nothing), and secondary explanations in ⓘ tips.

2. Models and one save bar. The Models tab lists every chat model on that CPA: All / Checked / Unchecked, family filter, search, bulk actions and Reset to Recommended; checked models show the protocol they will use and can be edited with Edit Parameters. Connection and model edits are tracked together, and a bar at the bottom shows Unsaved changes · Discard / Save & Apply.

3. Image and video generation. The top of the Generation tab holds the master switch Enable image and video generation (for every account, off on a new installation; while off this page shows only the switch, and neither the composer's generation buttons nor the generation commands exist). Once on, it lists image and video models in groups, each with its own switch and kind; below are marking missed models, the save location, video defaults and the agent generation settings.

4. Quota. The Quota tab: management key, quota data and refresh, a distribution bar, credentials grouped by channel (plan, prefix, status, 5-hour / daily / weekly meters with reset times; Devin shows its daily / weekly quota, shared by every Devin model; channels without a quota endpoint show status and recent requests only), and an expandable "Model → Channel" table. The tab label shows the lowest remaining quota among the account's usable credentials.

5. A rejected management key. After CPA rejects the key 3 times in a row (401/403), automatic checks stop so CPA does not ban this address; the page explains why and keeps the last data it read. Saving a new management key resumes them; a manual Refresh Quota tries only once.

6. Quota in the composer. The badge left of the model selector shows the best remaining quota among the usable credentials serving the current model; clicking it lists every such credential with its quota windows. It appears only for models this plugin synchronizes whose account has a management key.

7. Adding an account. Enter a name, address and API key and click Connect: it tests first and creates an enabled account only when that works; on failure the reason is shown and Add Anyway (Disabled) is offered.

8. The plugin update page under Built-in plugins (actual 1.6.0 capture). Settings → Built-in plugins → the CLIProxyAPI tab holds only plugin updates: checking and offline download, Update Now once the DSH plugin market is detected, the update channel, the download region, and the automatic check / download / install switches. Here the plugin is already the latest Stable version, so Update Now is disabled.

Documentation
- Accounts and models
- Channel quota
- Images and videos
- Updating this plugin
- Slash commands and HTTP routes
- Storage and configuration
- Upgrading and uninstalling
- FAQ
- AI installation guide
- Development
License
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 93739
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★ 2236
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★ 1035
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
XDTrees/dsh-workbuddy-xdpool★ 660
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★ 660
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.
V1ki/dsh-plugin-subscriptions★ 658
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.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.