← 返回 Skills 市场
1bcmax

Clawrouter

作者 1bcMax · GitHub ↗ · v0.12.169 · MIT-0
cross-platform ⚠ suspicious
3061
总下载
11
收藏
22
当前安装
24
版本数
在 OpenClaw 中安装
/install clawrouter
功能描述
Hosted-gateway LLM router — save 67% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest ca...
使用说明 (SKILL.md)

ClawRouter

Hosted-gateway LLM router that saves 67% on inference costs by forwarding each request to the blockrun.ai gateway, which picks the cheapest model capable of handling it across 55+ models from 9 providers (8 free NVIDIA models). All billing flows through one USDC wallet; you do not hold provider API keys.

This is not a local-inference tool. ClawRouter is a thin local proxy. Your prompts are sent over HTTPS to the blockrun.ai gateway for model execution. If your workload requires inference that never leaves your machine, use a local runtime like Ollama — ClawRouter is not the right tool for that use case.

Source: https://github.com/BlockRunAI/ClawRouter · npm: https://www.npmjs.com/package/@blockrun/clawrouter · License: MIT.

Data Flow

Your app → localhost proxy (ClawRouter) → https://blockrun.ai/api  (or sol.blockrun.ai/api)
                                              ↓
                                        OpenAI / Anthropic / Google / etc.
                                              ↓
                                        Response → back through proxy → your app

Sent to blockrun.ai on every request: the model name, the full prompt/messages body, sampling params (temperature, max_tokens, tools, etc.), and an X-PAYMENT header containing a signed x402 USDC micropayment.

Not sent: your wallet private key (only the detached payment signature is sent), any other local files, environment variables, or OpenClaw config beyond what's needed for this request.

Blockrun's privacy stance: https://blockrun.ai/privacy. Treat prompts the same way you'd treat prompts sent to any hosted LLM API (OpenAI, Anthropic, etc.) — do not send data you would not share with a third-party API provider.

Credentials & Local Key Storage

ClawRouter does not collect or forward third-party provider API keys. You do not supply OpenAI, Anthropic, Google, DeepSeek, xAI, or NVIDIA credentials — the blockrun.ai gateway owns those relationships.

What models.providers.blockrun stores (fully enumerated):

Field Sensitive Purpose
walletKey Yes EVM private key used to sign USDC micropayments via x402. Auto-generated locally on first run — no user input required. Never transmitted over the network; only detached payment signatures are sent.
solanaKey Yes Solana keypair (BIP-44 m/44'/501'/0'/0'). Auto-derived from the same local mnemonic via @scure/bip32 + @scure/bip39.
gateway No Gateway URL. Defaults: https://blockrun.ai/api (Base) · https://sol.blockrun.ai/api (Solana).
routing No Optional override of the default four-tier router.

How and where keys are stored:

  • Keys live in the OpenClaw user config file — typically ~/.config/openclaw/config.json on Linux, ~/Library/Application Support/openclaw/config.json on macOS, %APPDATA%\openclaw\config.json on Windows — under the models.providers.blockrun path.
  • Written by OpenClaw's standard config writer with 0600 permissions on POSIX systems (owner read/write only).
  • Stored in plaintext, the same way every OpenClaw provider's API key is stored. ClawRouter does not add an extra encryption layer; your filesystem permissions are the security boundary. If you require an encrypted keystore, run OpenClaw on an encrypted volume (FileVault, LUKS, BitLocker) or use a dedicated burner wallet funded only with what you intend to spend.
  • Auto-generation uses @scure/bip39 to produce a 24-word mnemonic, then BIP-44 derivation for both chains. Source: src/wallet.ts.

Operational guidance: treat the wallet as a spending account with a small top-up, not a long-term store of value. Fund it with what you expect to spend on LLM calls. If the host machine is compromised, the wallet key is compromised — rotate and refund.

Supply-Chain Integrity

Install

openclaw plugins install @blockrun/clawrouter

The structured install block above tells OpenClaw to install the auditable npm package @blockrun/clawrouter. Source for every version is on GitHub; every release is tagged.

Setup

# Enable smart routing (auto-picks cheapest model per request)
openclaw models set blockrun/auto

