Introduction¶
When connecting LLMs in DeepSeek Harness (DSH), the common practice is to configure individual API Keys for various vendors or build a self-hosted gateway. If you are already subscribed to a Zed Pro or Student plan in the Zed editor (which provides a monthly prompt quota), whether you can use the same account directly within Harness conversations depends on whether the Zed Cloud authentication and model list have been integrated into the Host.
dsh-zed-provider (maintained by RGarrido03) accomplishes this: it registers an LLM route named zed-agent, issuing and streaming requests via https://cloud.zed.dev, with behavior consistent with the Zed editor side. This article introduces its positioning, capabilities, and installation usage; facts are subject to the GitHub README.
What is this¶
dsh-zed-provider is a DSH community plugin (Category: Model Inference), with the current package version 0.1.4 and license MIT. It mounts Zed Cloud as a provider within Harness and provides an editable Zed card and model selector in Settings → Models, facilitating the management of credentials and visible models.
The DSH ecosystem emphasizes “everything is a plugin”; the plugin directory site skillhub.cn serves as a community index and has no official affiliation with DeepSeek / 幻方 (High-Flyer). Please review the source code and license yourself before installation—the plugin runs with the permissions of the current dsh process.
Core Features¶
LLM Route zed-agent¶
The bundle registers a provider route zed-agent to the Host. Conversation turns are minted on Zed Cloud and returned via streaming, following the same cloud path as the Zed client.
Supported Model Backends¶
The plugin calls GET /models via credentials and exposes the backends returned by Zed that this plugin has implemented:
- Claude (Anthropic Messages)
- GPT (OpenAI Responses)
Gemini and Grok in the Zed catalog are filtered out to avoid offering unavailable items; if an unsupported model is still selected, it will fail fast and return UNSUPPORTED_CONTENT.
Each model carries the context window and output limits from the Zed side; when supports_thinking is true, levels such as off / low / high / max are provided and mapped to Anthropic extended thinking budgets.
Credentials & Login¶
Credential resolution follows this priority (any one is sufficient):
- Config item
credentials— literal"<userId> <accessToken>"(or JSON). config.apiKeyEnv(defaultZED_CREDENTIALS) — resolved via the credential seam; the key field in the Zed card on the Models page refers to this.- Record
llm-zed/zed-agentwritten to the Harness credential store by/zed-login. - Entries in the Zed editor local keyring on macOS (
zed.dev) or Linux (secret-tool), which the plugin can import once into a grant record.
Executing /zed-login in the Composer opens the Zed native login page, waits for the loopback callback, and stores the grant in the aforementioned store; subsequent requests reuse this grant, and short-term gateway tokens are refreshed automatically as needed.
Settings UI¶
The Settings → Models → Zed card is rendered by this bundle’s client module (lib/client.js), including:
- Credential status (card join + live
credentials/describe). - Editable credential field (stores
"<userId> <accessToken>", reference name comes fromapiKeyEnv); read-only sources (like environment variables) will be explicitly rejected rather than silently ignored. - Model Selector: Reads the catalog via
llm/discoverModels; checked items are written tovisibleModels; empty or select-all indicates showing all models the plugin can run.
Quota¶
Usage is accounted by Zed: HTTP 402 is returned when there is no plan or the quota is exhausted. On the Harness side, this manifests as a QUOTA failure pointing to https://zed.dev/account. The plugin does not estimate the remaining ratio itself.
Installation & Activation¶
Installation command for the web profile (from the README):
dsh plugin --profile web add dsh-zed-provider
The package.json declares compatibility with DSH ^0.2.1-alpha.2 (including entries like 0.2.1-alpha.2, 0.2.1-rc.2). The Host-side bundle will only be re-imported after a profile restart; the client side is composed at Host startup, so adding or removing ./client exports also requires a restart.
Typical Usage¶
1. Install Plugin¶
Execute the dsh plugin --profile web add dsh-zed-provider command from the previous section and restart the profile as needed.
2. Bind Zed Account¶
In the Harness Composer, input:
/zed-login
Follow the prompts to complete Zed login; or skip the command and fill in "<userId> <accessToken>" in the Settings → Models → Zed card (or via a reference pointed to by apiKeyEnv such as ZED_CREDENTIALS).
3. Select Model & Start Conversation¶
Check the model IDs you want to appear in the selector on the Models page (corresponding to config visibleModels). In the conversation, simply select Claude or GPT models under the zed-agent route; quota and policies are subject to the Zed account.
Configuration¶
| Field | Default Value | Description |
|---|---|---|
apiKeyEnv |
ZED_CREDENTIALS |
Credential reference name storing "<userId> <accessToken>" |
credentials |
None | Literal credentials, highest priority when combined |
baseUrl |
https://cloud.zed.dev |
Zed Cloud endpoint (mostly composition-only in cordis.patch.yml) |
visibleModels |
All supported items | Restricts the model IDs displayed in the catalog |
Use Cases & Notes¶
Suitable for: Users who already have a Zed Pro / Student subscription, want to unify agent development in the DSH Web interface, and do not want to maintain a separate set of API bills parallel to Zed for Claude/GPT.
Notes:
- Only Claude and GPT are available via this plugin; do not rely on Gemini/Grok in the Zed catalog.
- The plugin does not replace Zed’s billing and ToS; 402 errors must be handled on the Zed account page.
- Installation implies trust in the maintainer and the bundle code; it is recommended to read
cordis.patch.ymlandsrc/in the GitHub repository before using it in a production environment.
Links¶
- Community Directory: https://www.skillhub.cn/plugins/RGarrido03/dsh-zed-provider
- Source Code & README: https://github.com/RGarrido03/dsh-zed-provider
Through the steps above, you can use your Zed subscription quota as a standard LLM route within Harness and centrally manage credentials and model visibility on the Models page.