Integrating ClinePass Models and Credit Quota in DeepSeek Harness

Introduction

When running agents in DeepSeek Harness (DSH), model providers often require separate configuration of API addresses and keys, along with manually checking plan usage. If you are using ClinePass (api.cline.bot), the common approach is to manually write OpenAI-compatible endpoints or save a separate key in Cline/Cursor, which mismatches the DSH configuration.

dsh-clinepass is a community-maintained DSH plugin that integrates ClinePass keys, model directories, and usage limits into DSH’s settings sidebar. It registers the provider ID clinebot, allowing sessions to select ClinePass models directly. Below is an introduction to what it does, how to install it, daily usage, and limitations to note during installation.

What is this

  • Repository: xiangnan0811/dsh-clinepass (Maintainer: xiangnan0811)
  • Package Name: dsh-clinepass, current version 0.6.0 (MIT)
  • Category: Model Inference (Community Directory SkillHub Entry)
  • Positioning: A DeepSeek Harness plugin connecting to ClinePass—saves API keys, fetches available models, displays 5-hour / weekly / monthly usage, and registers selected models into DSH’s LLM providers.

The configuration namespace is dsh-clinebot, and the HTTP route prefix is /dsh-clinebot. Do not install another plugin that also registers the clinebot provider within the same DSH profile, otherwise, both will write to llm-pi-ai.providers.clinebot.

Core Features

Settings Card (ClineBot)

After installation and restarting DSH, a ClineBot setting item (settings.section is dsh-clinebot) will appear in the sidebar; the configuration for the dsh-clinepass row in the Plugins page will also open this same page. This card handles:

  1. Saving the ClinePass API address (default https://api.cline.bot/api/v1) and key.
  2. Calling GET /users/me/plan/usage-limits to display 5-hour, weekly, and monthly usage (percentage, progress bar, reset time), and showing account, plan, and last fetch time; emails are masked by default but can be manually revealed.
  3. Registering selected models to DSH; the request budget defaults to 65536 (sent as a request budget, not as max_tokens).
  4. Supporting model search, quick selection, optional verified-plan filtering, batch defaults, and single-model overrides; an explicit empty selection registers no models.
  5. Verifying keys without saving; scanning local Cline CLI, VS Code, and Cursor related files and environment variables to import keys (discovery results are displayed in masked form).
  6. Optional model smoke testing; the default smoke model is cline-pass/deepseek-v4.1-flash.
  7. Recording request statistics (result, count, latency, token count) per DSH profile, with filtering, CSV export, or reset capabilities; does not store prompts or plaintext keys.
  8. The sidebar quota button opens details (quota, stats, full configuration); the Composer can display the current session’s ClinePass usage projection (requires configuring input/output unit prices per million tokens to estimate costs; defaults to USD, currency changes do not perform conversion).

Note: GET /api/v1/models returns 404 on api.cline.bot; model discovery is done via GET /users/me/plan when a key is present. ClinePass model IDs are in the format cline-pass/deepseek-v4.1-flash.

Multi-Account & Rate Limiting

The same card can save multiple CLINEBOT_API_KEY_* accounts; pool names are saved before keys, and if a key is not saved, the name is removed. When a request encounters HTTP 429 or 402, it automatically switches to the next saved account. Account mode can be configured as least-used (prioritizing lowest quota remainder) or round-robin; explicit model/account routing is also possible via modelRoutes.

Operations such as switching accounts, rotating, changing API addresses, or primary keys will clear the previous plan model list until the next successful plan read.

CLI Commands

The plugin provides the /cline command series (plain text output), for example:

  • /cline ping <model> or /cline ping default: Performs a streaming probe on the specified model (max 1024 output tokens, 30-second expiration); bare /cline ping still performs an API health check.
  • /cline account: Lists accounts; /cline use <name> fixes the account; /cline use auto restores automatic routing.
  • /cline stats, /cline telemetry: Consistent with the statistics for the same profile in the settings card.

Installation & Activation

0.6.0 requires DeepSeek Harness ^0.2.1-rc.2 (README notes this corresponds to the next line of 2026-10-19). DSH uses pnpm to install plugins; the official command is:

dsh plugin --profile web add github:xiangnan0811/dsh-clinepass

Restart dsh after installation. The community sidebar market dsh-market also installs via the github:owner/repo specification, requiring no npm publish; this repository has private: true and does not rely on npm publishing.

Keys: Do not export CLINEBOT_API_KEY in the shell launching dsh. DSH treats this variable as read-only; if it already exists in the environment, the key saved in the settings page will be rejected. Keys should be saved within the plugin card; the browser accesses the local DSH service via http://127.0.0.1:<port>/dsh-clinebot/..., and the plugin then requests the baseUrl.

On hosts providing connection.requestRejection, all /dsh-clinebot/* routes require DSH authentication (including read-only and update checks); log in using the address printed by dsh web, unauthenticated requests return 401.

Configuration File Example

In addition to the UI, you can use the dsh-clinebot section in the DSH configuration, for example:

dsh-clinebot:
  enabled: true
  baseUrl: https://api.cline.bot/api/v1
  apiKeyEnv: CLINEBOT_API_KEY
  defaultModel: cline-pass/deepseek-v4.1-flash
  selectionKind: all-except-disabled
  timeoutMs: 15000
  smokeTimeoutMs: 25000

Meaning of common fields (excerpt, see repository README for the full table):

Field Default Value Function
baseUrl https://api.cline.bot/api/v1 API root path for plugin requests
apiKeyEnv CLINEBOT_API_KEY Credential environment variable name (still recommended to store key in card, and do not export in launching shell)
defaultModel cline-pass/deepseek-v4.1-flash Smoke test and provider default model
selectionKind all-except-disabled Registers non-disabled models in the directory when disabledModels is empty
planFilterEnabled false Intersects with successfully read plan for manual selection; missing plan does not clear existing selections
accountMode least-used Multi-account strategy, or round-robin
proxyEnabled false Authenticated loopback proxy, allows account retries before first model output
webSearchEnabled false Registers native search provider clinebot, does not change global search selection

Typical Usage

  1. Install the plugin using the command above and restart DSH.
  2. Open the sidebar ClineBot, fill in baseUrl (usually keep default), and save the ClinePass API key in the card; use “Verify but do not save” or local scan import if necessary.
  3. Check the ClinePass models to expose to DSH in the model list, save; select models under the clinebot provider in DSH mode/model selection.
  4. Use the settings page or /cline ping default to confirm connectivity; use the sidebar quota or /cline stats to observe usage and request statistics.
  5. If you have multiple keys, add accounts in the same card; the plugin will rotate according to strategy upon encountering 429/402 (you can also use /cline use to fix an account).

Scenarios & Notes

Suitable for: Developers already using or planning to use ClinePass, who want DSH sessions to uniformly go through ClinePass models, view quotas, select models, and perform multi-key rotation in the same interface.

Notes:

  • The plugin runs with the permissions of the current dsh process; please review the GitHub Source Code and MIT license before installation to ensure it meets your security and compliance requirements.
  • Do not coexist with another clinebot provider plugin in the same profile.
  • Do not set CLINEBOT_API_KEY in the shell launching DSH.
  • Community plugin directories (such as SkillHub) are independent ecosystem indexes and have no official affiliation with DeepSeek / High-Flyer; DSH itself follows an “everything is a plugin” extension approach.

Conclusion

dsh-clinepass integrates ClinePass keys, model registration, and usage dashboards into DSH, supplementing it with multi-account rotation, probe commands, and profile-level statistics. It is suitable for using ClinePass as a standard model provider type within DSH.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye