Model or dataset
BlockRunAI/ClawRouter avatar
BlockRunAI/ClawRouter

ClawRouter: An LLM Router That Lets Agents Pay Their Own Way

The agent-native LLM router for autonomous agents. Every frontier model behind one wallet, <1ms local routing, USDC payments on Base & Solana via x402.

6,603 stars650 forksTypeScriptMIT

At a glance

What is it?
ClawRouter is an open-source TypeScript router that sends each LLM request to the cheapest capable model in under a millisecond, and it is built so autonomous agents can pay with a USDC wallet signature instead of a credit card.
Who is it for?
ClawRouter is for developers building autonomous agents that need to operate without human billing: if your agent can sign a transaction, it can pay for LLM calls with USDC on Base or Solana, or you can use a credit-card-funded API key from user.blockrun.ai. It is also for teams that want local, sub-millisecond routing across many models to cut costs.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 2 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

The Problem ClawRouter Solves

Autonomous agents cannot sign up for accounts or enter credit card numbers. They can only sign transactions. That is the core problem ClawRouter addresses, according to its README. Most LLM routers were built for human developers who have API keys and billing dashboards. ClawRouter is designed so that an agent itself can pay for each request using a wallet signature. The target user is a developer building an agent that needs to call many different models without a human in the loop for every purchase. The README claims it reduces AI API costs by up to 84% compared to pinning a single expensive model like Claude Opus 5 on the same traffic. That number comes from a published workload mix, not from our testing, but it sets the expectation that cost optimization is a primary goal.

How Routing Works: 15 Dimensions, Local Decision

ClawRouter analyzes each request across 15 dimensions and routes to the cheapest capable model in under 1ms, entirely locally. The README does not list the exact dimensions, but the concept is that the router inspects the request characteristics and matches them to model capabilities. It runs on your machine, not on a remote server, which keeps the routing latency low. The routing decision is separate from the payment and gateway functions. BlockRun is the gateway and billing layer, while ClawRouter is the local decision engine. The router supports 78 chat models across 9 providers, including OpenAI, Anthropic, Google, xAI, and DeepSeek. It also covers image, video, music, speech, and even outbound phone calls that return transcripts, according to the README's feature table. That breadth means the router is not just for text completions; it handles multimodal requests too.

Payment Mechanism: x402 and USDC Micropayments

The payment model is the distinctive part. ClawRouter uses the x402 protocol for USDC micropayments on Base and Solana. The README states that a wallet signature is the account, and USDC micropayments are the billing. This means an agent with a wallet can pay per request without any pre-existing account. For human developers, there is also a credit card option: sign up at user.blockrun.ai, top up a balance, and mint an API key that works with the same router. The README also mentions that six models are free, with no signup, key, or wallet required. That free tier lowers the barrier for trying the router. The x402 protocol is referenced as the micropayment standard, and the project won a USDC Hackathon award for Agentic Commerce, which adds some credibility to the payment approach, though we cannot verify the award's significance.

Getting Started: Installation and Configuration

The README does not provide explicit installation commands in the section we have, but the project is published on npm as @blockrun/clawrouter, so installation would typically be via npm install. The repository is TypeScript 5.7, so a Node.js environment is expected. The README mentions a desktop preview release, ClawRouter Desktop 0.1.3, which suggests there is a GUI application for managing the router. For configuration, the README refers to user.blockrun.ai for credit-card-based API keys, but it does not document specific config keys or environment variables in the provided material. To get a precise setup, you would need to read the full README or the package documentation. The release notes mention specific model additions, like Gemini 3.8 Flash being routable but uncatalogued, which suggests there is a catalog of supported models that gets updated regularly.

Limitations and Failure Modes

One limitation is that the routing quality depends on the model catalog being up to date. The release note for v0.12.276 says Gemini 3.8 Flash was routable but uncatalogued, meaning the router could send requests to it but did not have it in the model list, which could cause routing errors or mispricing. Another limitation is that the 84% cost savings figure is based on a published workload mix, not on your specific traffic. If your workload differs, the savings could be smaller. The router requires a local deployment, which means you need to maintain the software and update it frequently. The release history shows many version bumps, like v0.12.277 and v0.12.276 on consecutive days, indicating a fast-moving project. That could be a maintenance burden. Also, the payment infrastructure depends on BlockRun's gateway, so if that service goes down, your agent cannot pay for requests, even though the router itself is local.

Alternatives and How They Differ

A typical alternative is using a direct model provider API, like OpenAI or Anthropic, where you pay per token with a credit card on file. That approach requires a human to set up the account and manage billing, which is exactly what ClawRouter avoids. Another alternative is a hosted LLM gateway like LiteLLM or OpenRouter, which provide a unified API for many models but still require an API key and a billing account. ClawRouter differs by making the wallet signature the account, so an agent can self-serve. For routing specifically, some routers use heuristics or cost-based algorithms, but ClawRouter's claim of 15-dimension local routing is more granular. The key difference is the payment layer: ClawRouter is built for machine-to-machine payments, not human-managed subscriptions.

Maintenance and License Implications

ClawRouter is MIT licensed, which means you can use, modify, and distribute it freely, including in commercial products, without paying royalties. That is a permissive license, but it does not cover the BlockRun gateway service, which is separate. The README does not specify the license for the gateway or the API, so you would need to check the terms of service at user.blockrun.ai. The project is actively maintained, with the last push in September 2026 and multiple releases in the same week. The release notes show a pattern of fixing availability issues and adding model support, which is good for reliability but also means you need to track updates. The desktop preview suggests a user interface is in development, which may simplify management but also introduces a new component to maintain. Upgrading from one version to another appears to be routine, but the high frequency could require regular attention.

Editorial conclusion

ClawRouter is for developers building autonomous agents that need to operate without human billing: if your agent can sign a transaction, it can pay for LLM calls with USDC on Base or Solana, or you can use a credit-card-funded API key from user.blockrun.ai. It is also for teams that want local, sub-millisecond routing across many models to cut costs. It is not for you if you need a hosted router with a management UI, or if your traffic is simple enough that a single model endpoint suffices. Before adopting, verify the routing dimensions against your actual workload, confirm the free model list meets your needs, and check that the x402 payment flow works on your target chain. The project is MIT licensed, so you can fork it, but the gateway and billing are tied to BlockRun's infrastructure, so understand that dependency. The release cadence is high, with frequent version bumps, so plan for ongoing updates.

Official sources

  1. BlockRunAI/ClawRouter on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
Community notes

Community notes