DeepSeek Harness Plugin

AIcivilization/dsh-model

Stars ★ 31 Downloads (30d) 10,675 Category Models & Providers Added 2026-10-17 npm dsh-model

Connects 36 model sources (free and pay-as-you-go APIs, Codex and Kimi subscriptions, local Ollama and LM Studio) to dsh and gives other tools one authenticated OpenAI-compatible address and key. The free pool model free/auto combines free API quotas such as ModelScope, Zhipu Flash, Gemini and Cloudflare Workers AI, moves to the next provider when one is used up, and by default only uses quotas that do not charge. Models appear in dsh grouped by source; Cherry Studio, Cline and scripts can use the same address (HTTPS is set up automatically next to dsh-vps). Daily check-in for 10 services (Trae, Qoder, WorkBuddy, Doubao, MiniMax Code, WPS Lingxi, DuMate, AStudio, Huawei CodeArts, OfficeAce) with several accounts each, pasted credentials for checking in on a server, and custom check-in services described as JSON. Installed from the plugin market it sets itself up, and the engine ships as an npm package, so no GitHub access is needed.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-model

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:AIcivilization/dsh-model

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

dsh-model

📅 Daily check-in credits claimed for you (12 products, plus your own) · 🆓 a free pool for eligible official API quotas · 🔁 one address for your models · 🧩 44 built-in sources plus custom endpoints

Install once and all of this is taken care of. dsh gets a management page; without dsh, the command line does everything.

English · 中文

✅ Why dsh-model

Capability dsh-model
Connections Official APIs and supported sign-in flows; each source labels its connection type, cost and risks
Request handling No rewriting requests to get around a vendor block; a blocked route is reported and stopped
Where it works One OpenAI-compatible endpoint for dsh, editors, scripts and other devices
Sources 44 built-in sources: free, subscription, local and pay as you go, plus custom endpoints
Free quota Free pool free/auto: eligible official free quotas combined, earlier resets and expirations first; quotas that may switch to paid stay out by default
Check-in 12 products plus custom services; supports multiple accounts and always-on VPS use
Transparency No model relay server of our own or telemetry; network addresses are listed in the egress list

📅 1. Daily check-in: credits land on their own

The most hands-off part: no more remembering to claim the daily check-in credits.

Product How it connects Every day
Trae Detected automatically if Trae (desktop or the Trae CLI) is installed and signed in; nothing to do, so a VPS with the Trae CLI checks in too Check-in credits (200 a day in testing)
Qoder Paste a personal access token once (China or international) That day's check-in credits
WorkBuddy (China) Sign in once (several accounts are fine) Check-in credits
Doubao (experimental) On Mac / Windows click "Read from this computer" to use the account signed in to the Doubao app or a browser; or paste the cookie by hand (personal accounts only) Daily trial credits
OfficeAce (Huawei Cloud, experimental) Click "+ Add OfficeAce" and sign in to Huawei Cloud in the browser (works on a VPS too) Daily points
MiniMax Code Detected automatically if installed and signed in Check-in credits (400 a day)
WPS Lingxi Detected automatically if installed and signed in (Node ≥ 22.5) Points (100 a day, 200 from day 7)
Baidu DuMate Detected automatically if installed and signed in Check-in credits
AStudio Detected automatically if installed and signed in Daily sign-in credits
Huawei CodeArts Click "+ Sign in to Huawei CodeArts" and sign in in the browser (the browser must be on this computer); paste AK/SK on a VPS Check-in points
SenseTime Raccoon Paste the browser sign-in (the xhx_token cookie, valid 30 days; you are reminded to copy it again before it expires) 300 credits a day; signing in that day keeps them for 7 days instead of 1
China Telecom TeleAgent Paste the browser sign-in once (the x-token cookie on agent.teleai.com.cn); copy it again after signing out there Claims the daily 100 points in the points club; they only work inside TeleAgent
Your own "+ Custom check-in service": copy the prompt so the dsh AI looks up the API, paste back its JSON, then paste the Cookie / token Depends on the service
  • Automatic by default: done at a random 5–55 minutes after midnight Beijing time; failures retry an hour later; if the computer was off, it catches up within a minute of starting.
  • You can see it: one line at the top of the settings page, "Checked in today: …", with a one-click "Check in all" for anything missed, plus a one-time notice in the corner of dsh.
  • What else this machine can do: the card lists the supported products not set up here yet, each with "+ Add".
  • Move it to an always-on VPS: "Copy check-in accounts to another machine" gives an encrypted text and a code to import on the VPS page (Qoder and Doubao; sign in to WorkBuddy and OfficeAce on the VPS itself, and Trae stays on the computer that has Trae).
  • Several accounts: each product can have more than one. In the check-in card's Details: "+ Add a WorkBuddy account" (approve through a link) and "+ Add another Qoder account"; several Trae installs are checked in once per account automatically.
  • Paste credentials, check in from a VPS: Lingxi, DuMate, AStudio, CodeArts, Raccoon, TeleAgent and your custom services take a pasted Cookie / token under "+ Paste check-in credentials" (several accounts each), so the app does not have to be on that machine.
  • Check-in only, credits untouched: they stay on your account for use in each product's own app. Command line: dsh-model checkin.

