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. 适合需要强模型安全审计,或想通过单一凭证使用数十种模型的用户。

パッケージ
dsh-clawrouter
互換性
未検証
Harness ピア範囲
>=0.1.0-rc.6
Cordis ピア範囲
>=4.0.1
バージョン
0.12.0
ライセンス
MIT
最終更新
2026/09/05

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BlockRunAI/dsh-clawrouter

ドキュメント

README 全文を読む ↗

Configuration

blockrun-llm — the provider route:

KeyDefaultMeaning
providerblockrunharness route key to register
apiKeyEnvBLOCKRUN_API_KEYcredential reference holding the BlockRun account key (brk_live_…) — checked first
solanaWalletKeyEnvSOLANA_WALLET_KEYcredential reference holding the bs58 Solana secret key — checked before Base
walletKeyEnvBASE_CHAIN_WALLET_KEYcredential reference holding the EVM wallet key, used when neither of the above resolves
apiKeyUrlhttps://api.blockrun.aiaccount API root an API key authenticates against
solanaApiUrlhttps://sol.blockrun.ai/apix402 gateway root a Solana wallet pays
apiUrlhttps://blockrun.ai/apix402 gateway root a Base wallet pays
timeoutMs300000per-request timeout
auxiliaryModel(off)model for the harness's own maintenance calls — see below
requestFeeUsd0.002flat per-request fee on the Base wallet path, used by /spend — the quoted figure, see below
solanaRequestFeeUsd0.001the 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:

KeyDefaultMeaning
enabledfalsewhether the automatic gate intercepts tool calls
reviewerProviderblockrunprovider route carrying the reviewer
reviewerModelanthropic/claude-opus-5use a different, stronger model than the agent
timeoutMs30000how long one review may take
reviewerMaxTokens512output cap asked for per review, and billed whether or not it is used
onReviewerFailureaskask 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.