| name | xclawrouter |
| description | Smart LLM router for OKX — agentic wallet, 66 models, x402 micropayments on Base + Solana. Routes every request to the cheapest capable model. 11 free NVIDIA models included. |
| triggers | ["xclawrouter","x claw router","@blockrun/xclawrouter","okx llm router","okx ai gateway","okx agentic wallet","onchainos","okx onchainos","okx x402","save on llm costs okx","cheapest model okx"] |
| homepage | https://github.com/BlockRunAI/XClawRouter |
| metadata | {"openclaw":{"emoji":"🦀","requires":{"config":["models.providers.blockrun"]}}} |
XClawRouter
Smart LLM router that saves 88% on inference costs by routing each request to the cheapest model that can handle it. 71 models across 9 providers (11 free NVIDIA models), all through one wallet.
Install
openclaw plugins install @blockrun/xclawrouter
Setup
openclaw models set blockrun/auto
openclaw models set openai/gpt-4o
How Routing Works
XClawRouter 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: the published figure is blended
across a stated workload mix, and a per-tier number invites comparison against a
baseline nobody wrote down.
Rules handle 80% of requests in <1ms. Only ambiguous queries hit the LLM classifier ($0.00003 per classification).
Available Models
71 models including: gpt-5.5, gpt-5.4, gpt-4o, o3, claude-opus-4.8, claude-opus-4.7, claude-sonnet-4.6, gemini-3.1-pro, gemini-3.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.3, grok-build-0.1, kimi-k2.6, kimi-k2.5, and free NVIDIA-hosted models (gpt-oss-120b [default], gpt-oss-20b, deepseek-v4-flash, qwen3-coder-480b, llama-4-maverick, nemotron-3-nano-omni-30b-a3b-reasoning [vision]).
Example Output
[XClawRouter] google/gemini-2.5-flash (SIMPLE, rules, confidence=0.92)
Cost: $0.0025 | Baseline: $0.308 | Saved: 99.2%