Introduction¶
When developing agents in DSH, models often come from multiple sources: OpenCode’s anonymous free tier, Qoder / WorkBuddy’s check-in credits, Trae’s gifted quotas, etc., scattered across different clients. The common practice is to log in, check in, and check balances separately on each platform, then manually switch accounts or models during conversations. Everyday frictions include expiring quotas, rate limit errors, and confusion in dropdown menus where models with the same name have different credit multipliers.
Below is an introduction to the community plugin dsh-multi-agent-gateway (maintainer a1141171521). It manages multiple “AI Agent platforms” accounts uniformly within the DSH process, reports models from various platforms to the native DSH model selector grouped by source, and labels credit consumption multipliers. It is not a standalone Nginx instance nor an external proxy process; account credentials are encrypted and stored locally, and requests are forwarded internally by the plugin.
What is this¶
dsh-multi-agent-gateway is a Provider-class plugin for DeepSeek Harness (current version 0.1.0, License MIT). The README summarizes its stance as “Free Token”: it aggregates free quotas released by various platforms into a unified configuration, connects them to the model selector in the DSH dialog, uses scheduled tasks to run check-ins and activity tasks, and performs intelligent multi-account routing within the same Agent (automatically switching accounts and retrying when rate-limited or quotas are exhausted).
The plugin has an entry in the SkillHub community directory (Directory Page), and the source code is on GitHub. The community directory has no official affiliation with DeepSeek / HF (High-Flyer); it is recommended to review the source code and license independently before installation.
Core Features¶
Six Platform Adapters¶
The documentation states that six Agent adapters have been implemented (not just placeholder skeletons). The capability overview is as follows:
| Agent | Check-in | Quota | Model Catalog | Chat | Notes |
|---|---|---|---|---|---|
| OpenCode | None upstream / Configurable | Supported | Supported | Streaming + Chain of Thought | Anonymous free tier works with zero credentials; check-in path configurable via checkInPath |
| Qoder | Supported | Supported | Supported | Supported | |
| Qoder CN | Supported | Supported | Supported | Supported | Separate product line and account system |
| WorkBuddy | Supported | Supported | Supported | Supported | |
| WorkBuddy International | None upstream | Supported | Supported | Supported | Honestly reports “not supported” if no upstream check-in interface exists |
| Trae | Supported | Supported | Supported | Streaming | Protocol implemented, hidden by default (not verified on real hardware yet), can be enabled via explicit configuration |
Unconfigured upstream check-in interfaces will not fake results; behavior regarding upstream.checkInPath / tasksPath for platforms like OpenCode can be found in docs/OPENCODE-API.md in the repository.
Settings Interface: Five Pages + Browser Login¶
The configuration entry is Settings → Multi-Agent Gateway, divided into five pages based on “the question to answer right now”: Overview (Health and recent consumption), Accounts (Platform accounts and models), Tasks (Check-ins and activity tasks), Logs (Failure troubleshooting), and Settings (Including low-frequency items like version updates).
When adding an account, you can click “Open Login Page” on the account page to complete platform login in a browser. The plugin will automatically poll (approx. every 3–5 seconds) or you can manually click “Refresh Login Status”. Tokens are exchanged by the plugin and stored encrypted, not transmitted in plaintext via the browser. Device code flows for OpenCode, Qoder / Qoder CN, and external link flows for WorkBuddy international versions are explained in the README.
Model Selection and Default Strategy¶
Models are reported to the native DSH selector sorted by “Free → Vendor → Multiplier”, with labels like (×2) or (Free) appended to the name. By default, no models are checked. They only appear in the selector after being checked and “Saved and Applied”, to avoid unexpected charges. First-time users can use “Pre-select by recommendation”. For models where the upstream declares thinking levels, options like off / low / medium / high are available in the selector.
OpenCode Anonymous Free Tier: Without logging in or filling in an API key, the account card only requires a label. When no key is present, the plugin supplements the request shape required by the free tier according to upstream.freeTierMode: 'auto' (default) (streaming, read tools, x-opencode-session, etc., see docs/OPENCODE-API.md for details). Anonymous channels are only valid for free models; paid models require login or an API key.
Multi-Account Routing and Local Data¶
Multi-account routing is supported within the same Agent: automatically switches accounts and retries when rate-limited or quotas are exhausted. Accounts and credentials are stored in <DSH_HOME>/multi-agent-gateway (typically ~/.dsh for DSH_HOME) by default, containing AES-256-GCM encrypted accounts.enc.json and .master-key; losing the master key requires re-entering accounts. state.json caches non-sensitive information such as quotas and health status.
Roadmap (Unreleased Capabilities)¶
The local OpenAI-compatible gateway (POST /v1/chat/completions, GET /v1/models, for Cursor / VS Code, etc.) is listed as planned in the README roadmap; the current focus remains on in-process forwarding as a DSH plugin.
Installation and Activation¶
The official quick start command is as follows (must include --profile desktop):
dsh plugin --profile desktop add github:a1141171521/dsh-multi-agent-gateway
For development, you can also install from a local source directory (path depends on your machine). A bundle patch will be applied upon installation.
After installation, you must restart the DSH desktop client to allow the client bundle to reload. Then open Settings → Plugins → Multi-Agent Gateway to add accounts. For more detailed installation, uninstallation, and upgrade instructions, see docs/INSTALL.md in the repository.
Typical Usage¶
- Install and restart DSH using the command in the previous section.
- Go to Settings → Multi-Agent Gateway → Accounts, and add accounts for the platforms you need (via browser login or device code for OpenCode, etc.).
- On the account or model pages, check the models to expose. After Saving and Applying, select them in the DSH model selector in the conversation window, grouped by platform.
- View or configure automatic check-ins and activity tasks on the Tasks page; view quotas and health on the Overview page, and troubleshoot failures in the Logs.
If you only want to preview model groups and multipliers without starting a conversation, the README explains that the model catalog can be fetched without credentials, but sending requests still requires a valid account or a qualifying path like the OpenCode free tier.
Applicable Scenarios and Notes¶
Who it is for: Developers who use multiple Agent platform accounts simultaneously, want to automate free quotas and check-ins, and wish to unify model selection and multiplier viewing within DSH.
Runtime and Security: The plugin runs with the permissions of the current DSH process. Processes that can read the local ~/.dsh/multi-agent-gateway directory could theoretically read the keys and ciphertext. Separating ciphertext storage is mainly to prevent configuration leakage via cloud sync or plaintext exposure, not to provide a hardware-level key vault. Please read the source code and MIT license before installing third-party plugins and assess your own trust boundary.
Trae: Not in the visible Agent list by default; after real-machine verification is complete, it can be displayed by adding trae to DEFAULT_VISIBLE_AGENTS in src/config.ts as per the README.
Questions and suggestions can be provided in the DeepSeek Harness plugin QQ group 1105449571 documented in the README (please note “dsh plugin” when joining).
Conclusion¶
dsh-multi-agent-gateway consolidates accounts, check-ins, quotas, and model catalogs scattered across multiple platforms into one place within DSH: in-process forwarding, models integrated into the native selector, and a default no-selection policy to reduce the risk of accidental charges. For more complete usage, error handling, and adapter extensions, refer to the GitHub repository documentation map (docs/USAGE.md, docs/MODELS.md, docs/EXTENDING.md, etc.).
- Community Directory: https://www.skillhub.cn/plugins/a1141171521/dsh-multi-agent-gateway
- Source Code and README: https://github.com/a1141171521/dsh-multi-agent-gateway