Introduction¶
The design philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” Command Code subscriptions are primarily divided into two categories: Provider API plans and Go/GOAT/Pro/Max plans. The former is natively supported, while the latter returns 403 upgrade_required when calling the standard OpenAI-compatible endpoint, and can only go through the private gateway POST /alpha/generate.
This plugin replicates the protocol of that private gateway — the request envelope, line-by-line JSON stream, event mapping — turning the subscription into a native DSH Provider. Users do not need to install Command Code CLI, nor do they need a Provider API.
Core Features¶
- Live model catalog: Fetched on startup, filtered by tier, no models hidden by default.
- Model names annotated with context capacity: e.g.,
Claude Sonnet 5.5 [1M],GPT-5.5 [400K], taken from real values in the model list API. - Per-model reasoning levels: Only lists the tiers actually supported by each model.
- Visual API key configuration: Paste and save in the plugin card, no manual config file editing required.
- Bottom usage ring: Shows the 5-hour window usage ratio and reset countdown (turns red when ≥90%), click to expand the weekly window and balance.
- Supports image input, tool calls, and streaming output.
Installation and Activation¶
Install via DSH’s plugin manager:
dsh plugin --profile web add github:freeqin123/dsh-commandcode-plans-provider
If you get ERR_PNPM_ADDING_TO_ROOT, it means your profile directory is a pnpm workspace, and you need to add -w:
dsh plugin --profile web add -w github:freeqin123/dsh-commandcode-plans-provider
You must restart DSH after installation for it to take effect. This plugin will appear in the plugin list (bundle id is commandcode-plans-provider).
Configuring API Key¶
In DSH, go to Plugins → This plugin → Configure:
- API Key: Paste your key and click save. The key is written to the DSH credential store, with the reference name
COMMANDCODE_API_KEY. The UI only shows a masked fingerprint for identity confirmation. - Test connection: Click the button to verify gateway reachability; failures return the raw upstream response (e.g.,
401). - Plan tier: Click the tier button (Go / GOAT / Pro / Max) to select your plan; the configuration status will show as ready.
Typical Usage¶
1. Select a model¶
Go to Settings → Models → Command Code and choose a model. The [1M] after the name represents the context capacity.
2. Select a tier¶
Click the tier button in the plugin card. The semantics are “show all models included in this tier and below”:
- Go: All Go models
- GOAT: All Go + GOAT models
- Pro: All Go + GOAT + Pro models
- Max (default): All (any model whose catalog marks a known tier)
3. Select reasoning level¶
The “Reasoning Level” in the model selector is populated per-model by this plugin, listing the tiers actually supported by that model (e.g., Low / Medium / High / Max). If the model does not support it, the selector will show “The current model does not provide a reasoning level.”
4. Check usage¶
An extra ring will appear on the composer row at the bottom, showing the 5-hour window usage ratio. When the ring is ≥90%, it turns red, followed by the reset countdown. Click the ring to expand and view the 5-hour/weekly window/balance details.
5. Handle images¶
Models with vision support can paste images directly. Note:
- Pure text models (e.g., DeepSeek / GLM / Qwen) will explicitly reject image input.
- The gateway is stateless; images need to be re-inlined in long conversations.
- When the total base64 inline size in a single turn exceeds 2 MiB, the oldest images will be required to be discarded.
Known Limitations¶
- Undocumented API: Uses the
/alpha/generateprivate gateway, which the official team may change or block at any time. - Single account: No multi-account parallelism support.
- No automatic retry:
RATE_LIMITerrors will not be retried automatically; manual retry is required. - Image re-inlining overhead: Images are re-inlined in long conversations, increasing overhead.
- Pure text limitation: Some models explicitly reject image input.
Ecosystem Background¶
The DSH plugin directory is maintained by the community and has no official affiliation with DeepSeek or HiDream. This plugin’s code is hosted on GitHub under the MIT license.