Itsme23476

Agentrouter Dsh Setup — Development skill for Claude Code

Development community

Personal kit: use AgentRouter models inside DeepSeek Harness via a local User-Agent proxy.

How to install Agentrouter Dsh Setup

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Itsme23476/agentrouter-dsh-setup and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentrouter Dsh Setup does

Personal kit: use AgentRouter models inside DeepSeek Harness via a local User-Agent proxy.

Alternatives in Development

  • IPolloWork — Enterprise-grade, local-first Agent Workbench for people and agent teams 4.9k ★
  • Magnitude — Open source inference server your agent sets up for you 1.5k ★
  • ModelLink — Local proxy for routing third-party API models through Claude Desktop 135 ★

README

AgentRouter × DeepSeek Harness (personal setup)

A small kit that lets [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) use models from an [AgentRouter](https://agentrouter.org) account — Claude Opus 5 / 4.8, DeepSeek V4 Flash, GLM, GPT — with your own API key.

**Private / personal use.** This is a backup of a working local setup. Read the caveat below before doing anything with it beyond your own machine.


What this actually does (read this)

DeepSeek Harness is open source and provider-agnostic — it will talk to any OpenAI-compatible endpoint. It does **not** block anything.

The catch is on **AgentRouter's** side: AgentRouter only accepts requests whose `User-Agent` is exactly `claude-cli/1.0.0 (external, cli)` (Claude Code's native UA). dsh sends its own `deepseek-harness/…` UA, which AgentRouter rejects with `401 unauthorized client detected`. dsh gives no way to change that header.

So this kit runs a **local proxy** (`proxy/proxy.mjs`) that sits in front of AgentRouter and rewrites the outbound `User-Agent` to the one AgentRouter expects (and injects your key). dsh points at the proxy instead of at AgentRouter directly.

**Caveat:** rewriting the User-Agent circumvents AgentRouter's client check. That check is something AgentRouter put there on purpose. This is fine for personal use of your own account and credits, but it may be against AgentRouter's terms, and if they enforce it your account/credits could be suspended. The clean long-term fix is for AgentRouter to allow dsh's client directly (then the proxy becomes unnecessary and you can point dsh straight at `https://agentrouter.org/v1`). Don't redistribute this expecting it to keep working.


Prerequisites

  • Node.js 22.19+ or 24+ (node -v)
  • DeepSeek Harness installed and built somewhere on your machine:
    git clone https://github.com/deepseek-ai/deepseek-harness.git
    cd deepseek-harness && corepack pnpm install && corepack pnpm run bu