clawrouter
Acts as a gateway router to forward LLM prompts to the cheapest available model among 50+ supported providers.
Install
mkdir -p .claude/skills/clawrouter && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1158" && unzip -o skill.zip -d .claude/skills/clawrouter && rm skill.zipInstalls to .claude/skills/clawrouter
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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 capable model across 55+ models from OpenAI, Anthropic, Google, DeepSeek, xAI, NVIDIA, and more. 8 free NVIDIA models included. Also exposes realtime market data (global stocks, crypto, FX, commodities), Twitter/X intelligence, prediction-market data across Polymarket, Kalshi, Limitless, Opinion, Predict.Fun, dFlow + UMA oracle resolution + wallet identity & clustering, phone-number intelligence (carrier + SIM-swap fraud detection) plus AI-powered outbound voice calls (Twilio + Bland.ai), AND the Surf unified crypto data API (84 endpoints — CEX/DEX, on-chain SQL over 80+ ClickHouse tables, 100M+ labeled wallets, prediction markets, social/CT mindshare, news, VC fund intel) as built-in agent tools. Not a local-inference tool — prompts are sent to the blockrun.ai gateway.Key capabilities
- →Route LLM requests to the cheapest capable model
- →Access over 55 models from multiple providers
- →Pay for LLM inference using USDC micropayments
- →Utilize built-in agent tools for market data and crypto data
- →Perform AI-powered outbound voice calls
How it works
A local proxy forwards LLM requests to the blockrun.ai gateway, which selects the most cost-effective model from various providers and returns the response.
Inputs & outputs
When to use clawrouter
- →Reduce LLM inference costs
- →Switch between LLM providers
- →Access multiple model architectures
- →Implement cost-efficient AI routing
About this skill
ClawRouter
Hosted-gateway LLM router that saves <!-- br:savings.autoVsBaselinePct -->88<!-- /br:savings.autoVsBaselinePct -->% on inference costs by forwarding each request to the blockrun.ai gateway, which picks the cheapest model capable of handling it across <!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models from 9 providers (<!-- br:models.free -->5<!-- /br:models.free --> 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.jsonon Linux,~/Library/Application Support/openclaw/config.jsonon macOS,%APPDATA%\openclaw\config.jsonon Windows — under themodels.providers.blockrunpath. - Written by OpenClaw's standard config writer with
0600permissions 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/bip39to 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
- Every release is tagged on GitHub: https://github.com/BlockRunAI/ClawRouter/releases
- Every release publishes to npm with a matching version: https://www.npmjs.com/package/@blockrun/clawrouter?activeTab=versions
- The
skills/release/SKILL.mdmandatory checklist enforces: same version inpackage.json, matching git tag, matching GitHub release, and matching npm publish. - To verify locally:
npm pack @blockrun/clawrouter@<version>and compare the tarball contents to the tagged commit.
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 — factual lookups, greetings, translations → gemini-2.5-flash ($0.30/$2.50)
- MEDIUM — summaries, explanations, data extraction → kimi-k2.7 ($0.95/$4.00)
- COMPLEX — code generation, multi-step analysis → gemini-3.1-pro ($2/$12)
- REASONING — proofs, formal logic, multi-step math → grok-4-1-fast-reasoning ($0.20/$0.50)
Prices are per 1M input/output tokens, on the default auto profile. Per-tier
savings percentages are deliberately not quoted here: the published figure is
blended across a stated workload mix, and a per-tier number invites comparing
it against a baseline nobody wrote down. See
savings-mix.json.
Rules handle 80% of requests in <1ms. Only ambiguous queries hit the LLM classifier ($0.00003 per classification).
Available Models
<!-- br:models.chatVisible -->70<!-- /br:models.chatVisible --> models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.6-sol/terra/luna-pro [pro reasoning tiers], gpt-5.5, gpt-5.5-pro [max compute], chat-latest [ChatGPT Instant], gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-5 [Anthropic flagship, 1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-3.6-flash, gemini-3.5-flash-lite, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], qwen3.7-plus, qwen3.7-flash, hy3 [Tencent], mimo [Xiaomi MiMo-V2.5 Pro, 1M ctx], and 5 free NVIDIA models (nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).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 | | --------------------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Content truncated.
When not to use it
- →When local inference is required
- →When prompts cannot be sent to a third-party API provider
Prerequisites
Limitations
- →Prompts are sent to the blockrun.ai gateway
- →Requires an x402 USDC micropayment for billing
- →Not a local-inference tool
How it compares
ClawRouter automatically optimizes model selection for cost and handles USDC micropayments, unlike direct API calls to individual LLM providers that require separate billing and model management.
Compared to similar skills
clawrouter side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| clawrouter (this skill) | 4 | 27d | Review | Intermediate |
| openrouter-function-calling | 5 | 27d | Review | Intermediate |
| llm-service-integration | 0 | 6mo | No flags | Intermediate |
| mcp-builder | 0 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
openrouter-function-calling
jeremylongshore
Implement function/tool calling with OpenRouter models. Use when building agents or structured outputs. Trigger with phrases like 'openrouter functions', 'openrouter tools', 'openrouter agent', 'function calling'.
llm-service-integration
codename-co
Guide for integrating with LLM providers in the DEVS platform. Use this when asked to add LLM functionality, create AI-powered features, or work with the LLM service.
mcp-builder
UnderUndreGH
MCP (Model Context Protocol) server building principles. Tool design, resource patterns, best practices.
mcp-builder
anthropics
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
skill-creator
anthropics
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
openrouter
rawveg
OpenRouter API - Unified access to 400+ AI models through one API