# BlockRunAI/ClawRouter

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

Repository: https://github.com/BlockRunAI/ClawRouter
Canonical: https://ross.abutalabs.com/products/clawrouter
Homepage: https://www.npmjs.com/package/@blockrun/clawrouter
Language: TypeScript
License: MIT
License Family: permissive
Topics: ai, ai-agents, anthropic, cost-optimization, deepseek, gemini, llm, llm-router, micropayments, openai, openclaw, smart-routing, usdc, x402, stablecoin-payments, stablecoin-payment
Last push: 2026-08-26T02:30:13+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 15
- inputs: {"age_days": 211, "days_push": 8, "days_rel": 8, "gap_med": 0, "n_releases_24m": 118}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6571, forks 644 (observed 2026-08-28T04:09:45.302791+00:00)

## What it is
ClawRouter is an open-source TypeScript LLM router built for autonomous AI agents, offering 71 models from OpenAI, Anthropic, Google, xAI, and DeepSeek behind a single locally-generated wallet. It scores each request across 15 dimensions and routes to the cheapest capable model in under 1ms, with authentication via wallet signatures and per-request USDC micropayments through the x402 protocol on Base and Solana.

## Use cases
- route LLM requests to the cheapest capable model automatically
- let autonomous agents pay for AI inference without API keys or credit cards
- reduce AI API costs with smart model routing
- pay for LLM calls with USDC micropayments via x402
- access multiple frontier models through one wallet
- run local sub-1ms model routing with zero external dependencies
- use free NVIDIA models including DeepSeek V4 Flash without signup

## When to choose
- you are building autonomous agents that need to pay for inference independently
- you want automatic cost-optimized model selection across multiple providers
- you prefer wallet-signature auth and crypto micropayments over API keys and credit cards
- you need local, low-latency routing with no external dependencies

## When to avoid
- you need the widest model catalog (OpenRouter offers 200+)
- you require enterprise gateway features like Portkey or LiteLLM
- your environment cannot handle crypto wallets or stablecoin payments
- you need human-developer-oriented dashboards and account management

## Facets
- artifact type: library
- maturity: active
- function: llm-inference, agent-framework, middleware, http-client
- domain: large-language-models, developer-tools, apis
- platform: cross-platform, cli
- tags: llm-router, x402, usdc, micropayments, smart-routing, cost-optimization, wallet-auth, stablecoin-payments, openclaw-plugin, ai-agents, cryptocurrency, nodejs, typescript

## Member repositories
- BlockRunAI/ClawRouter (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:45.302791+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:43:38.890364+00:00, confidence not recorded.
  - readme: https://github.com/BlockRunAI/ClawRouter (fetched 2026-08-28T04:09:45.302791+00:00, sha 7b6c892a7af5)
  - homepage: https://www.npmjs.com/package/@blockrun/clawrouter (fetched 2026-08-29T08:40:25.508828+00:00, sha 95f91889c153)
- Data as of 2026-08-30T08:39:29.467469+00:00.
