Preface¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, extending functionality through configuration composition and UI injection. In agent development, directly connecting to Volcengine Ark’s Agent Plan and Coding Plan requires additional routing configuration and quota management. This plugin solves the lack of native DSH support for Ark plans by declaring Providers in the llm-pi-ai adapter and providing quota Pills in the session title bar along with a model management page.
Core Features¶
The plugin primarily addresses the following issues:
* Model Integration: Adds two Providers, “Volcengine Ark Agent Plan” and “Coding Plan”, to the DeepSeek Harness model selector.
* Quota Tracking: Displays quota usage and refresh time per lane in the session title bar, preventing you from only discovering quota exhaustion after hitting the limit.
* Fine-Grained Control: Enable or disable models individually on the settings page and hide unnecessary models.
Installation and Activation¶
After installing the plugin, you need to restart the corresponding profile (two Web instances cannot run simultaneously).
dsh plugin --profile web add github:HaydenSmith1121/dsh-ark-plans
After restarting, complete the following steps in order:
1. Open Settings → Models, and you will see the two newly added Provider rows.
2. Click the API Key input field in the corresponding row and paste the plan’s API Key.
3. Return to the conversation page and select an Ark model in the model selector to start using it.
Note: API Keys are stored under the top-level refs: in $DSH_HOME/.credentials.yaml, with the key name matching the reference name declared in the configuration (e.g., ARK_AGENT_PLAN_API_KEY). If an environment variable with the same name exists in the environment where the harness is started, it will override the value entered on the page (the page will display it as read-only).
Quota Display Mechanism¶
A Pill appears on the right side of the session title bar, with one cell per lane, displaying a progress bar and the used percentage.
Data Source:
Quota data is not available via the /usage or /quota paths of the OpenAI-compatible interface (tests confirmed they return 404). The actual quota is provided by the control plane, which the plugin accesses via the local identity established by arkcli (STS or AK-SK signature) to call the control plane API.
Status Handling:
The plugin does not fabricate numbers. When quota data cannot be retrieved, it displays the specific reason:
* expired: The arkcli SSO credentials have expired; run arkcli auth login volc-sso.
* no-identity: No arkcli identity found.
* not-subscribed: The lane under this account has no active subscription.
* error: Control plane signature was rejected.
When arkcli is not logged in, the plugin can still call models normally, but the quota Pill displays “Unavailable” with an explanation.
Model Management (Enable/Disable)¶
Version 0.3.0 of the plugin adds model management functionality to the settings page. Via Settings → Model Management, you can check or uncheck models.
How It Works:
* Unchecking removes the model ID from dsh-ark-plans.enabledModelIds.
* The plugin dynamically adjusts the model list in the llm-pi-ai.providers configuration, thereby hiding these models from the model selector.
* The Save button is only clickable when there are changes; if the write fails, the reason is displayed in place, and the checked states are not rolled back.
Edge Cases:
* An empty list means “all enabled” (restoring defaults), not “all disabled”.
* Restoring full selection requires listing the complete model list, because the pi-ai models field performs a full-table replacement and cannot be empty.
Model List and Customization¶
Agent Plan Lane:
This lane does not support the model discovery API. The plugin embeds 12 verified model IDs. These IDs were confirmed through real request probing, including:
ark-code-latest, doubao-seed-evolving, doubao-seed-2-1-turbo, doubao-seed-2-0-lite, doubao-seed-2-0-mini, glm-5.3, glm-5-3-flash, kimi-k3, kimi-k2.7-code, minimax-m3, deepseek-v4-pro, deepseek-v4-flash.
Coding Plan Lane:
The plugin only embeds the intelligent routing model ark-code-latest from the official documentation. If you need to add other models, you can use arkcli plans model-list --plan coding-plan to obtain the authoritative list and manually edit the Provider’s models list in Settings → Models.
Custom Models:
You can manually append model lists in settings.yaml, which performs a full-table replacement of that Provider’s configuration. Note that after manual modification, clicking “Save” again will use the page’s checked state as the source of truth.
Known Limitations¶
- No image input support: All model entries do not declare
input: [text, image], and image inputs will be rejected by the provider. - No reasoning intensity adjustment: Although models return
reasoning_content, the plugin does not declarereasoningEfforts, so the reasoning intensity cannot be adjusted in the selector, and models run at default intensity. - Provider deletion restrictions: Due to pi-ai’s design, Providers declared in the composition layer (such as
ark-agent-plan) cannot be deleted by users through the settings page; they can only be removed by uninstalling the plugin. - Conflict with arkcli:
arkcli helper configure deepseek-harnessand this plugin each write their own configurations with different route names (e.g.,arkcli-agent-planvsark-agent-plan), so be careful not to confuse them.
Summary¶
This plugin provides a complete integration solution for Volcengine Ark Agent Plan and Coding Plan in DeepSeek Harness. It leverages the official llm-pi-ai adapter to support streaming, tool calls, and retry strategies, and implements accurate quota monitoring via arkcli. For users who need to use Volcengine Ark models for agent development, this is a necessary configuration supplement.