ClawRouters 接入
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.
이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.
업스트림에서 중국어 README를 제공하지 않아 저장소 원본 내용을 표시합니다.
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 genericweb_searchprovider.
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
- Open DSH Web or Desktop.
- Go to Settings → Models → ClawRouters.
- Paste your ClawRouters API key and save.
- 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 does two things:
- Adds a
clawroutersprovider profile to DSH's built-in genericllm-pi-aiadapter. Reusing its existingllm-pi-aisettings namespace makes the stock Models page render the ClawRouters credential card—no browser patch or fork is required. - Inserts the
dsh-plugin-clawroutersfunction plugin, which registers the image, video, and search tools intoctx.toolsand usesctx.attachmentswhen 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
| Capability | ClawRouters API |
|---|---|
| Chat | POST /chat/completions via DSH's pi-ai adapter |
| Image | POST /images/generations |
| Video | POST /videos, compatibility fallback to POST /videos/generations, then GET /videos/{id} |
| Search | POST /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
보안 및 설치 증거
이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.
공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.
저장소가 MIT 라이선스를 선언했습니다.
최근 180일 내 코드 업데이트가 있습니다.
재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.
검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.