ClawRouter — The LLM router built for autonomous agents
A local smart router that lets AI agents use 71 LLMs without accounts or API keys, paying per request via x402 USDC micropayments.
- Source repo
- BlockRunAI/ClawRouter
- Stars
- ★ 6.7k
- Last updated
- 1d ago
- License
- MIT
- Primary language
- TypeScript
- FA score
- 53/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- AI coding agents running in OpenClaw that need access to multiple LLMs without registration or API keys, and want to cut costs.
- Not a fit if
- Teams unwilling to hold USDC or use a crypto wallet
- People who want to pick models manually instead of automatic routing
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-10latest release v0.12.312 (2026-11-10)+2.1 ★/day over 7 days
- Source review
- 53/100 · Major gaps
What does this agent do, and when should you use it?
ClawRouter is an open-source (MIT-licensed) smart LLM router designed for autonomous AI agents. It analyzes each request across 15 dimensions and routes to the cheapest capable model in under 1ms, entirely locally with no external API calls for routing decisions. Unlike human developers, agents cannot sign up for accounts or enter credit cards, so ClawRouter uses wallet signatures as authentication and USDC micropayments via the x402 protocol on Base and Solana. It offers 71 models from nine providers including OpenAI, Anthropic, Google, xAI, and DeepSeek, with six models completely free (NVIDIA-hosted). The tool is distributed as an npm package and can run as an OpenClaw plugin or a standalone local proxy on port 8402, compatible with any OpenAI-compatible client.
ClawRouter starts a local proxy (default port 8402) that intercepts OpenAI-compatible requests. It evaluates each request with a weighted scorer across 15 dimensions, decides the tier (simple, medium, complex, reasoning), and selects the optimal model. Users can choose routing profiles via /model auto, /model eco, /model premium, or /model free; the auto profile costs 88% less than pinning Claude Opus 5, and eco 98% less, based on a published workload mix. Payments are handled through x402: the proxy returns a 402 status with a price, the wallet signs, and the request is retried. Authentication is via a locally generated BIP-39 mnemonic deriving both EVM and Solana wallets. CLI commands include clawrouter setup (for OpenClaw integration), clawrouter doctor (AI diagnostics), and slash commands like /wallet, /exclude, and /stats. Additional features include image generation (/cr-imagegen), video generation (/videogen), image editing (/img2img), voice calls (/cr-call), and the Surf crypto data API.
- AI coding agents running in OpenClaw that need access to multiple LLMs without registration or API keys, and want to cut costs.
- Developers using OpenAI-compatible clients like continue.dev, Cursor, or VS Code who want automatic routing to the cheapest capable model instead of manual selection.
- Hobbyists and developers who want to use LLMs for free with zero balance, adding USDC later for paid models.
- Teams that handle a mix of simple and complex requests and want to avoid paying premium prices for trivial tasks.
- Users of Claude Code who want to avoid an Anthropic account and credit card, using the BRCC companion for the same routing and payment benefits.
- Agents that need to generate images, videos, or make AI voice calls directly from chat, all paid per request with USDC from the same wallet.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://blockrun.ai/ClawRouter-update | bashnpm install -g @blockrun/clawrouternpx @blockrun/clawrouternpx @blockrun/clawrouter doctor
How do you install or deploy this agent?
Installing ClawRouter requires Node.js and npm. For OpenClaw, use the recommended one-shot script: curl -fsSL https://blockrun.ai/ClawRouter-update | bash and restart the gateway with openclaw gateway restart. Alternatively, install via npm globally: npm install -g @blockrun/clawrouter, then run clawrouter setup — a required step to register the plugin with OpenClaw. For standalone use, run npx @blockrun/clawrouter to start the local proxy. No signup or API key is needed; a wallet is generated on first run.
How do you use this agent?
Once running, ClawRouter acts as a local proxy on port 8402. In OpenClaw, the default model is blockrun/auto; switch profiles with /model free, /eco, /premium, etc. For continue.dev or Cursor, set the API base URL to http://localhost:8402/v1/ (ensure trailing slash), API key to x402, and model to blockrun/auto. To use paid models, send USDC to your wallet address on Base or Solana; for free use, pick any free model like free/mistral-nemotron. Monitor balances with /wallet, exclude models with /exclude add <model>, and view usage with /stats. Diagnose issues with npx @blockrun/clawrouter doctor.
What are this agent's strengths and limitations?
- No accounts, API keys, or credit cards required: wallet signatures are authentication, and USDC micropayments via x402 are fully agent-friendly.
- Truly local smart routing: a 15-dimension scorer selects models in under 1ms with no external API calls, and the logic is open source.
- Significant cost savings: 88% cheaper than pinning Claude Opus 5 on auto, 98% on eco, with a reproducible methodology.
- Six free NVIDIA models with no balance or signup, making it possible to run at $0 forever.
- Works with any OpenAI-compatible client, including continue.dev, Cursor, and VS Code, and integrates as an OpenClaw plugin.
- Routing depends on BlockRun's model catalog and pricing, which is controlled upstream and might change.
- x402 payments require USDC on Base or Solana, introducing a cryptocurrency and network learning curve.
- Free models are NVIDIA-hosted, which may have latency or availability limitations in some regions.
- Standalone setup requires exact API base URL configuration (must end with
/v1/) to avoid 404 errors. - Advanced features like voice calls and image generation rely on third-party providers (Twilio, Bland.ai, BlockRun gateway), adding dependencies and complexity.
How does this agent compare with similar options?
OpenRouter: ClawRouter is open source, runs locally, and uses wallet authentication and USDC payments, whereas OpenRouter requires an account, API key, and credit card, and only offers manual model selection. LiteLLM: Both are open source and local, but ClawRouter adds smart routing, wallet auth, and USDC payments; LiteLLM requires you to bring your own API keys and choose models manually. Martian: Offers smart routing but is closed-source, requires account and API key, and has no free tier. Portkey: Provides a gateway with observability but relies on subscription fees and is not agent-native.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| ClawRouter — The LLM router built for autonomous agents This agent | 53 · Major gaps | CLIFree + model costs | ★ 6.7k | 1d ago | TypeScript | OpenAI API · Claude API |
| Plano | 55 · Major gaps | CLIFree + model costs | ★ 7.1k | 17d ago | Rust | OpenAI API · Claude API |
| MATE — Command Center for AI Agents | 72 · Some gaps | Self-hosted serviceFree + model costs | ★ 110 | 3d ago | Python | OpenAI API · Claude API |
| ClawMetry | 71 · Some gaps | CLIFreemium | ★ 437 | 4d ago | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The evidence shows API-key mode can skip wallet signing, keys are stored with mode 0600, and the docs disclose that prompts go to a hosted gateway; the Polymarket and phone materials also give explicit consent rules. Deductions: the default proxy still holds and uses a payment wallet, and the product includes real spending, trading, number leasing, and calling capabilities. The sampled code does not establish least privilege or confirmation gates for every tool; key and data protections are described but only partly evidenced. Dependencies are numerous and include pins and overrides, but the packet does not show ongoing vulnerability monitoring. README claims of no external dependencies conflict with the hosted-gateway flow, and publisher attribution remains partial because identity is unverified.
The docs cover health checks, fallback chains, unsupported-endpoint messages, diagnostics, and common errors; CI configuration lists build, test, lint, and typecheck steps. Deductions: the README describes routing as entirely local with zero external API calls, while the skill says inference requests go to BlockRun's gateway. The CI file notes unit tests were previously unwired and now lists them, but no run results are included. The materials offer no availability guarantees for the gateway, model providers, RPC, or chain services.
The materials provide setup paths for OpenClaw, autonomous agents, card-paying users, and standalone OpenAI-compatible clients, and identify local inference as an unsuitable use case. They also document differences in endpoint coverage between wallet and API-key modes. Deductions: skill triggers range from specific product names to broad phrases such as “AI phone call,” which may be imprecise; the README and skill differ in how they characterize the product as local routing versus a front end to a hosted gateway.
The packet includes a README, configuration and troubleshooting docs, a security policy, an MIT license, installation examples, and a versioned npm package. The security policy identifies reporting channels, response targets, and supported releases. Deductions: the sample contains no clear release changelog; version references and model counts vary across documentation, and the naming migration adds complexity. Maintenance responsibility is described through an email, GitHub channels, and support for only the latest npm release.
Routing configuration, client examples, troubleshooting steps, model selection, and payment options are concrete; capability filtering and fallback chains describe useful routing behavior. Deductions: savings, model-count, and latency claims are primarily repository assertions and cannot be independently verified from the sampled files. Hosted calls, payment settlement fees, and third-party services affect total cost, which the materials do not fully compare.
The README points to router-core, benchmarks, and published workload data; configuration and skill files also corroborate some authentication and data-flow details. Deductions: the packet omits the referenced core implementation, workload data, and gateway evidence, so key performance and savings claims cannot be recomputed from the supplied files. The README and skill conflict on what “local” means, and the boundary between documented facts, promotional claims, and inference is not always clear.
- Do not treat ClawRouter as a local-inference tool: the skill says full prompts are sent to BlockRun's hosted gateway, while the README's description of external calls conflicts with this.
- Wallet mode signs USDC payments; Polymarket, phone-number leasing, and outbound-call tools can create real financial or real-world effects. Check confirmation steps, fees, and applicable limits for each action.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
clawrouter update no longer puts your wallet key on a command line To print your wallet address, clawrouter update passed the private key into a node -e command (once while backing up the wallet, once in the closing summary). That put the key in the process's command line. On Linux, other local accounts can read command lines from /proc, and exec-auditing tools record them. - Fix: node now reads ~/.openclaw/blockrun/wallet.key directly, so the key never appears in a command line or in program text. The address and fallback messages are unchanged. …View on GitHub ↗ -
Release notes excerpt
Smart routing picks up the router-core audit (273c2af) Bumps @blockrun/router-core from fd6d03d to 273c2af. blockrun/auto, eco and premium now make the same decisions as @blockrun/llm 3.26.4 and blockrun-llm 1.21.6. - Chinese prompts: debug, refactor, extraction and proof requests in Chinese are no longer classified as plain chat. Japanese prompts no longer get the Mandarin extraction band. - Fewer false agent signals: a bare language name on a tool turn ("java coffee prices online") no longer goes to the code-agent pool. Tool-name verbs and …View on GitHub ↗ -
Release notes excerpt
/v1/messages streams, and a stalled response no longer looks like success If an upstream paused for more than 30 seconds during a /v1/messages response, the client got a 200 with an empty body and no error, on a call that may have been billed. The route also held back the whole stream until it ended. - Live streaming: stream: true on /v1/messages now delivers events as they're produced. - Longer pauses: the call fails only after 5 minutes with no data. - Honest failures: a read that fails breaks the connection, so a cut-off answer can't …View on GitHub ↗
FAQ
Is ClawRouter really free?
/model free to route across them.How do I fund my wallet for paid models?
Can I use ClawRouter without any cryptocurrency?
free/ model or use /model free. For paid models, you need USDC.Does ClawRouter work with my existing tools?
http://localhost:8402. It also integrates as an OpenClaw plugin, and BRCC serves Claude Code.What if something goes wrong?
npx @blockrun/clawrouter doctor for AI-powered diagnostics. You can also exclude problematic models with /exclude add <model>.Is ClawRouter — The LLM router built for autonomous agents open source?
Is ClawRouter — The LLM router built for autonomous agents safe to use?
Is ClawRouter — The LLM router built for autonomous agents still maintained?
Who makes ClawRouter — The LLM router built for autonomous agents?
Thanks — we use this to improve the page.