ClawRouter

by BlockRunAI

Agent-native LLM router for OpenClaw — routes to cheapest model in <1ms locally, 92% cost savings, 41+ models, USDC micropayments.

6.5k stars
548 forks
TypeScript
Mar 27, 2026 updated

Notable Features

  • <1ms local routing; 41+ models; 92% cost savings; x402 USDC micropayments; wallet signature auth; port 8402 proxy; 4,300 stars

About

ClawRouter (BlockRunAI/ClawRouter) is “the agent-native LLM router for OpenClaw,” routing requests to the cheapest capable model in under 1ms locally. Version v0.10.0 has approximately 4,300 stars.

It supports 41+ models and achieves up to 92% cost savings ($2.05/M tokens vs. $25/M). Unique features include USDC micropayments via the x402 protocol and wallet signature authentication. ClawRouter runs as a local proxy on port 8402 and integrates with OpenClaw, ElizaOS, and any OpenAI-compatible agent.

Licensed under MIT.

Frequently Asked Questions

How much money can ClawRouter save on LLM costs?

ClawRouter claims up to 92% cost savings by routing requests to the cheapest capable model. For example, it routes to models priced at $2.05/M tokens instead of $25/M tokens when the task doesn’t require a frontier model. For high-volume agentic workflows, this can translate to significant monthly savings — a team burning $1,000/month on Claude Sonnet could potentially reduce that to $80 with smart routing.

What is the x402 USDC micropayment protocol in ClawRouter?

x402 is a blockchain-based micropayment protocol that ClawRouter supports for pay-per-use model access. Instead of pre-paying for API credits, agents can pay for individual inferences using USDC stablecoin. This enables truly on-demand, per-token billing without subscription commitments — useful for low-volume or sporadic workloads where pre-purchasing credits is wasteful.

How does ClawRouter integrate with OpenClaw?

ClawRouter runs as a local proxy on port 8402 and presents an OpenAI-compatible API endpoint. You configure OpenClaw (or any OpenAI-compatible client) to point to http://localhost:8402 instead of the AI provider directly. ClawRouter then handles model selection, routing, and billing transparently. No code changes required in your OpenClaw skills.

Which models does ClawRouter support?

ClawRouter v0.10.0 supports 41+ models from various providers. It evaluates task complexity, current pricing, and model capabilities to select the optimal model for each request. It also integrates with ElizaOS and any other OpenAI-compatible agent framework, not just OpenClaw.

Platform Support

Any (OpenAI-compatible)