Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/brand-numbers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Brand numbers

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

# Fails when a marketing number in this repo disagrees with brand-numbers.json.
#
# --check is deliberately OFFLINE. It compares against the committed snapshot
# and never fetches, so a blockrun.ai deploy in progress cannot fail this repo's
# CI. Pulling a newer artifact is a separate, deliberate act:
#
# node scripts/sync-brand-numbers.mjs --refresh
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: node scripts/sync-brand-numbers.mjs --check
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
dist/
node_modules/
package-lock.json

# Vendored byte-for-byte from BlockRunAI/blockrun:brand/sync-brand-numbers.mjs.
# Formatting it here would fork the copy from the source and from the other
# repos that carry it, and blockrun CI compares them.
scripts/sync-brand-numbers.mjs
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# XClawRouter

Smart LLM router for autonomous agents. 60+ models. Wallet-based auth. USDC micropayments via x402.
Smart LLM router for autonomous agents. <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models. Wallet-based auth. USDC micropayments via x402.

## Commands

Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p>Agents can't sign up for accounts. Agents can't enter credit cards.<br>
Agents can only sign transactions.<br><br>
<strong>ClawRouter is the only LLM router that lets agents operate independently.</strong><br><br>
<em>7 models free, no crypto required. No signup. No API key. No credit card.</em></p>
<em><!-- br:models.free -->8<!-- /br:models.free --> models free, no crypto required. No signup. No API key. No credit card.</em></p>

<br>

Expand All @@ -34,7 +34,7 @@ Agents can only sign transactions.<br><br>

</div>

> **ClawRouter** is an open-source smart LLM router that reduces AI API costs by up to 92%. It analyzes each request across 15 dimensions and routes to the cheapest capable model in under 1ms, entirely locally. ClawRouter is the only LLM router built for autonomous AI agents — it uses wallet signatures for authentication (no API keys) and USDC micropayments via the x402 protocol (no credit cards). 60+ models from OpenAI, Anthropic, Google, xAI, DeepSeek, and more. MIT licensed.
> **ClawRouter** is an open-source smart LLM router that reduces AI API costs by <!-- br:savings.autoVsBaselinePct -->87<!-- /br:savings.autoVsBaselinePct -->%. It analyzes each request across 15 dimensions and routes to the cheapest capable model in under 1ms, entirely locally. ClawRouter is the only LLM router built for autonomous AI agents — it uses wallet signatures for authentication (no API keys) and USDC micropayments via the x402 protocol (no credit cards). <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models from OpenAI, Anthropic, Google, xAI, DeepSeek, and more. MIT licensed.

---

Expand All @@ -59,16 +59,16 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r

## How it compares

| | OpenRouter | LiteLLM | Martian | Portkey | **ClawRouter** |
| ---------------- | ----------------- | ---------------- | ----------------- | ----------------- | ----------------------- |
| **Models** | 200+ | 100+ | Smart routing | Gateway | **60+** |
| **Free tier** | Rate-limited | BYO keys | No | No | **7 models, no signup** |
| **Routing** | Manual selection | Manual selection | Smart (closed) | Observability | **Smart (open source)** |
| **Auth** | Account + API key | Your API keys | Account + API key | Account + API key | **Wallet signature** |
| **Payment** | Credit card | BYO keys | Credit card | $49-499/mo | **USDC per-request** |
| **Runs locally** | No | Yes | No | No | **Yes** |
| **Open source** | No | Yes | No | Partial | **Yes** |
| **Agent-ready** | No | No | No | No | **Yes** |
| | OpenRouter | LiteLLM | Martian | Portkey | **ClawRouter** |
| ---------------- | ----------------- | ---------------- | ----------------- | ----------------- | ---------------------------------------------------------------------- |
| **Models** | 200+ | 100+ | Smart routing | Gateway | **60+** |
| **Free tier** | Rate-limited | BYO keys | No | No | **<!-- br:models.free -->8<!-- /br:models.free --> models, no signup** |
| **Routing** | Manual selection | Manual selection | Smart (closed) | Observability | **Smart (open source)** |
| **Auth** | Account + API key | Your API keys | Account + API key | Account + API key | **Wallet signature** |
| **Payment** | Credit card | BYO keys | Credit card | $49-499/mo | **USDC per-request** |
| **Runs locally** | No | Yes | No | No | **Yes** |
| **Open source** | No | Yes | No | Partial | **Yes** |
| **Agent-ready** | No | No | No | No | **Yes** |