# Or pin a specific model
openclaw models set openai/gpt-4o

How Routing Works

ClawRouter classifies each request into one of four tiers:

  • SIMPLE (40% of traffic) — factual lookups, greetings, translations → Gemini Flash ($0.60/M, 99% savings)
  • MEDIUM (30%) — summaries, explanations, data extraction → DeepSeek Chat ($0.42/M, 99% savings)
  • COMPLEX (20%) — code generation, multi-step analysis → Claude Opus ($75/M, best quality)
  • REASONING (10%) — proofs, formal logic, multi-step math → o3 ($8/M, 89% savings)

Rules handle 80% of requests in \x3C1ms. Only ambiguous queries hit the LLM classifier ($0.00003 per classification).

Available Models

55+ models including: gpt-5.5, gpt-5.4, gpt-4o, o3, claude-opus-4.7, claude-opus-4.6, claude-opus-4.5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-chat, grok-3, kimi-k2.6, kimi-k2.5, and 8 free NVIDIA models (gpt-oss-120b, gpt-oss-20b, deepseek-v3.2, qwen3-coder-480b, glm-4.7, llama-4-maverick, qwen3-next-80b-a3b-thinking, mistral-small-4-119b).

Built-in Agent Tools

In addition to LLM routing, ClawRouter exposes BlockRun's x402-gated data APIs as ready-to-use OpenClaw tools. Every tool is paid from the same USDC wallet — no extra setup, no extra API keys.

Market Data

Realtime prices and historical OHLC across every asset class. The agent should call these directly instead of scraping finance sites.

Tool Coverage Price
blockrun_stock_price 12 global markets: US (NYSE/Nasdaq), HK, JP, KR, UK, DE, FR, NL, IE, LU, CN, CA $0.001 / call
blockrun_stock_history OHLC bars at 1/5/15/60/240-min or D/W/M resolution $0.001 / call
blockrun_stock_list Ticker lookup / company-name search per market Free
blockrun_crypto_price BTC-USD, ETH-USD, SOL-USD, and more Free
blockrun_fx_price EUR-USD, GBP-USD, JPY-USD, and more Free
blockrun_commodity_price XAU-USD (gold), XAG-USD (silver), XPT-USD (platinum) Free

Image & Video Generation

Tool Purpose Price
blockrun_image_generation 8 image models — DALL-E 3, Nano Banana / Pro, Flux, Grok Imagine, CogView-4 $0.015–$0.15 / image
blockrun_image_edit Edit / inpaint existing image (openai/gpt-image-1) $0.02–$0.04 / image
blockrun_video_generation Grok Imagine + ByteDance Seedance (1.5-pro / 2.0-fast / 2.0), 5–10s $0.03–$0.30 / second

Polymarket (Predexon)

Full prediction-market toolbox: live events, leaderboard, market search, smart money positioning, wallet analytics, and cross-market arbitrage matching (Polymarket ↔ Kalshi). 8 tools, $0.001–$0.005 per call. See blockrun_predexon_* in the tool list.

Example Output

[ClawRouter] google/gemini-2.5-flash (SIMPLE, rules, confidence=0.92)
             Cost: $0.0025 | Baseline: $0.308 | Saved: 99.2%