🔁 2. Relay: one address, one key, every model

Your model sources each have their own API and sign-in. dsh-model puts them behind one OpenAI-compatible address:

  • Shows up in dsh: every model, grouped by source, with nothing to configure.
  • Works in other tools: Cline, Continue, Cherry Studio, scripts: anything that speaks the OpenAI API uses the same address and key.
  • Rate limits are not the end: build a combo (say Codex → Kimi → Gemini) and the next model takes over on a rate limit, used-up quota or error.
  • Know where you stand: plan usage with reset countdowns; success rate, latency, speed, token usage and cache hits per model; a "Recent requests" log where failed rows say why and what to do; and a notice when quota runs low.
  • Secure by default: a key is always required, one per device, revocable any time; every sign-in happens on your own machine.
  • Laptop or server: Windows, macOS, Linux; on a VPS (with dsh-vps) it opens an https address you can use from anywhere. Uninstall restores dsh's config byte for byte.

🆓 Free pool: one key for every provider's official free quota

ModelScope's daily free calls, Cloudflare's daily Neurons, OpenRouter's :free models, the free models of Zhipu / Spark / Qianfan / Hunyuan, the free tiers of Gemini and Groq… they all exist, spread over a dozen platforms. dsh-model turns them into three models:

Model Uses
free/auto every free model, stronger ones first
free/smart large models only
free/fast small, fast models only
  • Soon-to-expire first: daily quotas → monthly → ones with an end date → always-free → local models as the last resort.
  • Moves on when one runs out: a provider that hits its limit cools down until it resets (daily ones at midnight Beijing time, monthly ones on the 1st) and the next one takes over.
  • Reduces accidental charges: new-user vouchers and quotas that "switch to pay as you go" stay out by default; adding one requires a token cap, and it is removed at 90% of that cap. Provider billing rules can change, so use provider-side budgets or limits too.
  • See what is left to claim: the "Free quota" card lists every quota (cycle, the free amount the provider gives, requirements, end date), with "Claim" to open the official page and "Add key" to put it in the pool.
  • Finds new ones: once a day it checks the quota catalog for new entries and connected platforms for new free models, and asks you before adding.
  • Add your own: any OpenAI-compatible service, as many as you like; tick "free quota" and it joins the pool.

Check-in credits that only work inside a product (Trae, Qoder, MiniMax Code…) never go through the key; the check-in above claims them. Command line: dsh-model free.

🧩 3. Models: free or subscription, connect what you have