✓ Open source · ✓ Smart routing · ✓ Runs locally · ✓ Crypto native · ✓ Agent ready

Expand All @@ -78,7 +78,7 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r

## Quick Start

> **No wallet? 7 models work free out of the box.** Install, run, and pin `free/gpt-oss-120b` (or any of the 7) — no crypto, no signup, no balance required. Add USDC later when you want paid models.
> **No wallet? <!-- br:models.free -->8<!-- /br:models.free --> models work free out of the box.** Install, run, and pin `free/gpt-oss-120b` (or any of the 7) — no crypto, no signup, no balance required. Add USDC later when you want paid models.

### Option A — OpenClaw Agent

Expand Down Expand Up @@ -223,7 +223,7 @@ Request → Weighted Scorer (15 dimensions) → Tier → Best Model → Response
| COMPLEX | gemini-3.1-flash-lite ($0.25/$1.50) | gemini-3.1-pro ($2/$12) | claude-opus-4.6 ($5/$25) |
| REASONING | grok-4-1-fast ($0.20/$0.50) | grok-4-1-fast-reasoning ($0.20/$0.50) | claude-sonnet-4.6 ($3/$15) |

**Blended average: $2.05/M** vs $25/M for Claude Opus = **92% savings**
**Blended average: $2.05/M** vs $25/M for Claude Opus = **<!-- br:savings.autoVsBaselinePct -->87<!-- /br:savings.autoVsBaselinePct -->% savings**

---

Expand Down Expand Up @@ -297,7 +297,7 @@ Edit existing images with `/img2img`:

## Models & Pricing

60+ models across 9 providers, one wallet. **Starting at $0.0002/request.**
<!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models across 9 providers, one wallet. **Starting at $0.0002/request.**

> **💡 "Cost per request"** = estimated cost for a typical chat message (~500 input + 500 output tokens).

Expand Down Expand Up @@ -382,7 +382,7 @@ Edit existing images with `/img2img`:
| openai/gpt-5.2-pro | $21.00 | $168.00 | $0.0945 | 400K | reasoning, tools |
| openai/gpt-5.4-pro | $30.00 | $180.00 | $0.1050 | 400K | reasoning, tools |

> **Free tier:** 7 models cost nothing — `/model free` points to gpt-oss-120b, or pick any free model directly (e.g., `/model nemotron-omni` for vision, `/model qwen-coder` for coding, `/model deepseek-v4-flash` for reasoning + 1M context, `/model maverick` for general chat).
> **Free tier:** <!-- br:models.free -->8<!-- /br:models.free --> models cost nothing — `/model free` points to gpt-oss-120b, or pick any free model directly (e.g., `/model nemotron-omni` for vision, `/model qwen-coder` for coding, `/model deepseek-v4-flash` for reasoning + 1M context, `/model maverick` for general chat).
> **Best value:** `gpt-5-nano` and `gemini-2.5-flash-lite` deliver strong results at ~$0.0003/request.

---
Expand Down Expand Up @@ -552,7 +552,7 @@ npm test

**The LLM router built for autonomous agents**

You're here. 60+ models, local smart routing, x402 USDC payments — the only stack that lets agents operate independently.
You're here. <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models, local smart routing, x402 USDC payments — the only stack that lets agents operate independently.

