BlockRun
Integrations / OpenClaw

Route every OpenClaw request to the right model with ClawRouter

ClawRouter is the open-source model router built for OpenClaw: install the plugin, run /model blockrun/auto and every request goes to the model that fits it. No provider keys.

How it works

ClawRouter sits between OpenClaw and every model provider. It classifies each prompt, picks the cheapest model that can handle it, compresses the prompt, caches repeated answers and pays for the call over x402 from a single wallet. OpenClaw sees one provider; the catalog behind it is every model BlockRun serves.

It is MIT-licensed and the routing decisions are auditable — the router can print which model a prompt would go to without spending. The plugin is the shortest path: install, fund, and switch the conversation's model to the auto route.

Behind it is the BlockRun catalog: 78 chat models plus image, video, music and speech generation, search, market data and multi-chain RPC, priced per call. 6 open-weight models are free and need no wallet.

Setup

1. Install as an OpenClaw plugin

openclaw plugins install @blockrun/clawrouter

2. Or standalone

npm install -g @blockrun/clawrouter

3. In any OpenClaw conversation

/model blockrun/auto

Questions

Does ClawRouter change my prompts?
It compresses them before sending and caches repeated answers; both are configurable, and the eco and quality routes trade those off differently.
Can I pin a model instead of auto?
Yes — /model with any catalog id pins it. Auto is the route that picks per prompt.

Two ways to run this

Get an API key

Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.

Get an API key 

Or let your agent pay per call, in USDC

No account, no API key. Three steps, and the last one is the request this page is about.

  1. 01
    Point your agent at BlockRun

    Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.

    curl -fsSL https://blockrun.ai/ClawRouter-update | bash
  2. 02
    Fund a wallet with USDC

    Send USDC to a wallet on Base or Solana. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.

  3. 03
    Use BlockRun from OpenClaw

    The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.

    openclaw plugins install @blockrun/clawrouter