DeepSeek Harness plugin

dsh-plugin-clawrouters

One-key ClawRouters plugin for DeepSeek Harness: chat, image generation, video generation, and web search

Jump to install

Source facts

Repository
ropon/dsh-plugin-clawrouters
Latest update
Aug 14, 2026
Category
Docs & Rendering
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ropon/dsh-plugin-clawrouters
Plugin: dsh-plugin-clawrouters
Author: ropon

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.mdSource · read only
README language

dsh-plugin-clawrouters

English | 简体中文

ClawRouters for DeepSeek Harness: install one DSH bundle, configure one API key in the Web UI, and use chat, image generation, video generation, and web search.

Why this plugin

ClawRouters exposes multiple AI capabilities behind one OpenAI-compatible API and one credential. This plugin maps those capabilities into DSH's plugin-native seams instead of adding a separate application:

  • clawrouters / auto — OpenAI-compatible chat route, including image input.
  • clawrouters_image_generate — generates images and stores them as durable DSH image attachments.
  • clawrouters_video_generate — submits and polls a video task, then returns the signed result URL.
  • clawrouters_web_search — returns structured titles, snippets, and source URLs without replacing DSH's existing generic web_search provider.

Install

Requirements: DeepSeek Harness 0.1.0-rc.6 or newer and pnpm on PATH.

Install the tagged GitHub release into the Web profile:

dsh plugin --profile web add github:ropon/dsh-plugin-clawrouters#v0.1.1
dsh web

The repository commits its built lib/ output, so a GitHub installation does not need pnpm allowBuilds or run an install-time build script.

To try a local checkout during development:

dsh plugin --profile web add .
dsh web

Configure one key

1. Open DSH Web or Desktop. 2. Go to Settings → Models → ClawRouters. 3. Paste your ClawRouters API key and save. 4. Select clawrouters / auto in the conversation model picker.

The Web UI stores the secret through DSH's credential service under CLAWROUTERS_API_KEY; it is not written into settings.yaml. The chat route and all three tools resolve that same credential on every call, so key rotation applies without rebuilding the plugin.

You can also provide the key through the launch environment:

export CLAWROUTERS_API_KEY='...'
dsh web

How it works

This repository is a DSH bundle. [cordis.patch.yml](cordis.patch.yml) does two things:

1. Adds a clawrouters provider profile to DSH's built-in generic llm-pi-ai adapter. Reusing its existing llm-pi-ai settings namespace makes the stock Models page render the ClawRouters credential card—no browser patch or fork is required. 2. Inserts the dsh-plugin-clawrouters function plugin, which registers the image, video, and search tools into ctx.tools and uses ctx.attachments when that optional service is present.

The default API base is https://www.clawrouters.com/api/v1. Tool deployment defaults can be overridden in a later profile patch by targeting id: clawrouters-tools.

- id: clawrouters-tools
  config:
    apiKeyEnv: CLAWROUTERS_API_KEY
    baseURL: https://www.clawrouters.com/api/v1
    imageModel: auto
    videoModel: auto
    imageTimeoutMs: 600000
    videoTimeoutMs: 1800000
    searchTimeoutMs: 30000
    videoPollIntervalMs: 5000

Endpoint mapping

CapabilityClawRouters API
ChatPOST /chat/completions via DSH's pi-ai adapter
ImagePOST /images/generations
VideoPOST /videos, compatibility fallback to POST /videos/generations, then GET /videos/{id}
SearchPOST /search

Every direct provider request includes the DSH attribution User-Agent and the bearer credential. Image URLs are accepted only over HTTP(S), decoded, format-checked, validated by DSH's attachment policy, and persisted before the tool result is appended. Video result URLs are restricted to HTTP(S).

Deferred capabilities

  • Embeddings / vector search: ClawRouters can generate embeddings, but useful vector search also needs a store, indexing, metadata filtering, and similarity retrieval. This plugin will add it when DSH has a vector-store seam; returning large float arrays as a chat tool is intentionally avoided.
  • Text to speech / speech to text: deferred until DSH has durable audio attachments, upload handling, and player/recorder UI. Returning base64 audio as text would be expensive and unusable.
  • Durable video: DSH currently has no video attachment block, so the plugin returns the provider's signed URL rather than copying video bytes into session storage.

Development

pnpm install
pnpm check

The test suite covers image persistence, video polling, structured search results, authentication headers, and a bundle-shape smoke check. Built output is committed because DSH supports installing bundles directly from GitHub.

License

[MIT](LICENSE)