DSH Connect MiniMax Code: Integrating the local MiniMax Code desktop app with DSH

Introduction

When connecting third-party models in DeepSeek Harness (DSH), the common approach involves configuring API Keys, maintaining Base URLs, or logging in repeatedly across multiple clients. If you have already installed and logged into the MiniMax Code Desktop App (China Edition) on your local machine, the models available in your account theoretically serve only the App itself, requiring a separate set of pathways to be configured on the DSH side.

DSH Connect MiniMax Code (npm package name dsh-connect-minimaxcode) takes a different path: it reads the existing login state from the local App (or performs OAuth device code login via the plugin page), registers a minimaxcode provider in DSH, dynamically pulls the model catalog, and interfaces with the gateway via the standard Anthropic Messages protocol. It is ready to use out of the box and does not store plaintext Tokens in DSH. This project is maintained by JeffTsuiCUG, licensed under MIT, and is unofficial, having no association with MiniMax or DeepSeek.

What is this

In one sentence: It connects the models from your locally logged-in MiniMax Code Desktop App (or independent plugin login state) to DSH, requiring zero API Key configuration, with the model list updating dynamically from upstream.

The concept is similar to the community project dsh-workbuddy-connect—models already logged in on a desktop App can be moved into DSH with zero configuration; this plugin applies the same approach to MiniMax Code. The plugin structure and provider registration methods reference existing DSH plugin conventions such as dsh-connect-trae.

Directory Page: SkillHub Plugin Page
Source Code: github.com/JeffTsuiCUG/dsh-connect-minimaxcode

Core Features

The following capabilities are derived from the project README and implementation notes. Please read the repository declaration and MiniMax Terms of Service yourself before installation.

Model Pathway

  • Zero Configuration (Reusing Desktop App): Reads JWT from ~/.minimax/local-runtime.auth.json, uses it only in memory, and does not store plaintext Tokens in DSH.
  • Dynamic Model Catalog: Calls GET /mavis/api/v1/models; model additions or deletions require no plugin changes. Conversations go through POST /mavis/api/v1/llm/v1/messages (Anthropic Messages protocol), while tool calls, thinking blocks, and context compression are managed by DSH’s built-in provider.
  • Login without Desktop App: The “Login MiniMax Code” button on the plugin page follows the OAuth 2.0 Device Code flow (RFC 8628). Credentials are written to ~/.dsh/.minimaxcode-auth.json (permission 0600) and are not written to the MiniMax client files containing generation, avoiding conflicts with the Desktop App login state.

Points & Check-in

  • Points Capsule: When a MiniMax Code model is selected, displays remaining points in the tool row of the input box (next to the model selector); allows viewing the breakdown of gifted/purchased points, consumption, and token statistics. Account information depends on OAuth tokens (~/.minimax/auth/prod/<region>/mcode-public/auth.json or the plugin’s own login file) and is mutually exclusive with the JWT used for model calls.
  • Daily Check-in: MiniMax Code free points require daily check-in; the plugin page allows manual check-in or enabling “Auto check-in daily” (off by default). For the seven-day cycle progress and claim interfaces, see the README.

Compatibility Handling

There are observed differences between the gateway and general Anthropic clients (e.g., Authorization: Bearer vs x-api-key, baseUrl paths, thinking fields, etc.). The plugin has implemented corresponding handling at the model descriptor layer. See the README section “Three compatibility handlings when interfacing with the gateway” for details.

Response Behavior Notes

MiniMax related models force reasoning before output. There will be a wait before the first token (README example: M3.1-Flash takes about 3 seconds). Reasoning is returned as a streaming thinking block—this is model behavior, not an additional plugin delay.

Prerequisites

Choose one of the following:

  1. MiniMax Code Desktop App (China Edition) installed and logged in (the easiest way); OR
  2. Without installing the App, complete the OAuth device code login on the plugin page (requires access to account.minimax.cn).

Additionally, DSH Desktop Version (built-in kernel >=0.2.1-rc.2 <0.3.0, see engines.dsh in package.json; README tested with 0.2.1-rc.2) or a Web profile is required.