Kind Sources
Free (suggested) SiliconFlow (reachable from China; some models free after identity verification), Gemini (if you can reach Google; the best free models)
Free · limited ModelScope (about 2,000 calls a day), Zhipu GLM (the Flash models), iFlytek Spark (Spark Lite), Tencent Hunyuan (hunyuan-lite), Baidu Qianfan (ERNIE Speed / Lite), Mistral, NVIDIA, Groq, OpenRouter (:free models)
Local Ollama, LM Studio: appear once started, no sign-in; on another machine, use "Change address"
Subscription Codex (ChatGPT Plus / Pro), Kimi Code, Grok, Muse, Devin: sign in from the management page
Free · daily Cloudflare Workers AI (10,000 Neurons a day, stops when used up), InternLM (monthly credits during the beta), SenseNova (public beta credit pools, rolling 5-hour / weekly caps)
New-user / monthly credits (charge once used up) SCNet (100M tokens), Ant Ling (¥10 a month), Tencent Cloud TokenHub (1M tokens), Alibaba Cloud Bailian, Volcengine Ark
China Telecom TeleAI Paid
Pay as you go DeepSeek official, Alibaba Cloud Bailian (new users get about 1M free tokens per model), Moonshot, StepFun, Volcengine Ark, MiniMax, Huawei Cloud ModelArts, OpenCode Zen, any OpenAI-compatible service (add several)

Every source is tagged Free / Free · limited / Paid; see Sources and cost below. dsh-model only connects; it provides no quota of its own.

WorkBuddy: since 2026-10 it recognises conversations sent by dsh and blocks them, so dsh-model uses it for check-in only and does not connect its models by default.

Quick start

npm install -g dsh-model
dsh-model setup

On a dsh-vps server, use sudo dsh-model setup. On Windows, run it in a normal PowerShell or Command Prompt; no administrator rights needed.

setup is safe to re-run. It:

  1. downloads and verifies the engine and runs it on 127.0.0.1:8317/v1, with key auth enforced;
  2. starts dsh-model's daemon (the management page, check-in and sign-ins run on it). Setup asks for no keys: for a free source we suggest SiliconFlow (reachable from China) or Gemini (if you can reach Google), added from the management page. WorkBuddy is used for check-in only; its models are not connected to dsh by default;
  3. installs the management page into dsh and syncs the models into dsh;
  4. on a VPS, also opens a public address https://<dsh's domain>:9443/v1 (or <IP>.sslip.io when there is no domain).

Manage it in dsh: Settings → dsh-model

Section What it holds
Daily check-in 11 products checked in automatically every day (or with one click); the card shows what you got today
Free quota Which models are in the free/auto pool and the state of each quota (in use / cooling until / charges, not in the pool / not claimed), with "Claim", "Add key", "Look for new" and "+ Add a source"
Endpoint Local and public addresses, each with a Copy button
Sources One switch per provider: on connects (and signs in if needed), off pauses and keeps the sign-in. Each row is tagged Free / Free · limited / Paid and shows plan usage with reset countdowns, or remaining credits and the next batch to expire; a used-up plan shows when it comes back
Models Pick which models of each source appear in dsh (5 suggested per source by default); the rest stay available through the endpoint; a "Test" button per model
Combos Put several models in order and it becomes one model in dsh: the first is used, and the next takes over on a rate limit, used-up quota or error. Other tools use the model name combo/<id>
Auto switch When a model is offered by several sources, dsh gets an "Auto switch (multiple sources)" group that moves to another source when one is rate-limited or failing
Recent failures Failed requests in the last 24 hours: which model, why, and what to do (no conversation content kept)
API keys OpenAI-style, one per device. Requests, success rate, latency and speed over 24 hours; copy, rotate, revoke
Model stats Success rate, latency and speed per model
About Current and latest npm version; one-click Update and Uninstall (on a VPS these need root, so the commands are shown instead)

After installing from the plugin marketplace, dsh-model sets itself up in the background as soon as dsh loads the plugin (the engine comes with npm, no GitHub needed), in about a minute; open this page to watch the progress, see why it failed, or click "Set up now" to try again. A machine where you ran dsh-model uninstall is not set up again automatically. A "Getting started" guide appears on a fresh install; a banner shows when the plugin was updated but dsh not restarted (one-click restart on dsh-vps); a low-quota notice appears in the corner of any dsh page. So installing dsh-model from the dsh plugin marketplace and opening this page is all it takes.