`curl -fsSL https://blockrun.ai/XClawRouter-update | bash`

Expand All @@ -563,7 +563,7 @@ You're here. 60+ models, local smart routing, x402 USDC payments — the only st

**BlockRun for Claude Code**

Run Claude Code with 50+ models, no rate limits, no Anthropic account, no phone verification. Pay per request with USDC — your wallet is your identity.
Run Claude Code with <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models, no rate limits, no Anthropic account, no phone verification. Pay per request with USDC — your wallet is your identity.

`curl -fsSL https://blockrun.ai/brcc-install | bash`

Expand Down Expand Up @@ -606,7 +606,7 @@ ClawRouter is an open-source (MIT licensed) smart LLM router built for autonomou

### How much can ClawRouter save on LLM costs?

ClawRouter's blended average cost is $2.05 per million tokens compared to $25/M for Claude Opus, representing 92% savings. Actual savings depend on your workload — simple queries are routed to free models ($0/request), while complex tasks get premium models.
ClawRouter's blended average cost is $2.05 per million tokens compared to $25/M for Claude Opus, representing <!-- br:savings.autoVsBaselinePct -->87<!-- /br:savings.autoVsBaselinePct -->% savings. Actual savings depend on your workload — simple queries are routed to free models ($0/request), while complex tasks get premium models.

### How does ClawRouter compare to OpenRouter?

Expand Down
34 changes: 34 additions & 0 deletions brand-numbers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://blockrun.ai/brand/numbers.schema.json",
"version": 1,
"models": {
"chatVisible": 66,
"totalVisible": 86,
"free": 8,
"freeWithheld": 17,
"image": 8,
"video": 5,
"music": 1,
"speech": 5,
"soundfx": 1,
"withFallback": 44,
"withFallbackAllEntries": 75
},
"clawrouter": {
"dimensions": 15,
"tiers": 4,
"profiles": 4,
"aliases": 202
},
"mcp": {
"tools": 19
},
"chains": {
"rpc": 40
},
"savings": {
"baselineModel": "anthropic/claude-opus-5",
"ecoVsBaselinePct": 98,
"autoVsBaselinePct": 87
}
}
8 changes: 7 additions & 1 deletion docs/11-free-ai-models-zero-cost-blockrun.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 11 Free AI Models, Zero Cost: How BlockRun Gives Developers Top-Tier LLMs for Nothing

