Introduction¶
In DeepSeek Harness (DSH), model sources are often scattered: different vendors have separate APIs, keys, and pricing units. If you wish to unify model selection on the desktop and keep bills and balances visible at a glance, rather than reconciling between the console and local configuration, you need to integrate a “hub” into the Harness plugin system. Below is an introduction to @router-ai/dsh-plugin-routerai: it hooks up RouterAI as a model provider within DSH, along with the UI and logic for login, model selection, session billing, and multimedia capabilities.
What is this¶
RouterAI is a language model aggregation service for the Russian-speaking region: one account and one API key provide access to a vast number of models in the catalogs of Claude, GPT, Gemini, DeepSeek, Qwen, and others, with billing in Rubles. The plugin is maintained by router-ai, the npm package name is @router-ai/dsh-plugin-routerai (version 0.8.2 in the documentation), the license is MIT, and it targets DeepSeek Harness 0.2.x (requires engines.dsh >=0.2.2-rc.1 <0.3.0).
The plugin performs two tasks in Harness: it registers RouterAI as a model backend and injects UI into the settings page, sidebar balance, and session costs below the input box. Categorically, it belongs to the “Model Inference” plugin type.
Core Features¶
The following capabilities come from the project README; details not appearing in the documentation are omitted.
Account and Key¶
- Click Login via RouterAI in Settings → RouterAI; the browser redirects to routerai.ru for authorization. You can set a spending limit on the confirmation page, and the key is automatically written back to the application.
- If a key has already been created in the routerai.ru console, you can paste it directly into the “Existing Key?” field.
- Each installation uses a separate key (named like “DeepSeek Harness · Tag” in the console), and logging in from multiple machines does not kick each other offline.
Model Catalog¶
- The documentation states that the catalog contains over 350 dialogue models, supporting search, filtering by vendor, and preset suites (e.g., “Daily Use”, “Coding”, “Save Money”).
- Pricing is displayed in settings as “Rubles / Million tokens (input / output)”; after checking and sorting, click Apply, and the models will appear in the RouterAI group of the selector below the input box.
Fees and Balance¶
- The sidebar displays the account balance; if it falls below a set threshold, it is highlighted, allowing you to view a summary and jump to recharge.
- The cumulative cost of the current session is displayed below the input box; clicking it shows the last request, request count, tokens, cache hit rate, and breakdown by model (including auxiliary models and image models).
- The plugin side displays text token estimation; image and video costs follow RouterAI’s return, with the final ledger based on the console.
- Supports spending limits and low-balance warnings; video features are disabled by default, and there is a cost cap per video; when the balance is exhausted, readable prompts and links are displayed instead of bare API error codes.
Text-Related Capabilities¶
In the Additional section, you can specify models for image generation, video, and speech recognition, and choose cheap auxiliary models for session naming and context compression.
- Images: Generate or edit images via natural language; results appear in the conversation and are saved to the project directory
routerai-media. You can disable image generation in settings to avoid accidental charges. - Video: For example, “Record a…” or “Make this image move”; generates mp4 written to
routerai-media, and project images can be used as the first frame. - Speech: Speech input is recognized by RouterAI; text-to-speech is performed by the selected TTS model.
Auxiliary tasks (session titles, context compression) use low-cost service models to reduce reliance on large language models.
Installation and Activation¶
DSH plugins run under the permissions of the current dsh process; it is recommended to browse the GitHub repository source code and the MIT license before installing to confirm it meets your environment and compliance requirements.
Method 1: In-App or Command Line¶
In the app: Plugins → Add Plugin, and fill in the package name @router-ai/dsh-plugin-routerai.
Or execute in the terminal (original README command):
dsh plugin --profile desktop add @router-ai/dsh-plugin-routerai
Restart the application after completion.
Method 2: RouterAI Plugin Index (for one-click updates)¶
- Open the experimental item Custom plugin indexes in Plugins, and a “Discovery” tab will appear.
- Add index source and enter:
https://routerai.ru/dsh/index.json
- Install on the RouterAI card, and Enable immediately in “Installed” (no restart is needed for this path). New versions will appear in the list; see routerai.ru/dsh for details.
Login and Model Selection¶
After installing and restarting (if using Method 1):
- Open Settings → RouterAI, complete login or paste the key.
- Check models in the catalog, adjust the order, or choose a preset suite, then click Apply.
- Configure drawing, video, speech recognition, and auxiliary models in Additional as needed.
When Harness runs on Docker or a remote machine, the README provides a “Login via Code” section; you can follow the official documentation (the details in the source text are truncated; refer to the repository README for specifics).
Typical Usage¶
Daily Chat and Model Selection¶
After completing the above configuration, simply select a model from the RouterAI group in the model selector below the chat input box. Costs accumulate with the conversation and can be viewed at any time in the session cost details below the input box.
Generating Project Images¶
Describe the requirements directly in the chat, for example, the sample intents in the README: “Draw a… logo” or “Add an illustration for the article.” The generated content enters routerai-media, and you can continue to request image modifications in the chat (remove background, same-style banner, dark theme version, etc.). If the model supports it, you can specify dimensions, quality, format, and transparency; if not, the plugin will select the closest valid parameters and explain them in the result.
Video and Dubbing¶
When dynamic materials are needed, you can let the agent generate a video based on the script, or create an “GIF / short video” of a just-generated logo. Video is disabled by default; you need to enable it in settings and select a video model. Dubbing and dictation rely on the TTS and ASR models configured in Additional.
Suitable Scenarios and Notes¶
Who is it for:
- Developers who are already using or plan to use RouterAI, wish to settle bills in Rubles, and do not want to manually maintain multiple API keys in Harness.
- Teams that need to switch between a large number of commercial / open-source dialogue models within the same desktop client and care about session-level cost transparency.
Notes to be aware of:
- The plugin is bound to the RouterAI service; accounts, recharge, and key limits are managed on routerai.ru; the network must be able to access its API and OAuth flows.
- Multimedia output is written to the workspace
routerai-media; ensure the repository should ignore this directory. - Community plugin directories (such as the SkillHub entry) are independent ecosystem sites with no official affiliation to DeepSeek or Huafang; installation sources are based on the npm package and upstream GitHub.
Conclusion¶
@router-ai/dsh-plugin-routerai connects RouterAI’s “single key, large catalog, Rubles pricing” to DeepSeek Harness, adding login, balance, session billing, and image / video / speech support. If your pain point is scattered model sources and opaque bills, you can follow the installation command in the README to integrate, and then complete login and model selection in Settings → RouterAI.
- Directory page: https://www.skillhub.cn/plugins/router-ai/dsh-plugin-routerai
- Source code and documentation: https://github.com/router-ai/dsh-plugin-routerai