Preface¶
When developing agents with DeepSeek Harness (DSH), developers often need to simultaneously maintain the model catalog, check pricing coefficients, and monitor account balances. In the past, these functions might require installing different plugins separately, leading to scattered configurations and higher maintenance costs. The CVC catalog sync plugin consolidates these three functions into a unified solution, with independent toggles for each feature, making management clearer and more straightforward.
Plugin Overview¶
This plugin is designed for DeepSeek Harness 2.0.0 and above, maintained by mikel38487. It accomplishes model catalog and inference level synchronization, price coefficient display in the model selector, and sidebar balance panel display—all through a single plugin line. Version 2.0.0 of the plugin integrates the previous cvc-model-coeff-plugin and cvc-balance-plugin, so one plugin line covers all features.
Core Features¶
The plugin provides three independent feature modules, each with its own toggle:
1. Catalog Sync¶
This feature keeps the model list in llm-pi-ai.providers.<provider>.models and the sub-agent model whitelist in sync with CheapVibeCode’s GET /v1/models endpoint, while also reading the inference level mappings published by the official installer. When the toggle is enabled, the plugin starts a scheduled task to periodically fetch the latest catalog and write changes into configuration patches.
2. Model Coefficients (Pricing Coefficients)¶
In the model selector, a price multiplier (×0.1 … ×10) is displayed next to each model, allowing developers to intuitively compare the cost of different models. This feature retrieves coefficient data via GET /cvc/coefficients and presents it as badges in the UI. When disabled, no coefficient markers will appear in the model selector.
3. Balance¶
A balance panel is added to the sidebar, displaying the remaining balance and the amount consumed since the last read. The panel consists of a balance refresh button and a panel section. When disabled, both the sidebar button and the panel disappear.
Installation & Activation¶
Install via DSH Agent¶
Directly instruct the agent in the DSH environment to install it:
install the npm bundle cvc-catalog-sync-plugin
Manual Installation¶
Add the following to dependencies in ~/.dsh/profiles/<profile>/package.json:
"cvc-catalog-sync-plugin": "^2.0.2"
Then add the package name to dsh.profile.bundles:
"dsh.profile.bundles": ["cvc-catalog-sync-plugin"]
The plugin includes a pre-compiled client.js, so no build step is required, and the allowBuilds permission is not needed during installation. For local development, you can use "cvc-catalog-sync-plugin": "link:<absolute-path>".
Configuration¶
Configuration is completed through the settings page form, or by directly overriding the plugin line cvc-catalog-sync in the profile patch. Below is a minimal configuration example:
- id: cvc-catalog-sync
name: 'cvc-catalog-sync-plugin'
config:
features:
catalogSync: true
coefficients: true
balance: true
providers:
match: ['cheapvibecode.ru']
entryId: llm-pi-ai
apiKeyEnv: CVC_DEEPSEEK_API_KEY
baseURL: https://ru.cheapvibecode.ru/v1
timeoutMs: 20000
catalog:
provider: cheapvibecode
autoSync: true
intervalHours: 24
startupDelayMs: 5000
minModelRatio: 0.8
keepModels: []
installerUrls:
- https://ru.cheapvibecode.ru/idhw
- https://ru.cheapvibecode.ru/idhl
syncAllowlist: true
allowlistEntryId: subagent-model-selection-settings
levelsCacheMinutes: 360
coefficients:
refreshMinutes: 10
showFast: true
balance:
refreshSeconds: 0
showDelta: true
The top of the settings page contains feature toggles, followed by parameter groups for Catalog, Coefficients, Balance, and Advanced. The Advanced group is always visible and is used to configure provider lookup and level caching shared across the three features.
Key Configuration Options¶
| Option | Description |
|---|---|
features.catalogSync |
Whether to enable catalog sync; when enabled, starts the scheduled task and the cvc_catalog tool |
features.coefficients |
Whether to display price coefficient badges |
features.balance |
Whether to enable the balance panel |
providers.match |
List of hostnames used to identify the provider |
providers.entryId |
Patch line ID that owns the provider route |
providers.apiKeyEnv |
Environment variable name that stores the API key |
catalog.autoSync |
Whether to run a sync once at startup |
catalog.intervalHours |
Scheduled sync interval (hours); 0 disables the timer |
catalog.installerUrls |
Priority list for inference level mappings |
coefficients.refreshMinutes |
Coefficient refresh interval (minutes) |
balance.refreshSeconds |
Balance refresh interval (seconds); 0 means on-demand refresh |
Settings Page Buttons¶
| Button | Effect |
|---|---|
| Save | Validates the form and writes configuration to the profile patch via configEditor.edit() |
| Check catalog | Fetches the catalog and level mappings, displays diffs only without writing to configuration |
| Apply catalog | Fetches the catalog and writes the model list and whitelist; requires confirmation before proceeding |
| Reset | Resets the form to default values; saving after reset can remove configuration overrides |
Usage Workflow¶
- Ensure you have a compatible DSH version (>=0.2.2-rc.3 <0.4.0) and Node.js 20 or newer
- Configure an
llm-pi-aiprovider route pointing to thecheapvibecode.ruhost, and set the API key environment variable (default:CVC_DEEPSEEK_API_KEY) - Install the plugin via the DSH agent or manually modify
package.json - In the CVC category of the settings page, enable the feature toggles you need
- Click Check catalog to verify that catalog fetching works correctly
- Once confirmed, click Apply catalog to write the configuration to the profile
- The plugin will automatically start scheduled tasks based on the configuration and display the corresponding UI elements
Use Cases & Notes¶
This plugin is ideal for developers who frequently manage CheapVibeCode model catalogs, compare pricing coefficients across models, or monitor account balances. The plugin runs with the permissions of the current DSH process. Before installation, review the plugin source code and license (MIT), and ensure compatibility with your DeepSeek Harness version.
The default CheapVibeCode endpoint used by the plugin is https://ru.cheapvibecode.ru/v1. If you need to use a different host, modify providers.baseURL in the configuration.