> **The count in this title is a snapshot.** It was 11 when this was written; the
> published free tier is now 8 — models are withheld from `/v1/models` when a
> provider's terms change, most recently over NVIDIA's prompt-retention policy.
> The URL keeps its original slug so existing links do not break. Current figures:
> [blockrun.ai/brand/numbers.json](https://blockrun.ai/brand/numbers.json).

## The Cost Problem Nobody Talks About

It's 2026. Large language models are table stakes for developers. But here's the uncomfortable truth — **the models you can afford aren't good enough, and the good ones aren't affordable.**
Expand Down Expand Up @@ -82,7 +88,7 @@ Assume 100 requests per day, distributed roughly as:
| ClawRouter ECO mode | ~$1–3 |
| Manual free model selection | **$0** |

**ECO mode saves 92%+ compared to Claude Opus alone.**
**ECO mode is <!-- br:savings.ecoVsBaselinePct -->98<!-- /br:savings.ecoVsBaselinePct -->% cheaper than pinning Claude Opus 5 for every request.**

---

Expand Down
2 changes: 1 addition & 1 deletion docs/anthropic-cost-savings.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This is where you're paying for real value:

## The Solution: ClawRouter

[ClawRouter](https://github.com/BlockRunAI/XClawRouter) is an open-source local proxy that sits between your app and 41+ AI models. It saves you money in three ways: **smart routing**, **token optimization**, and **response caching**.
[ClawRouter](https://github.com/BlockRunAI/XClawRouter) is an open-source local proxy that sits between your app and <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> AI models. It saves you money in three ways: **smart routing**, **token optimization**, and **response caching**.

```
┌─────────────┐ ┌──────────────────────────────┐ ┌──────────────────┐
Expand Down
6 changes: 3 additions & 3 deletions docs/anthropic-third-party-harness-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This is exactly the problem [XClawRouter](https://github.com/BlockRunAI/XClawRou

## XClawRouter: Smart Routing for Agents

XClawRouter is an open-source local proxy that sits between your agent and 55+ LLM models across 9 providers. It analyzes every request across 15 dimensions and routes it to the cheapest model that can handle it — in under 1ms, entirely locally.
XClawRouter is an open-source local proxy that sits between your agent and <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> LLM models across 9 providers. It analyzes every request across 15 dimensions and routes it to the cheapest model that can handle it — in under 1ms, entirely locally.

```
Your Agent → XClawRouter (localhost:8402) → Best model for the job
Expand All @@ -56,7 +56,7 @@ From 20,000+ production requests:
| Free models (trivial tasks) | 12.8% | $0.00 |
| Others | 13.8% | varies |

**Result: 81% savings vs. Sonnet-for-everything, 89% vs. Opus-for-everything.**
**Result: <!-- br:savings.autoVsBaselinePct -->87<!-- /br:savings.autoVsBaselinePct -->% cheaper than pinning Claude Opus 5 for every request** — the published figure, priced on a stated workload mix rather than estimated.

A typical user running 10K mixed requests/month:

Expand All @@ -74,7 +74,7 @@ Then point your agent at `http://localhost:8402/v1/` with any OpenAI-compatible

- **No API keys to manage** — wallet-based cryptographic auth
- **No subscriptions** — pay per request in USDC (Base or Solana)
- **No vendor lock-in** — 55+ models, switch anytime
- **No vendor lock-in** — <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models, switch anytime
- **You control your wallet** — non-custodial, funds never held by a third party
- **Budget caps** — set a max spend per session, XClawRouter gracefully downgrades when budget runs low
- **Token compression** — 7-layer pipeline reduces token costs by 7–40% before they hit any provider
Expand Down
4 changes: 2 additions & 2 deletions docs/clawrouter-cuts-llm-api-costs-500x.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Less context repeated = fewer tokens = lower cost. Agents that need to recall ea

### 7. x402 Micropayments — Wallet-Based Budget Control

<p align="center"><img src="assets/blockrun-clawrouter-x402-usdc-micropayment-wallet-budget-control.png" alt="Budget limits enforced by physical construction — wallet loaded via Base/Solana, pay per call across 41+ models, balance hits zero and the valve shuts cleanly" width="720"></p>
<p align="center"><img src="assets/blockrun-clawrouter-x402-usdc-micropayment-wallet-budget-control.png" alt="Budget limits enforced by physical construction — wallet loaded via Base/Solana, pay per call across <!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models, balance hits zero and the valve shuts cleanly" width="720"></p>

XClawRouter pays for inference via [x402](https://x402.org/) USDC micropayments (Base or Solana). You load a wallet. Each inference call costs exactly what it costs. When the wallet runs low, requests stop cleanly.

Expand All @@ -144,7 +144,7 @@ There is no monthly invoice. There is no 3am email. There is a wallet balance, a
**`maxCostPerRun`** — a per-session cost ceiling that stops or downgrades requests once a session exceeds a configured threshold (e.g., `$0.50`). This closes the remaining gap ([#3181](https://github.com/openclaw/openclaw/issues/3181)) where a wallet with sufficient funds can still accumulate within a single run. Two modes: `graceful` (downgrade to cheaper models) and `strict` (hard 429 once the cap is hit).

```
41+ models. One wallet. Pay per call.
<!-- br:models.chatVisible -->66<!-- /br:models.chatVisible --> models. One wallet. Pay per call.
```

---
Expand Down
Loading
Loading