dsh-cpamc: Unified Management of Multi-source Models and the Complete CPAMC Console in DSH

Introduction

When building agents or doing daily development in DeepSeek Harness (DSH), models often come from different channels: IDE-integrated sources, Claude / Codex subscriptions, each with scattered login methods and configurations. If you also need to connect to OpenAI-compatible endpoints, control the length of the model list, or check request statistics, you usually have to switch between multiple tools.

dsh-cpamc is a model provider plugin for DSH: once installed, the plugin prepares the model service, source components, and the complete management interface. Sources that are logged in and pass inspection automatically enter the DSH model selector. Lightweight settings remain in DSH under “Settings → dsh-cpamc”, while logging into sources, changing routes, or viewing detailed logs can be done with one click in the original full CPAMC management interface. This document introduces what it does, how to use it within DSH, and notes regarding installation and commands.

What is this

  • Name: dsh-cpamc (Community Directory: AIcivilization/dsh-cpamc)
  • Maintainer: AIcivilization
  • Category: Client (DSH settings Web panel + Local service)
  • Code & License: GitHub, MIT
  • Status (README): Early version 0.1.x, published to npm; sections marked as “Implemented” have been verified with real components and real DSH on macOS (Apple Silicon). Other platforms and servers are still being verified.
  • Relationship: Developed based on dsh-model; can coexist with dsh-model, but DSH will show two sets of models. The README recommends uninstalling dsh-model after running migrate.

In short: It provides multi-source models for DSH and opens a full CPAMC management interface within DSH. It manages the same service set that supplies models to DSH, and settings changed in the full interface will not be overwritten by dsh-cpamc.

Core Features

Models and Sources

  1. Provide models for DSH: Models from logged-in and inspected sources automatically appear in the DSH model selector.
  2. Six default sources: WorkBuddy, Trae, Qoder, ZCode, plus Claude subscription and Codex subscription; users log into accounts themselves.
  3. Controllable list: Each source can be shown or hidden in DSH; by default, only models from free sources that have been tested and confirmed working with the current account are shown (maximum 2), others require manual selection.
  4. Out-of-the-box components: The plugin prepares the model service, components for the four IDE sources, the full management interface, configuration, and API Keys, with version locking and sha256 verification.

Manage in DSH: Settings → dsh-cpamc

The interface language follows DSH. The status of each block in the README is as follows (all marked “Implemented”, “Deploy to Server” is noted as pending real server verification):

Location Content
Top of page Plugin name and current version; “Update” (appears only if there is a new version); “Uninstall”
Model Management Recently used models; status, account, show/hide for the six sources; real request count, success rate, latency, and speed for the last 24 hours (shows “No request data” if none); select which models to display in DSH
API Key Local address and external address; one key per device, add, copy, rotate, revoke
Services Version and running status of model service, channel components, full management interface; re-check, restart, repair
Deploy to Server Fill in server address and SSH account in local DSH to install dsh-cpamc to an existing DSH server with one click; password is used only this time and not saved
All Features Open the original full management interface after confirming service is running; copy login key (not displayed, cleared from clipboard after ~30 seconds). Remote browser opens via DSH’s own URL, requires DSH login first

Security and Uninstallation

  • The service only listens locally; calling models always requires an API Key; the DSH settings page cannot access daemon or service secrets.
  • Uninstallation follows a sequence: remove external access, restore DSH configuration, stop and remove services, confirm ports are released, and finally remove the plugin from DSH. If any step fails, it stops and allows retrying, without falsely reporting “Uninstalled”.

Installation and Enablement

Install via DSH Plugin Management

Install dsh-cpamc in DSH’s plugin management (package name dsh-cpamc, published on npm). If ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION appears, it is due to DSH package manager restrictions on packages “published less than a day ago” (the error might name this plugin or other installed plugins); wait some time and click “Retry” in the interface.

After installation, you can repeatedly execute setup to complete or repair all components (see command section below). Then, log into each source via “All Features” in Settings → dsh-cpamc.

Setup and Development Build (README Quick Start)

If you need to build from source or use CLI to repair the environment, the development steps given in the README are:

cd dsh-cpamc && npm ci && npm run build
node bin/dsh-cpamc.js setup

setup can be executed repeatedly. If installation via plugin management is blocked, the README also mentions that you can use dsh-cpamc setup to install a specific version (requires a local dsh-cpamc executable entry, usually from the build above or npm global/project dependency).

Runtime Environment: package.json requires Node >=20.

Typical Usage

1. Daily Management in Settings Page

Go to DSH Settings → dsh-cpamc: view sources and 24-hour statistics, toggle show/hide, manage API Keys, check or restart services. When full configuration, routing, and detailed logs are needed, use “All Features” to open the full CPAMC management interface.

2. Command Line (dsh-cpamc)

After installation or building, you can use common commands from the README in the terminal:

Command Function
setup Install / Repair all (Repeatable)
sources Six sources: login status, show or hide in DSH, account, model count
source show\|hide <source> Show / Hide models from a specific source in DSH
panel [--show-key] Print the full management interface address
key list\|add\|revoke\|rotate <name> Access keys (one per device)
stats Success rate, latency, and speed by key, source, model
status / doctor Overview / Item-by-item self-check
migrate Migrate Claude / Codex login and access keys from dsh-model (Copy only, no deletion)
update / uninstall Update / Clean uninstall

3. Migrate from dsh-model

If you previously used dsh-model, you can first run:

dsh-cpamc migrate

Then uninstall dsh-model as recommended in the README to avoid duplicate model entries in DSH.

Platforms and Use Cases

Platforms (README)

Platform Status
macOS Apple Silicon Tested with real components
macOS Intel, Linux x64 / arm64, Windows x64 Components ready, pending individual testing
Windows arm64 No channel component version for this platform yet, verification in progress
Server (VPS) Full management interface via DSH’s own URL (requires DSH login first) has been tested; no need to install other products

Who is it for

  • Developers already in the DSH ecosystem who want a single OpenAI-compatible endpoint to aggregate WorkBuddy, Trae, Qoder, ZCode, and Claude / Codex subscriptions, with controllable display in the DSH model selector.
  • Users who need lightweight ops in settings + one-click entry to full CPAMC console for login, routing, and log troubleshooting.
  • Users planning to deploy the same dsh-cpamc to a remote server with existing DSH (Feature implemented, README notes pending further real server verification).

Important Notes

  1. Terms and Account Risk: Using source account credentials outside official clients may violate service provider terms and pose risks to accounts; judgment is required.
  2. Quota: dsh-cpamc is only responsible for relaying and does not provide any quota.
  3. Plugin Permissions: The plugin runs with the current dsh process permissions; please check the Source Code and MIT license before installation to ensure compliance with your security and compliance requirements.
  4. Community Directory: Directory sites like SkillHub are community sites and have no official affiliation with DeepSeek / High-Flyer; DSH itself follows the “Everything is a plugin” extension approach, and this plugin is a type of model provider.

Conclusion

dsh-cpamc binds “multi-source models into DSH” and “full CPAMC management interface” into the same service set: settings page for daily management, “All Features” for deep configuration in the console, and a retryable step-by-step uninstall path. Currently an early 0.1.x version, please expect verification status according to the README platform table (except for Apple Silicon macOS).

  • Directory Page: https://www.skillhub.cn/plugins/AIcivilization/dsh-cpamc
  • GitHub: https://github.com/AIcivilization/dsh-cpamc
  • Design Description: docs/DESIGN.md, docs/M0-findings.md in the repository
羽毛球分组比赛记分
小程序二维码

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

Xiaoye