BlockRunAI/dsh-clawrouter ↗★ 20
dsh-clawrouter
A second brain for your DeepSeek Harness agent — strong-model review before risky tool calls, plus 75 models from one credential: a BlockRun API key, or a wallet paying per call over x402. 适合需要强模型安全审计,或想通过单一凭证使用数十种模型的用户。
Other repositories with this package name
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BlockRunAI/dsh-clawrouterREADME
Read the full README ↗Configuration
blockrun-llm — the provider route:
| Key | Default | Meaning |
|---|---|---|
provider | blockrun | harness route key to register |
apiKeyEnv | BLOCKRUN_API_KEY | credential reference holding the BlockRun account key (brk_live_…) — checked first |
solanaWalletKeyEnv | SOLANA_WALLET_KEY | credential reference holding the bs58 Solana secret key — checked before Base |
walletKeyEnv | BASE_CHAIN_WALLET_KEY | credential reference holding the EVM wallet key, used when neither of the above resolves |
apiKeyUrl | https://api.blockrun.ai | account API root an API key authenticates against |
solanaApiUrl | https://sol.blockrun.ai/api | x402 gateway root a Solana wallet pays |
apiUrl | https://blockrun.ai/api | x402 gateway root a Base wallet pays |
timeoutMs | 300000 | per-request timeout |
auxiliaryModel | (off) | model for the harness's own maintenance calls — see below |
requestFeeUsd | 0.002 | flat per-request fee on the Base wallet path, used by /spend — the quoted figure, see below |
solanaRequestFeeUsd | 0.001 | the same figure for the Solana wallet path, which the gateway quotes differently. An API key is billed per token instead and ignores both. |
Cutting compaction cost
The harness compacts long sessions by summarizing them — and it does that on whatever model the conversation is using. On a flagship model that means paying flagship input rates to summarize, repeatedly, for the whole session.
A ~100K-token compaction runs about $0.90 on Claude Opus 5 and about $0.026 on DeepSeek V4 Flash — read from live 402 quotes at that size, consistent with the table above. Summarizing is a job a cheap model does well, and those calls share no prefix with your conversation — so moving them forfeits no prompt-cache hit:
- id: blockrun-llm
config:
auxiliaryModel: deepseek/deepseek-chat
Off by default, and it only ever affects calls the harness itself marks as maintenance (compaction, session titles). A conversation request is never redirected.
blockrun-review — the gate:
| Key | Default | Meaning |
|---|---|---|
enabled | false | whether the automatic gate intercepts tool calls |
reviewerProvider | blockrun | provider route carrying the reviewer |
reviewerModel | anthropic/claude-opus-5 | use a different, stronger model than the agent |
timeoutMs | 30000 | how long one review may take |
reviewerMaxTokens | 512 | output cap asked for per review, and billed whether or not it is used |
onReviewerFailure | ask | ask escalates to you; deny blocks (unattended runs) |
extraRules | [] | additional {name, pattern, tools} risk rules |
Mounting the route does not change your default model. dsh-base keeps deepseek-official; this route is used only where you ask for it.