ClawRouter with OpenClaw

Automatic per-request LLM routing — cheapest capable model

ClawRouter (by BlockRunAI) is a third-party OpenClaw plugin that routes each request to the cheapest model that can handle it. Instead of manually assigning tiers (e.g. Opus for chat, Flash for cron), you set your model to blockrun/auto and ClawRouter picks the model per query. Supports 41+ models through one wallet; pay-per-request with USDC on Base or Solana (e.g. $5 funds many requests). Open-source; 5K+ stars on GitHub.

This site does not endorse or guarantee third-party tools. Install and use at your own discretion.

Install

Install with smart routing enabled, then restart the gateway:

One-liner
curl -fsSL https://blockrun.ai/ClawRouter-update | bash
openclaw gateway restart

Fund your wallet with USDC on Base or Solana (address shown after install). Then set agent.model to blockrun/auto in your config.

How You Save

ClawRouter reduces cost in three ways (details and numbers are on the project’s docs and GitHub):

  • Smart routing — Scores each prompt and routes to the cheapest model that can handle the task. Many requests go to models that cost less than Claude/GPT; only harder tasks use premium models.
  • Token compression — Compresses requests before sending to the provider so you pay on compressed token count. Especially helpful on long agent conversations and tool outputs.
  • Response cache and dedup — Caches responses locally; identical requests within a time window return from cache at no extra cost. Retries and duplicate in-flight requests are deduplicated.

How It Works

  • Install via the one-liner above (or from the ClawRouter repo)
  • Set agent.model to blockrun/auto in your config
  • Requests are routed to the cheapest capable model automatically
  • Payment is pay-per-request (USDC on Base or Solana)

When to Use

Use ClawRouter if you want to avoid managing tiered routing yourself and prefer a single wallet over per-provider API keys. For manual tiered routing (e.g. Opus for main chat, cheaper model for cron), see Model Providers and Example Setups & Cost.

Links