dsh-model does every sign-in itself. No provider CLI is installed and the server needs no browser:

  • WorkBuddy, Codex, Kimi, Grok, Muse: open the link and approve; if a code is needed, the dialog shows it;
  • Devin, Claude, Antigravity: these send the browser to a fixed local address that will not load. That is expected: bring the address back and press "Paste from clipboard".

If a source is signed in but has no usable plan (say, a Kimi account without Kimi Code), dsh-model detects it, hides its models in dsh and shows where to subscribe.

Reasoning effort: dsh-model models have no reasoning menu by default (dsh does not guess whether a custom provider's model reasons). To set it, in dsh go to Settings → Models, edit the dsh-model group, open "Custom settings", expand that model's "Model options", turn on "Reasoning levels", keep the levels the model supports (for example off, low, medium, high) and save. The model picker in the chat box then offers the effort, sent as reasoning_effort. dsh-model keeps these settings when it syncs models (since 0.38.5). If the upstream rejects a level, pick another or turn it off.

After updating dsh-model, restart dsh once so the management page picks up the new code. Model and switch changes need no restart.

Sources and cost

Source Cost Notes
WorkBuddy / WorkBuddy AI Free Credits come with the account. Since 2026-10 WorkBuddy recognises conversations sent by dsh and blocks them, so it barely works inside dsh; check-in still works
Ollama / LM Studio Free Models running on this machine; they appear once installed and started, no sign-in. Running on another machine on your network: "Change address" under Sources, or dsh-model source base lmstudio http://192.168.1.20:1234
Gemini (Google AI Studio), Groq Free · limited Paste a free API key; daily / per-minute limits apply
OpenRouter Free · limited :free models are free (about 50 requests a day)
SiliconFlow Free · limited Some small models are free after identity verification
Zhipu GLM Free · limited The Flash models (e.g. GLM-4.7-Flash) are free; reachable from China
iFlytek Spark Free · limited Spark Lite is free with no token cap, 2 requests per second; use the console's APIPassword as the key
Baidu Qianfan Free · limited ERNIE Speed / Lite are free for now (rate limited)
ModelScope Free · limited About 2,000 calls a day (each model has its own cap; resets at midnight Beijing time); link an Alibaba Cloud account first and use your ModelScope access token
Tencent Hunyuan Free · limited hunyuan-lite is free (limited concurrency); new users get some free tokens
Mistral Free · limited Free Experiment plan with a verified phone number; free-tier requests may be used for training
NVIDIA (build.nvidia.com) Free · limited Free developer trial, rate limited per minute
Alibaba Cloud Bailian, Moonshot, StepFun Paid Official APIs; Bailian gives new users about 1M free tokens per model (Beijing region, about 90 days)
Volcengine Ark (Doubao models), MiniMax, Huawei Cloud ModelArts Paid Official APIs, just add a key; Ark and Huawei Cloud have free quotas for new users
Cloudflare Workers AI Free · limited 10,000 Neurons a day on the free plan, stops (no charge) when used up; the URL includes your account ID
InternLM Free · limited Monthly credits during the beta
AMD Token Lab (global) Free · limited Complimentary points with the AMD AI Developer Program, no card needed
Kilo, ZenMux, OrcaRouter Free · limited Models the platform marks free (priced at 0 or labelled Free); others pay as you go
SambaNova, Hugging Face, Ollama Cloud Free · limited Cannot charge without a card / on the free plan (you confirm before they join the pool)
SenseTime SenseNova Free · limited Public beta credit pools (rolling 5-hour and weekly caps); see your account page. It does not say whether it charges once used up, so it stays out of the free pool by default. SenseTime Raccoon itself has no public API and its credits only work inside Raccoon, so dsh-model only checks in for you
SCNet, Ant Ling, Tencent Cloud TokenHub Paid New-user / monthly credits, then your balance, so they stay out of the free pool by default
DeepSeek official, any OpenAI-compatible service Paid Paste an API key (and a URL for other services; add several, tick "free quota" to put one in the pool)
Codex Paid ChatGPT Plus / Pro
Kimi Paid Kimi Code plan
Grok Paid SuperGrok / X Premium+
Muse Paid Muse Code plan
Devin Paid The free tier is refused in testing
OpenCode Zen Paid Pay as you go after a top-up; its free models only work inside the OpenCode app
Claude, Antigravity High risk, hidden by default The providers have banned third-party use before

dsh-model only connects; it provides no quota of its own.

Commands

Command What it does
setup Install / repair everything (idempotent)
sources Sources: switch, cost, sign-in state, usage
source enable|disable|logout <source> Turn on (signing in if needed) / off / sign out
key list|add|revoke|rotate <name> Access keys, one per device
checkin Check in now (11 products and your custom services; automatic daily by default)
free [discover|optin <source> <cap>|optout <source>|add <name> <url> <key> [--free <cycle>]] Free quota: overview, look for new ones, put a charging quota in the pool, add your own source
combo list|add <name> <model…>|remove <id> Combos: try several models in order
failures Failed requests in the last 24 hours, with advice
stats Success rate, latency and speed by key, source and model
status / doctor [--e2e] Overview / health checks
models [sync] List models / sync them to dsh
remote enable --via caddy|ssh|tailscale / remote disable Remote access (on a VPS, setup already enables caddy)
engine version|upgrade|rollback Engine version
logs [--bridge] / repair Logs / repair
update [--to ver] Update to the latest npm version: program, dsh plugin and services together
uninstall Clean uninstall

Every command accepts --lang zh|en and --json.

Architecture

dsh · editors · scripts ──Bearer key──▶ engine 127.0.0.1:8317/v1 (the only entry)
                                          │      ▲ VPS: Caddy https://<dsh domain>:9443
             ┌────────────────────────────┼─────────────────────────┐
             ▼                            ▼                         ▼
   subscription OAuth (Codex, Kimi…)   opencode/* (your key)   workbuddy/* → dsh-model's bridge
  • The engine is CLIProxyAPI (MIT), version-pinned and sha256-verified. The WorkBuddy protocol layer is ported from dsh-workbuddy-connect (MIT); the usage endpoints follow CodexBar (MIT).
  • dsh-model writes only two things into dsh: the model providers and refs.DSH_MODEL_API_KEY. On uninstall they are restored byte for byte if nobody changed them.

See the design doc (Chinese).

Notes

  • Meant for personal use: one account of your own per provider; do not use it to serve others.
  • Some subscription sign-ins and check-in integrations use credentials or product interfaces outside their official clients and may be restricted by provider terms. Review the source-specific notice before enabling them.
  • Windows 10 / 11 (x64, ARM64), macOS and Linux, Node ≥ 20.
  • The engine ships with npm, so no proxy is needed: the engine (CLIProxyAPI) is split into per-platform npm packages, and installing dsh-model pulls only the one for your platform (npm has mirrors in China), so setup no longer needs GitHub. Only when no package exists for your platform does it fall back to downloading from GitHub: setup then uses the system proxy (Windows, macOS) or HTTPS_PROXY automatically, and you can pass --proxy <url> or download the file yourself and set DSH_MODEL_ENGINE_ARCHIVE.
  • Windows: the background services start at sign-in with no window. If an antivirus blocks them (the program is gone or will not start), trust %USERPROFILE%\.dsh-model and run dsh-model repair.

Contributors

Thanks to the people whose reports made dsh-model better:

  • @jf888123: reasoning effort in dsh (#1)
  • @sirius0427: configurable address for Ollama / LM Studio on another machine (#2)
  • @boyingliu01: Trae check-in reads the Trae CLI sign-in, with the diagnosis and a patch (#3)

Questions or ideas are welcome as issues.

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.