安全使用建议
What to consider before installing: - Privacy & prompts: ClawRouter sends the full prompt/messages and sampling params to blockrun.ai. Do not send secrets or data you cannot share with a third-party API. - Local keys: The skill auto-generates and stores an EVM private key and a Solana keypair in your OpenClaw config in plaintext (0600 on POSIX by default). This is necessary for the signed micropayments model but is sensitive — treat the wallet as a burner account and only fund it with what you intend to spend. - Disk encryption & permissions: If you need stronger protection, run on an encrypted volume (FileVault/LUKS/BitLocker) and verify config file permissions. Be prepared to rotate or revoke the wallet if the host is compromised. - Supply-chain hygiene: Inspect the npm package and the repository before installing. Verify the package name/version and GitHub release tags match what the SKILL.md claims, check package maintainers and recent activity, and prefer installs where you can verify integrity (signed releases, checksums). - Least privilege: Consider running the proxy in a constrained environment (container or VM) and restrict network access to only what you trust. If you require inference that never leaves your machine, use a local runtime instead. If you are uncomfortable with third-party handling of prompts or storing private keys on disk in plaintext, do not install this skill. If you proceed, use a small burner wallet, review the package code/release artifacts, and monitor the wallet for unexpected spending.
功能分析
Type: OpenClaw Skill Name: clawrouter Version: 0.12.169 The skill bundle (SKILL.md) describes a gateway service that manages EVM and Solana private keys in plaintext to facilitate USDC micropayments for LLM routing. It contains significant red flags, including the listing of numerous non-existent or future-dated models (e.g., 'gpt-5.5', 'claude-opus-4.7', 'llama-4-maverick') and a future-dated publication timestamp in _meta.json (April 2026). These elements, combined with the requirement for users to fund a locally generated wallet, suggest a high probability of deceptive marketing or a scam designed to solicit cryptocurrency deposits, warranting extreme caution despite the documentation's claims of transparency.
能力标签
cryptorequires-walletcan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description, required config path (models.providers.blockrun), and the npm install (@blockrun/clawrouter) line up with a hosted-gateway routing/payments proxy: the gateway needs a signing wallet and the proxy must forward prompts and params. Requiring a provider-specific config path is expected.
Instruction Scope
SKILL.md explicitly instructs generating/storing an EVM private key and Solana keypair in the OpenClaw config and sending full prompt/messages + sampling params and a detached X-PAYMENT signature to blockrun.ai. Forwarding full prompts and storing plaintext keys are high-sensitivity actions; while they are coherent for a paid hosted gateway, they materially expand the agent's data-sharing surface and persistence of secrets.
Install Mechanism
Install uses an npm package (@blockrun/clawrouter) which is a typical mechanism for this functionality but fetches and installs remote code (moderate supply-chain risk). The SKILL.md references GitHub releases and npm, which is reasonable; however the registry excerpt shows a minor mismatch in a truncated supply-chain link (possible typo). No direct downloads from arbitrary URLs are declared.
Credentials
No environment variables are requested, which is good, but the skill requires and will populate the models.providers.blockrun config with sensitive private keys (walletKey, solanaKey) stored plaintext in the OpenClaw config file. This is proportionate to the payment model but represents a significant sensitive credential being persisted on-disk in cleartext by default.
Persistence & Privilege
always:false and no system-wide modifications are declared (good). The skill will write keys into the user's OpenClaw config (persistent sensitive state) and installs a local CLI binary; these are expected for a local proxy but increase the attack surface if the host is compromised.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawrouter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawrouter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.12.169
Synthesize structured tool_calls from XML/text formats some models emit in content (OpenClaw <tool_call><arg_key> + Anthropic <function_calls><invoke>); extracts /model picker allowlist into top-models.json single source of truth; adds br-sonnet alias and repoints gpt5 to openai/gpt-5.5.
v0.12.168
Propagate openai/gpt-5.5 across routing fallback chains, /model picker, README pricing table, and SKILL model list
v0.12.167
Realign model registry with BlockRun source-of-truth: add openai/gpt-5.5 + anthropic/claude-opus-4.5; deprecate minimax/minimax-m2.5 → m2.7
v0.12.166
Harden tool-call planning suppression for finish_reason-only path (thanks @0xCheetah1, #162)
v0.12.165
Kimi tool-call planning suppression (thanks @0xCheetah1, #161) + OpenClaw plugin restart loop fix + dedup/response-cache isolation between streaming and non-streaming requests
v0.12.163
README rewrite — lead with the free tier. 8 NVIDIA models free forever, no wallet required, is now the hero message instead of a footnote. Hero tagline, Why list, comparison table, Quick Start, routing-profiles table, and Costs section all reworked. Code identical to v0.12.162.
v0.12.162
Wire ByteDance Seedance video models (1.5 Pro / 2.0 Fast / 2.0 Pro) into OpenClaw video UI and usage telemetry. Payment behavior unchanged — charges were always server-dictated. Fix: UI model picker now offers all 4 video models; usage logs show real per-second cost instead of $0.42 fallback; README lists full price table. Thanks @Bortlesboat (#160) for proxy port typo fix in free-models guide.
v0.12.161
De-Gemini the Anthropic-primary fallback chains: removed Gemini from premiumTiers.COMPLEX and agenticTiers.COMPLEX. When Anthropic 503s, Gemini 'high demand' 503s tend to correlate (everyone falls back to Google together). New fallback order: Anthropic in-family → xAI Grok → Moonshot Kimi → OpenAI flagship → DeepSeek → NVIDIA free.
v0.12.160
Free-tier catalog realigned with BlockRun server (13→8 NVIDIA free models): retired nemotron family, mistral-large-3-675b, devstral-2-123b; added qwen3-next-80b-a3b-thinking (fastest free reasoning) and mistral-small-4-119b (fastest free chat). Kimi K2.5 routing inverted: moonshot/kimi-k2.5 is now primary (NVIDIA-hosted variant retired server-side).
v0.12.159
Market data agent tools: blockrun_stock_price / blockrun_stock_history (12 global equity markets, $0.001 via x402), blockrun_stock_list / blockrun_crypto_price / blockrun_fx_price / blockrun_commodity_price (free). New Built-in Agent Tools section in SKILL.md lists market data + X intelligence + Polymarket alongside LLM routing.
v0.12.158
Data-flow diagram, per-OS key storage paths, supply-chain verification — addresses deeper-rescan scanner flags
v0.12.157
SKILL.md credential transparency — declare install artifact, wallet fields, and source repo to clear OpenClaw scanner verdict
v0.12.156
v0.12.156: GitHub org restored (source moved back to github.com/BlockRunAI/ClawRouter). Kimi K2.6 added — Moonshot flagship (256K ctx, vision + reasoning, $0.95/$4.00 per 1M); premium routing tier now uses K2.6 as SIMPLE primary with K2.5 retained for reliability.
v0.12.155
Sync BlockRun API: Grok 4.20 chat (hidden), Grok Imagine image+video (new /v1/videos/generations endpoint), CogView-4, qwen3-coder alias, thinking param passthrough verified
v0.12.154
Detect and retry degenerate-output repetition loops (Kimi k2.5 !!!!!! fix) + GLM-5.1 promo extended to 2026-05-01
v0.12.152
v0.12.151 + v0.12.152 catch-up release: - Stop bundling blockrun-mcp (fixes process leak): ClawRouter no longer auto-injects mcp.servers.blockrun into ~/.openclaw/openclaw.json. The npx -y @blockrun/mcp@latest spawns were leaking shell-wrapper + node grandchildren on user hosts. On register(), any previously managed blockrun MCP entry is stripped as a one-shot migration; user-defined entries are preserved. **Restart your gateway after upgrading** to free already-leaked processes. Opt in manually if wanted: openclaw mcp add blockrun npx -y @blockrun/mcp@latest. - Fix dead repository.url in package.json: source now lives at gitlab.com/blockrunai/ClawRouter (GitHub org banned 2026-04-15).
v0.12.150
Drop banned GitHub org from skill homepage, CLI help, update-nudge console message, and reinstall script. Canonical install entry is now blockrun.ai/clawrouter.md; scripts self-hosted at blockrun.ai/clawrouter-install.sh.
v0.12.149
Suppress remaining duplicate startup logs, explicit-pin skip free fallback, retry on 5xx
v0.12.148
v0.12.148: suppress duplicate registration logs — OpenClaw calls register() 4+ times per startup, now only the first call emits verbose info logs
v0.12.146
v0.12.146: emit usage.cost breakdown on every routed response. Every call now carries actual cost, baseline, savings %, resolved model, and tier in the standard OpenAI usage field. Feeds OpenClaw's /usage full footer and /stats reports automatically — no context pollution.
元数据
Slug clawrouter
版本 0.12.169
许可证 MIT-0
累计安装 24
当前安装数 22
历史版本数 24
常见问题

Clawrouter 是什么?

Hosted-gateway LLM router — save 67% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest ca... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3061 次。

如何安装 Clawrouter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawrouter」即可一键安装,无需额外配置。

Clawrouter 是免费的吗?

是的,Clawrouter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clawrouter 支持哪些平台?

Clawrouter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clawrouter?

由 1bcMax(@1bcmax)开发并维护,当前版本 v0.12.169。

💬 留言讨论