Installation & Activation

In the DSH ecosystem, plugins are installed via profiles; in a Web environment, replace --profile desktop in the commands below with --profile web.

Method 1: Install from Git Repository (Recommended by README, facilitates getting the latest code)

dsh plugin --profile desktop add github:JeffTsuiCUG/dsh-connect-minimaxcode

Method 2: Install via npm

dsh plugin --profile desktop add dsh-connect-minimaxcode

If you need the points balance and expiry notifications described in the README, the README suggests installing with a locked version (pnpm’s default minimumReleaseAge may cause resolution to an earlier version when installing without a version number):

dsh plugin --profile desktop add dsh-connect-minimaxcode@0.4.2

If the desktop dsh is not in the PATH, you can use the carrier CLI bundled with the DSH application (the path varies by installation location, e.g., <DSH Install Directory>\resources\runtime\cli\bin\dsh.cmd).

After installation, the plugin is hot-loaded, and models appear in the MiniMax Code group of the model selector. The Points Capsule and plugin page cards require a restart of DSH to appear after the first installation or upgrade to version 0.3.0 or later (the model pathway itself does not require a restart).

If [ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED] occurs during installation, the README explains that you can switch to github:JeffTsuiCUG/dsh-connect-minimaxcode#v0.2.1, or configure allowBuilds in the profile’s pnpm-workspace.yaml according to pnpm’s prompts.

Typical Usage

After completing the installation steps above, follow the README workflow:

  1. Confirm Login
    If using the Desktop App: Open MiniMax Code and confirm you are logged in. If using plugin login: Complete the device code authorization on the plugin page.

  2. Select Model
    Select a model under the MiniMax Code group in the DSH model selector (Catalog examples: M3, M3.1-Flash, subject to the real-time upstream list).

  3. Normal Conversation
    Tools are executed locally by DSH; the plugin only provides the model pathway.

  4. In case of Authentication Errors

    • Model reports authentication error: Usually caused by JWT expiration. Restart DSH after logging in again in MiniMax Code.
    • Points Capsule shows “Login state expired”: OAuth has expired; the plugin will attempt to renew via refresh token, or open the Desktop App once to let it renew itself if that fails. OAuth expiration does not affect model conversations under a still valid JWT.

The plugin page also allows viewing check-in progress, manual or automatic check-in, and (when a MiniMax model is selected) Points Capsule details.

Scenarios & Notes

Who is it for

  • Developers who already use the MiniMax Code Desktop App locally, wish to reuse the same account models in DSH, and do not want to configure another set of API Keys in DSH.
  • Users who do not have the Desktop App installed but are willing to complete the official OAuth device code authorization in a browser and use MiniMax Code models solely within DSH.

Important Notices

  • The project README states: For learning and research purposes only, not for production, and no commercial support is provided; it relies on MiniMax non-public interfaces, and client updates may cause the plugin to fail.
  • The plugin runs with the current DSH process privileges and will read local MiniMax related credential files (or write to the plugin’s own auth file). You should read the source code and MIT license before installation and assess the risks yourself.
  • Commercial use, bulk/multi-account/limit evasion or other scenarios exceeding reasonable personal use are prohibited; consequences (account restrictions, quota clearing, etc.) are borne by the user.

The DSH community plugin directory (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer; this plugin is also not an official MiniMax product.

Conclusion

DSH Connect MiniMax Code connects “locally logged-in MiniMax Code models” or “plugin OAuth login state” to DSH: dynamic catalog, Anthropic Messages compatibility, points and check-in assistance, while striving for read-only coexistence with the Desktop App login state. If you want to orchestrate tools and conversations uniformly in the Harness without repeatedly maintaining MiniMax API configurations, you can install it via the README commands and confirm the usage boundaries in the plugin page and the README’s important declarations.

  • Directory Page: https://www.skillhub.cn/plugins/JeffTsuiCUG/dsh-connect-minimaxcode
  • GitHub: https://github.com/JeffTsuiCUG/dsh-connect-minimaxcode
羽毛球分组比赛记分
小程序二维码

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

Xiaoye