ClawRouter
Hosted-gateway LLM router that saves 84% on inference costs by forwarding each request to the blockrun.ai gateway, which picks the cheapest model capable of handling it across 76 models from 9 providers (7 free open-weight models). All billing flows through one BlockRun credential — either a USDC wallet paying x402 per call, or a BlockRun API key drawing on card-funded account credit. Either way 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 a payment credential — an X-PAYMENT header containing a signed x402 USDC micropayment in wallet mode, or an Authorization: Bearer brk_live_… header in API-key mode.
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 |
Only in wallet mode |
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. Not used, read, or generated at all when a BlockRun API key is configured. |
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://sol.blockrun.ai/api (Solana, default chain for new installs) · https://blockrun.ai/api (Base, default for pre-existing installs). |
routing |
No |
Optional override of the router-core config (tier chains, strategy: "rules" rollback, shadow comparison, scorer keywords). |
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
Routing is done locally by @blockrun/router-core (Router Core V3.4, constraint-first), inlined into ClawRouter and pinned by commit. No network call, no second model — about a quarter of a millisecond per request.
- A 15-dimension weighted scorer classifies each request into one of four tiers, and a task classifier labels the shape of the work (chat, extraction, code_edit, code_agent, tool_agent, reasoning_math, long_context, vision, …).
- Models that cannot satisfy the request — no tool calling, no vision, too small a context window or max-output, incompatible structured output — are removed before anything is scored.
- Survivors are ranked on task quality, capability, estimated cost, speed and reliability; the full ranked list is kept as the fallback chain for timeouts and 5xx.
Curated primaries on the default auto profile:
- 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)
Turns that actually need their attached tools switch to agent-tuned tiers (gpt-4o-mini → kimi-k2.7 → claude-sonnet-4.6). eco opens on the free tier (nemotron-3.5-lightning); premium climbs to gpt-5.3-codex / claude-fable-5 / claude-sonnet-4.6. Full chains: docs/routing-profiles.md.
Prices are per 1M input/output tokens. 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.
Available Models
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 |
9 image models — GPT Image 1/2, Nano Banana / 2 / Pro, Seedream 5 Pro, Grok Imagine / Pro, 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) at 720p with synced audio (t2v default), 5–10s, + OpenAI Sora 2 via Azure (azure/sora-2, 4/8/12s, t2v + i2v, rejects human faces in reference images). Seedance is token-priced upstream (~20,256 tokens/sec at the 720p+audio default — 2× the prior 480p rate); image_url (image-to-video) costs the same as t2v since 2026-06-01. Seedance 2.0 variants accept optional real_face_asset_id (ta_…) for BytePlus RealFace character-consistency — mutually exclusive with image_url. |
$0.05/s (Grok); $0.10/s (Sora 2); Seedance ~$0.46–$1.49 per 5s clip |
Phone & Voice (Twilio + Bland.ai)
Verify phone numbers and place AI-powered outbound voice calls. Real-world side effects — only call blockrun_voice_call when the user has explicitly asked to place a call. Server enforces an emergency-number blocklist; ClawRouter does not.
| Tool |
Purpose |
Price |
blockrun_phone_lookup |
Carrier + line type (mobile/landline/voip) for any E.164 number |
$0.01 |
blockrun_phone_lookup_fraud |
SIM-swap + call-forwarding fraud signals (use before SMS-code flows) |
$0.05 |
blockrun_phone_numbers_buy |
Provision a US/CA number bound to this wallet (30-day lease) |
$5.00 |
blockrun_phone_numbers_renew |
Extend a wallet-owned number's lease 30 days |
$5.00 |
blockrun_phone_numbers_list |
List numbers the wallet currently owns + expiry timestamps |
$0.001 |
blockrun_phone_numbers_release |
Release a wallet-owned number back to the pool |
free |
blockrun_voice_call |
AI outbound call via Bland.ai — up to 30 min, transcript + recording |
$0.54 flat |
blockrun_voice_status |
Poll a call's status / transcript / recording |
free |
Voice calls are fire-and-forget: the POST returns a call_id + poll_url immediately, the call itself runs in the cloud for up to 30 minutes. Poll blockrun_voice_status every 10–30s while in_progress to retrieve the transcript. Slash command: /cr-call +1<E.164> "<task>" [--voice nat] [--max-duration 5]. CLI: clawrouter phone numbers list/buy/renew/release and clawrouter phone lookup/fraud <+E.164>. See the phone skill for the full call-flow reference.
Prediction Markets (Predexon)
Full prediction-market toolbox spanning Polymarket, Kalshi, Limitless, Opinion, Predict.Fun, dFlow + Binance for crypto candles. 57 endpoints (Predexon v2) exposed as 9 agent tools (8 named ergonomic wrappers + 1 catch-all):
- Markets & trading — events, markets list per venue, cross-venue search (
markets/search), orderbooks, candlesticks (per-market and per-token), trades, positions, volume charts.
- Leaderboard & smart money — global + per-market leaderboards, smart-money positioning, top holders, smart-activity feed.
- Wallet analytics — full wallet profile, P&L time series, per-market breakdown, similar-wallet discovery, batch profiles, AND/OR filters.
- UMA oracle + wallet identity — UMA optimistic-oracle resolution status (
uma/markets, uma/market/{conditionId}); wallet identity labels (ENS / Lens / exchange / risk tags), bulk identity, on-chain cluster discovery.
| Tool |
Coverage |
Price |
blockrun_predexon_events |
Live Polymarket events with current odds |
$0.001 / call |
blockrun_predexon_markets |
Search Polymarket markets by keyword |
$0.001 / call |
blockrun_predexon_leaderboard |
Top Polymarket traders ranked by profit |
$0.001 / call |
blockrun_predexon_smart_money |
Smart-money positions on a specific market |
$0.005 / call |
blockrun_predexon_smart_activity |
Markets where smart money is currently active |
$0.005 / call |
blockrun_predexon_wallet |
Polymarket wallet profile (PnL, winrate, positions) |
$0.005 / call |
blockrun_predexon_wallet_pnl |
Wallet P&L time series |
$0.005 / call |
blockrun_predexon_matching_markets |
Polymarket ↔ Kalshi market pairs (arb compare) |
$0.005 / call |
blockrun_predexon_endpoint_call |
Catch-all for the remaining 49 endpoints — orderbooks, candlesticks, top-holders, UMA oracle, wallet identity/cluster, Kalshi/Limitless/Opinion/Predict.Fun, dFlow, Binance Futures, cross-venue search, sports, canonical markets. Takes path + optional method/query/body. |
$0.001 / $0.005 / call |
Pricing: $0.001 per market-data call, $0.005 per analytics / search / wallet call. See the predexon skill for the full endpoint reference.
Prediction-Market Trading (Polymarket) — REAL MONEY
Beyond reading odds, ClawRouter can place, manage, and redeem real bets on
Polymarket (CLOB V2, Polygon) via the blockrun_polymarket tool. Unlike every
other tool here it is not an HTTP-proxy wrapper — it runs a local trading
engine that signs CLOB orders (EIP-712) with the SAME ClawRouter wallet that
pays for LLM calls, and posts them to Polymarket (through BlockRun's Tokyo
egress by default, so it works out of the box in geoblocked regions).
| Tool |
What it does |
Cost |
blockrun_polymarket |
action: setup / fund / buy / sell / cancel / orders / positions / redeem / withdraw. One multiplexed tool. |
Free tool; bets spend pUSD |
- Funds: bets spend pUSD in a gasless Polygon deposit-wallet vault
derived from your key;
action:"fund" moves your Base USDC → pUSD gaslessly
(x402, $0.01 fee, non-custodial). Winnings withdraw back to native USDC on Base.
- Safety:
confirm:true is hard-required to place/sign anything (omit →
dry-run preview); per-order cap POLYMARKET_MAX_BET_USD (default $25) + optional
POLYMARKET_MAX_SESSION_USD. Bets do NOT draw from the x402 API budget.
- Zero config: no Polymarket account, API keys, or gas token — first
setup
bootstraps everything from your wallet. Discover token IDs with the
blockrun_predexon_* data tools first. See the polymarket-trading skill
for the golden rules and end-to-end flow.
Crypto Data (Surf) — skill-only integration
Surf is a unified crypto data API with 84 endpoints across 13 domains: CEX/DEX markets, on-chain SQL over 80+ ClickHouse tables (Ethereum, Base, Arbitrum, BSC, TRON, HyperEVM, Tempo), 100M+ labeled wallets, prediction markets (Polymarket + Kalshi), social/CT mindshare, news, project/DeFi metrics, token analytics, unified search, VC fund intelligence. The killer feature is POST /surf/onchain/sql — ad-hoc SELECT against the warehouse, no indexer required.
ClawRouter ships Surf as a skill, not as typed wrappers. The base proxy whitelists /v1/surf/* so any call through http://127.0.0.1:8402/v1/surf/... flows through the same x402 wallet that pays for LLM calls. The endpoint catalog, parameter shapes, and example flows live in the dedicated surf skill — Claude Code (or any agent) reads that skill on demand and crafts the HTTP call itself. No blockrun_surf_* tool definitions to maintain, no release of ClawRouter when Surf adds endpoint #85.
Pricing tiers (per call, settled in USDC directly to Surf's Base treasury): $0.001 prices/rankings/lists/news · $0.005 orderbooks/candles/search/wallet details/social · $0.02 on-chain SQL/query/schema, chat completions. No monthly minimums, no Surf account, no API key. See the surf skill for the full endpoint reference.
This is the pattern for new BlockRun-marketplace APIs going forward: base proxy whitelists the namespace, a dedicated skill documents the surface — no hand-coded tool wrappers per endpoint.
Example Output
[ClawRouter] google/gemini-2.5-flash (SIMPLE, rules, confidence=0.92)
Cost: $0.0025 | Baseline: $0.308 | Saved: 99.2%
1---2name: clawrouter3description: Hosted-gateway LLM router — save 84% on inference costs. A local proxy that forwards each request to the blockrun.ai gateway, which routes to the cheapest capable model across 76 models from OpenAI, Anthropic, Google, DeepSeek, xAI, Z.AI, and more. 7 free open-weight 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.4license: MIT5---6
7# ClawRouter
8
9Hosted-gateway LLM router that saves <!-- br:savings.autoVsBaselinePct -->84<!-- /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 -->76<!-- /br:models.chatVisible --> models from 9 providers (<!-- br:models.free -->7<!-- /br:models.free --> free open-weight models). All billing flows through one BlockRun credential — either a USDC wallet paying x402 per call, or a BlockRun API key drawing on card-funded account credit. Either way you do not hold provider API keys.
10
11**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.
12
13Source: https://github.com/BlockRunAI/ClawRouter · npm: https://www.npmjs.com/package/@blockrun/clawrouter · License: MIT.
14
15## Data Flow
16
17```
18Your app → localhost proxy (ClawRouter) → https://blockrun.ai/api (or sol.blockrun.ai/api)
19 ↓
20 OpenAI / Anthropic / Google / etc.
21 ↓
22 Response → back through proxy → your app
23```
24
25**Sent to blockrun.ai on every request:** the model name, the full prompt/messages body, sampling params (temperature, max_tokens, tools, etc.), and a payment credential — an `X-PAYMENT` header containing a signed x402 USDC micropayment in wallet mode, or an `Authorization: Bearer brk_live_…` header in API-key mode.
26
27**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.
28
29**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.
30
31## Credentials & Local Key Storage
32
33ClawRouter 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.
34
35**What `models.providers.blockrun` stores (fully enumerated):**
36
37| Field | Sensitive | Purpose |
38| ----------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
39| `walletKey` | Only in wallet mode | 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. Not used, read, or generated at all when a BlockRun API key is configured. |
40| `solanaKey` | Yes | Solana keypair (BIP-44 `m/44'/501'/0'/0'`). Auto-derived from the same local mnemonic via `@scure/bip32` + `@scure/bip39`. |
41| `gateway` | No | Gateway URL. Defaults: `https://sol.blockrun.ai/api` (Solana, default chain for new installs) · `https://blockrun.ai/api` (Base, default for pre-existing installs). |
42| `routing` | No | Optional override of the router-core config (tier chains, `strategy: "rules"` rollback, `shadow` comparison, scorer keywords). |
43
44**How and where keys are stored:**
45
46- 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.
47- Written by OpenClaw's standard config writer with `0600` permissions on POSIX systems (owner read/write only).
48- **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.
49- Auto-generation uses `@scure/bip39` to produce a 24-word mnemonic, then BIP-44 derivation for both chains. Source: [`src/wallet.ts`](https://github.com/BlockRunAI/ClawRouter/blob/main/src/wallet.ts).
50
51**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.
52
53## Supply-Chain Integrity
54
55- Every release is tagged on GitHub: https://github.com/BlockRunAI/ClawRouter/releases
56- Every release publishes to npm with a matching version: https://www.npmjs.com/package/@blockrun/clawrouter?activeTab=versions
57- The `skills/release/SKILL.md` mandatory checklist enforces: same version in `package.json`, matching git tag, matching GitHub release, and matching npm publish.
58- To verify locally: `npm pack @blockrun/clawrouter@<version>` and compare the tarball contents to the tagged commit.
59
60## Install
61
62```bash
63openclaw plugins install @blockrun/clawrouter
64```
65
66The 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.
67
68## Setup
69
70```bash
71# Enable smart routing (auto-picks cheapest model per request)
72openclaw models set blockrun/auto
73
74# Or pin a specific model
75openclaw models set openai/gpt-4o
76```
77
78## How Routing Works
79
80Routing is done locally by [`@blockrun/router-core`](https://github.com/BlockRunAI/router-core) (Router Core V3.4, constraint-first), inlined into ClawRouter and pinned by commit. No network call, no second model — about a quarter of a millisecond per request.
81
821. A 15-dimension weighted scorer classifies each request into one of four tiers, and a task classifier labels the shape of the work (chat, extraction, code_edit, code_agent, tool_agent, reasoning_math, long_context, vision, …).
832. Models that cannot satisfy the request — no tool calling, no vision, too small a context window or max-output, incompatible structured output — are removed before anything is scored.
843. Survivors are ranked on task quality, capability, estimated cost, speed and reliability; the full ranked list is kept as the fallback chain for timeouts and 5xx.
85
86Curated primaries on the default `auto` profile:
87
88- **SIMPLE** — factual lookups, greetings, translations → gemini-2.5-flash ($0.30/$2.50)
89- **MEDIUM** — summaries, explanations, data extraction → kimi-k2.7 ($0.95/$4.00)
90- **COMPLEX** — code generation, multi-step analysis → gemini-3.1-pro ($2/$12)
91- **REASONING** — proofs, formal logic, multi-step math → grok-4-1-fast-reasoning ($0.20/$0.50)
92
93Turns that actually need their attached tools switch to agent-tuned tiers (gpt-4o-mini → kimi-k2.7 → claude-sonnet-4.6). `eco` opens on the free tier (nemotron-3.5-lightning); `premium` climbs to gpt-5.3-codex / claude-fable-5 / claude-sonnet-4.6. Full chains: [docs/routing-profiles.md](../../docs/routing-profiles.md).
94
95Prices are per 1M input/output tokens. Per-tier
96savings percentages are deliberately not quoted here: the published figure is
97blended across a stated workload mix, and a per-tier number invites comparing
98it against a baseline nobody wrote down. See
99[savings-mix.json](https://github.com/BlockRunAI/blockrun/blob/main/src/brand/savings-mix.json).
100
101## Available Models
102
103<!-- br:models.chatVisible -->76<!-- /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, glm-5.3 [Z.AI flagship, 1M ctx], glm-5.3-flash [natively multimodal, 1M ctx — $0.15/$0.50], glm-5.2, minimax-m3, 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 7 free open-weight models (nemotron-3.5-lightning [1M ctx, thinking mode — the free default], nemotron-3-nano-30b [fastest, ~121 tok/s], nemotron-3-ultra-550b [550B/55B MoE, 1M ctx — the largest free model], nemotron-3-nano-omni-30b-a3b-reasoning [256K ctx], llama-3.2-11b-vision [Meta Llama], north-mini-code [Cohere, coding, sub-second], laguna-xs-2.1 [Poolside, coding, ~161 tok/s]). The free tier is text-only — image turns route to a paid vision model, because the two free models the catalogs advertise as vision-capable fail a solid-colour probe on both chains and do so with an HTTP 200.
104
105## Built-in Agent Tools
106
107In 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.
108
109### Market Data
110
111Realtime prices and historical OHLC across every asset class. The agent should call these directly instead of scraping finance sites.
112
113| Tool | Coverage | Price |
114| -------------------------- | ------------------------------------------------------------------------------- | ------------- |
115| `blockrun_stock_price` | 12 global markets: US (NYSE/Nasdaq), HK, JP, KR, UK, DE, FR, NL, IE, LU, CN, CA | $0.001 / call |
116| `blockrun_stock_history` | OHLC bars at 1/5/15/60/240-min or D/W/M resolution | $0.001 / call |
117| `blockrun_stock_list` | Ticker lookup / company-name search per market | Free |
118| `blockrun_crypto_price` | BTC-USD, ETH-USD, SOL-USD, and more | Free |
119| `blockrun_fx_price` | EUR-USD, GBP-USD, JPY-USD, and more | Free |
120| `blockrun_commodity_price` | XAU-USD (gold), XAG-USD (silver), XPT-USD (platinum) | Free |
121
122### Image & Video Generation
123
124| Tool | Purpose | Price |
125| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
126| `blockrun_image_generation` | 9 image models — GPT Image 1/2, Nano Banana / 2 / Pro, Seedream 5 Pro, Grok Imagine / Pro, CogView-4 | $0.015–$0.15 / image |
127| `blockrun_image_edit` | Edit / inpaint existing image (openai/gpt-image-1) | $0.02–$0.04 / image |
128| `blockrun_video_generation` | Grok Imagine + ByteDance Seedance (1.5-pro / 2.0-fast / 2.0) at 720p with synced audio (t2v default), 5–10s, + OpenAI Sora 2 via Azure (`azure/sora-2`, 4/8/12s, t2v + i2v, rejects human faces in reference images). Seedance is token-priced upstream (~20,256 tokens/sec at the 720p+audio default — 2× the prior 480p rate); `image_url` (image-to-video) costs the same as t2v since 2026-06-01. Seedance 2.0 variants accept optional `real_face_asset_id` (`ta_…`) for BytePlus RealFace character-consistency — mutually exclusive with `image_url`. | $0.05/s (Grok); $0.10/s (Sora 2); Seedance ~$0.46–$1.49 per 5s clip |
129
130### Phone & Voice (Twilio + Bland.ai)
131
132Verify phone numbers and place AI-powered outbound voice calls. **Real-world side effects** — only call `blockrun_voice_call` when the user has explicitly asked to place a call. Server enforces an emergency-number blocklist; ClawRouter does not.
133
134| Tool | Purpose | Price |
135| -------------------------------- | -------------------------------------------------------------------- | ---------- |
136| `blockrun_phone_lookup` | Carrier + line type (mobile/landline/voip) for any E.164 number | $0.01 |
137| `blockrun_phone_lookup_fraud` | SIM-swap + call-forwarding fraud signals (use before SMS-code flows) | $0.05 |
138| `blockrun_phone_numbers_buy` | Provision a US/CA number bound to this wallet (30-day lease) | $5.00 |
139| `blockrun_phone_numbers_renew` | Extend a wallet-owned number's lease 30 days | $5.00 |
140| `blockrun_phone_numbers_list` | List numbers the wallet currently owns + expiry timestamps | $0.001 |
141| `blockrun_phone_numbers_release` | Release a wallet-owned number back to the pool | free |
142| `blockrun_voice_call` | AI outbound call via Bland.ai — up to 30 min, transcript + recording | $0.54 flat |
143| `blockrun_voice_status` | Poll a call's status / transcript / recording | free |
144
145Voice calls are **fire-and-forget**: the POST returns a `call_id` + `poll_url` immediately, the call itself runs in the cloud for up to 30 minutes. Poll `blockrun_voice_status` every 10–30s while in_progress to retrieve the transcript. Slash command: `/cr-call +1<E.164> "<task>" [--voice nat] [--max-duration 5]`. CLI: `clawrouter phone numbers list/buy/renew/release` and `clawrouter phone lookup/fraud <+E.164>`. See the `phone` skill for the full call-flow reference.
146
147### Prediction Markets (Predexon)
148
149Full prediction-market toolbox spanning **Polymarket, Kalshi, Limitless, Opinion, Predict.Fun, dFlow** + Binance for crypto candles. **57 endpoints (Predexon v2) exposed as 9 agent tools** (8 named ergonomic wrappers + 1 catch-all):
150
151- **Markets & trading** — events, markets list per venue, cross-venue search (`markets/search`), orderbooks, candlesticks (per-market and per-token), trades, positions, volume charts.
152- **Leaderboard & smart money** — global + per-market leaderboards, smart-money positioning, top holders, smart-activity feed.
153- **Wallet analytics** — full wallet profile, P&L time series, per-market breakdown, similar-wallet discovery, batch profiles, AND/OR filters.
154- **UMA oracle + wallet identity** — UMA optimistic-oracle resolution status (`uma/markets`, `uma/market/{conditionId}`); wallet identity labels (ENS / Lens / exchange / risk tags), bulk identity, on-chain cluster discovery.
155
156| Tool | Coverage | Price |
157| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------- |
158| `blockrun_predexon_events` | Live Polymarket events with current odds | $0.001 / call |
159| `blockrun_predexon_markets` | Search Polymarket markets by keyword | $0.001 / call |
160| `blockrun_predexon_leaderboard` | Top Polymarket traders ranked by profit | $0.001 / call |
161| `blockrun_predexon_smart_money` | Smart-money positions on a specific market | $0.005 / call |
162| `blockrun_predexon_smart_activity` | Markets where smart money is currently active | $0.005 / call |
163| `blockrun_predexon_wallet` | Polymarket wallet profile (PnL, winrate, positions) | $0.005 / call |
164| `blockrun_predexon_wallet_pnl` | Wallet P&L time series | $0.005 / call |
165| `blockrun_predexon_matching_markets` | Polymarket ↔ Kalshi market pairs (arb compare) | $0.005 / call |
166| `blockrun_predexon_endpoint_call` | Catch-all for the remaining 49 endpoints — orderbooks, candlesticks, top-holders, UMA oracle, wallet identity/cluster, Kalshi/Limitless/Opinion/Predict.Fun, dFlow, Binance Futures, cross-venue search, sports, canonical markets. Takes `path` + optional `method`/`query`/`body`. | $0.001 / $0.005 / call |
167
168Pricing: `$0.001` per market-data call, `$0.005` per analytics / search / wallet call. See the `predexon` skill for the full endpoint reference.
169
170### Prediction-Market Trading (Polymarket) — REAL MONEY
171
172Beyond reading odds, ClawRouter can **place, manage, and redeem real bets** on
173Polymarket (CLOB V2, Polygon) via the `blockrun_polymarket` tool. Unlike every
174other tool here it is **not** an HTTP-proxy wrapper — it runs a local trading
175engine that signs CLOB orders (EIP-712) with the SAME ClawRouter wallet that
176pays for LLM calls, and posts them to Polymarket (through BlockRun's Tokyo
177egress by default, so it works out of the box in geoblocked regions).
178
179| Tool | What it does | Cost |
180| --------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------- |
181| `blockrun_polymarket` | `action:` setup / fund / buy / sell / cancel / orders / positions / redeem / withdraw. One multiplexed tool. | Free tool; bets spend pUSD |
182
183- **Funds**: bets spend **pUSD** in a gasless Polygon deposit-wallet vault
184 derived from your key; `action:"fund"` moves your **Base USDC → pUSD** gaslessly
185 (x402, $0.01 fee, non-custodial). Winnings `withdraw` back to native USDC on Base.
186- **Safety**: `confirm:true` is **hard-required** to place/sign anything (omit →
187 dry-run preview); per-order cap `POLYMARKET_MAX_BET_USD` (default $25) + optional
188 `POLYMARKET_MAX_SESSION_USD`. Bets do NOT draw from the x402 API budget.
189- **Zero config**: no Polymarket account, API keys, or gas token — first `setup`
190 bootstraps everything from your wallet. Discover token IDs with the
191 `blockrun_predexon_*` data tools first. See the **`polymarket-trading` skill**
192 for the golden rules and end-to-end flow.
193
194### Crypto Data (Surf) — skill-only integration
195
196Surf is a unified crypto data API with **84 endpoints across 13 domains**: CEX/DEX markets, on-chain SQL over 80+ ClickHouse tables (Ethereum, Base, Arbitrum, BSC, TRON, HyperEVM, Tempo), 100M+ labeled wallets, prediction markets (Polymarket + Kalshi), social/CT mindshare, news, project/DeFi metrics, token analytics, unified search, VC fund intelligence. The killer feature is `POST /surf/onchain/sql` — ad-hoc SELECT against the warehouse, no indexer required.
197
198**ClawRouter ships Surf as a skill, not as typed wrappers.** The base proxy whitelists `/v1/surf/*` so any call through `http://127.0.0.1:8402/v1/surf/...` flows through the same x402 wallet that pays for LLM calls. The endpoint catalog, parameter shapes, and example flows live in the dedicated **`surf` skill** — Claude Code (or any agent) reads that skill on demand and crafts the HTTP call itself. No `blockrun_surf_*` tool definitions to maintain, no release of ClawRouter when Surf adds endpoint #85.
199
200Pricing tiers (per call, settled in USDC directly to Surf's Base treasury): **$0.001** prices/rankings/lists/news · **$0.005** orderbooks/candles/search/wallet details/social · **$0.02** on-chain SQL/query/schema, chat completions. No monthly minimums, no Surf account, no API key. See the `surf` skill for the full endpoint reference.
201
202This is the pattern for new BlockRun-marketplace APIs going forward: base proxy whitelists the namespace, a dedicated skill documents the surface — no hand-coded tool wrappers per endpoint.
203
204## Example Output
205
206```
207[ClawRouter] google/gemini-2.5-flash (SIMPLE, rules, confidence=0.92)
208 Cost: $0.0025 | Baseline: $0.308 | Saved: 99.2%
209```