AmmarByFar/dsh-trustedrouter

Per-model TrustedRouter privacy and routing settings for DeepSeek Harness, added to each request as TrustedRouter's provider object.

dsh-trustedrouter adds per-model TrustedRouter privacy and routing settings to DeepSeek Harness: for each model you choose a privacy floor, which providers may serve it, what to optimize for, how it is billed and whether providers must be US-based — all from Settings → Models, where the plugin adds a Privacy & routing section to each TrustedRouter card. The README explains why a plugin is needed: TrustedRouter reads routing and privacy policy only from the request body (for example {"provider": {"min_privacy": "confidential"}}), and dsh's model providers can add headers but not body fields, so without the plugin there is no way to ask for a privacy floor.

Models & Providers ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add github:AmmarByFar/dsh-trustedrouter#v0.1.0

Copied verbatim from the README's Install section. The README also gives the in-app path: Sidebar → Plugins → Add plugin → enter https://github.com/AmmarByFar/dsh-trustedrouter#v0.1.0 → Install → Enable now (no reload or restart needed). It notes the plugin has no build step, so pnpm does not ask you to allow one, and its only peer dependency comes from dsh itself, so the peer warning pnpm prints is expected.

Compatibility

The README requires dsh web (tested on 0.2.0-rc.2 and 0.2.1-alpha.1; the desktop app is not supported), pnpm on your PATH (corepack enable pnpm or npm install -g pnpm), and a TrustedRouter provider added in Settings → Models → Add model provider → Custom model API with base URL https://api.trustedrouter.com/v1, the OpenAI Chat Completions protocol, your TrustedRouter API key and the models you want.

Details

FAQ

Why is a plugin needed at all?
The README explains TrustedRouter reads routing and privacy policy only from the request body, and dsh's model providers can add headers but not body fields, so without the plugin there is no way to ask for a privacy floor.
Does it work in the desktop app?
No — the README says it targets dsh web (tested on 0.2.0-rc.2 and 0.2.1-alpha.1) and the desktop app is not supported.

Alternatives

BruceLanLan/dsh-tier-router · wenzetan/dsh-llm-newapi · NOirBRight/dsh-llm-ollama

More plugins in Models & Providers

Browse more in Models & Providers

Guides for Models & Providers plugins