Introduction¶
DeepSeek Harness (DSH) adopts a pluggable architecture. When using Huawei Cloud CodeArts, account login, token renewal, and registering CodeArts as a local LLM provider are common pain points. The dsh-codearts-auth plugin solves these issues by automating the OAuth flow and providing multi-account management and credit features.
Plugin Overview¶
This is a DSH plugin maintained by anye-99. It primarily executes the CodeArts IAM OAuth login flow (Portal → Callback → STS) and silently renews credentials before they expire, eliminating the need to manually open a browser. Simultaneously, it registers CodeArts and 13 other LLM providers to DSH, making them directly available for conversational model invocation.
Core Features¶
- CodeArts Login & Renewal
Executes the standard IAM OAuth login flow. The plugin supports silent credential renewal, automatically refreshing tokens before expiration to ensure continuous availability. - Multi-Account Pool Management
Supports the configuration and management of CodeArts account pools. - LLM Provider Registration
Registers thecodeartsprovider (OpenAI-compatible endpoint) along with 13 other independent LLM providers. - Credit Management
For certain providers (e.g., buddy, qoder, loomy), supports viewing credit balances, daily check-ins, and locking permanent credits. - Model List Toggle
Provides show/hide functionality for the model list, utilizing a blacklist system where all models are displayed by default.
Installation & Activation¶
This package has not yet been published to the npm registry and must be installed via a Git repository.
dsh plugin --profile <name> add "https://gitee.com/iJetLi/deepseek-harness-codearts.git"
Note: Pay attention to pnpm version compatibility during installation. pnpm 10 and 11 differ in the syntax for the allowBuilds configuration item. You must configure the allow key in pnpm-workspace.yaml correctly based on error prompts; otherwise, installation may fail.
Typical Usage¶
Login Entry¶
Find the CodeArts panel on the DSH Jet Hub settings page to log in.
Programmatic Invocation¶
The plugin provides corresponding Context APIs:
* ctx.codeartsAuth.login()
* refreshAccountCredential(refName)
* refreshAll(pool)
Model Invocation¶
Select the corresponding provider (e.g., codearts) on the DSH Models page to invoke the models registered under it.
Notes¶
- Command Changes: The plugin does not register slash commands. Commands such as
/codearts-login,/codearts-status, and/codearts-refreshwere removed in earlier versions; all operations are now unified within Jet Hub. - Account Pool Mode: Only supports account pool mode; single credential mode (i.e., using
CODEARTS_ACCESS_TOKEN) is no longer supported. - Provider Feature Differences:
- Some providers (e.g., Loomy, TeleAgent) do not support automatic renewal.
- TeleAgent is the only provider that requires the user to manually paste the callback URL.
- Model Filtering: Vision (VL) models are excluded from the conversational model list selection.
Summary¶
dsh-codearts-auth resolves the automation issues for CodeArts login and token management while expanding the DSH LLM Provider ecosystem. If you require stable access to Huawei Cloud CodeArts models or models from other partner vendors, this plugin is an essential tool.