@blockrun/clawrouter 0.12.85 → 0.12.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +90 -13
- package/dist/cli.js +4215 -49
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4212 -48
- package/dist/index.js.map +1 -1
- package/docs/11-free-ai-models-zero-cost-blockrun.md +28 -27
- package/package.json +4 -4
- package/skills/imagegen/SKILL.md +69 -35
- package/skills/predexon/SKILL.md +169 -0
package/README.md
CHANGED
|
@@ -74,17 +74,94 @@ This is the stack that lets agents operate autonomously: **x402 + USDC + local r
|
|
|
74
74
|
|
|
75
75
|
## Quick Start
|
|
76
76
|
|
|
77
|
+
### Option A — OpenClaw Agent
|
|
78
|
+
|
|
79
|
+
[OpenClaw](https://openclaw.ai) is an AI coding agent. If you're using it, ClawRouter installs as a plugin:
|
|
80
|
+
|
|
77
81
|
```bash
|
|
78
|
-
# 1. Install with smart routing enabled
|
|
79
82
|
curl -fsSL https://blockrun.ai/ClawRouter-update | bash
|
|
80
83
|
openclaw gateway restart
|
|
81
|
-
|
|
82
|
-
# 2. Fund your wallet with USDC on Base or Solana (address printed on install)
|
|
83
|
-
# $5 is enough for thousands of requests
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Done. Smart routing (`blockrun/auto`) is now your default model.
|
|
87
87
|
|
|
88
|
+
### Option B — Standalone (continue.dev, Cursor, VS Code, any OpenAI-compatible client)
|
|
89
|
+
|
|
90
|
+
> **Using Claude Code?** Check out [BRCC](https://github.com/BlockRunAI/brcc) — it's purpose-built for Claude Code with the same smart routing and x402 payments.
|
|
91
|
+
|
|
92
|
+
No OpenClaw required. ClawRouter runs as a local proxy on port 8402.
|
|
93
|
+
|
|
94
|
+
**1. Start the proxy**
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
npx @blockrun/clawrouter
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**2. Fund your wallet**
|
|
101
|
+
Your wallet address is printed on first run. Send a few USDC on Base or Solana — $5 covers thousands of requests.
|
|
102
|
+
|
|
103
|
+
**3. Point your client at `http://localhost:8402`**
|
|
104
|
+
|
|
105
|
+
<details>
|
|
106
|
+
<summary><strong>continue.dev</strong> — <code>~/.continue/config.yaml</code></summary>
|
|
107
|
+
|
|
108
|
+
> **Important:** `apiBase` must end with `/v1/` (including the trailing slash). Without it, continue.dev constructs the URL as `/chat/completions` instead of `/v1/chat/completions`, and the proxy returns 404.
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
models:
|
|
112
|
+
- name: ClawRouter Auto
|
|
113
|
+
provider: openai
|
|
114
|
+
model: blockrun/auto
|
|
115
|
+
apiBase: http://localhost:8402/v1/
|
|
116
|
+
apiKey: x402
|
|
117
|
+
roles:
|
|
118
|
+
- chat
|
|
119
|
+
- edit
|
|
120
|
+
- apply
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
To pin a specific model, replace `blockrun/auto` with any model from [blockrun.ai/models](https://blockrun.ai/models), e.g. `anthropic/claude-opus-4.6`, `xai/grok-4-0709`.
|
|
124
|
+
|
|
125
|
+
Both `provider: openai` and `provider: clawrouter` work — just make sure `apiBase` ends with `/v1/`.
|
|
126
|
+
|
|
127
|
+
<details>
|
|
128
|
+
<summary>Legacy JSON format (<code>~/.continue/config.json</code>)</summary>
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"models": [
|
|
133
|
+
{
|
|
134
|
+
"title": "ClawRouter Auto",
|
|
135
|
+
"provider": "openai",
|
|
136
|
+
"model": "blockrun/auto",
|
|
137
|
+
"apiBase": "http://localhost:8402/v1/",
|
|
138
|
+
"apiKey": "x402"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
</details>
|
|
145
|
+
</details>
|
|
146
|
+
|
|
147
|
+
<details>
|
|
148
|
+
<summary><strong>Cursor</strong> — Settings → Models → OpenAI-compatible</summary>
|
|
149
|
+
|
|
150
|
+
Set base URL to `http://localhost:8402`, API key to `x402`, model to `blockrun/auto`.
|
|
151
|
+
|
|
152
|
+
</details>
|
|
153
|
+
|
|
154
|
+
<details>
|
|
155
|
+
<summary><strong>Any OpenAI SDK</strong></summary>
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
from openai import OpenAI
|
|
159
|
+
client = OpenAI(base_url="http://localhost:8402", api_key="x402")
|
|
160
|
+
response = client.chat.completions.create(model="blockrun/auto", messages=[...])
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
</details>
|
|
164
|
+
|
|
88
165
|
---
|
|
89
166
|
|
|
90
167
|
## Routing Profiles
|
|
@@ -440,14 +517,14 @@ Run Claude Code with 50+ models, no rate limits, no Anthropic account, no phone
|
|
|
440
517
|
|
|
441
518
|
### Blog
|
|
442
519
|
|
|
443
|
-
| Article
|
|
444
|
-
|
|
|
445
|
-
| [11 Free AI Models, Zero Cost](docs/11-free-ai-models-zero-cost-blockrun.md)
|
|
446
|
-
| [ClawRouter Cuts LLM API Costs 500×](docs/clawrouter-cuts-llm-api-costs-500x.md)
|
|
447
|
-
| [ClawRouter vs OpenRouter](docs/clawrouter-vs-openrouter-llm-routing-comparison.md)
|
|
448
|
-
| [Smart LLM Router: 14-Dimension Classifier](docs/smart-llm-router-14-dimension-classifier.md)
|
|
449
|
-
| [LLM Router Benchmark: 46 Models, Sub-1ms](docs/llm-router-benchmark-46-models-sub-1ms-routing.md) | Performance benchmarks
|
|
450
|
-
| [Anthropic Cost Savings](docs/anthropic-cost-savings.md)
|
|
520
|
+
| Article | Topic |
|
|
521
|
+
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
|
|
522
|
+
| [11 Free AI Models, Zero Cost](docs/11-free-ai-models-zero-cost-blockrun.md) | How BlockRun gives developers top-tier LLMs for nothing |
|
|
523
|
+
| [ClawRouter Cuts LLM API Costs 500×](docs/clawrouter-cuts-llm-api-costs-500x.md) | Deep dive into cost savings |
|
|
524
|
+
| [ClawRouter vs OpenRouter](docs/clawrouter-vs-openrouter-llm-routing-comparison.md) | Head-to-head comparison |
|
|
525
|
+
| [Smart LLM Router: 14-Dimension Classifier](docs/smart-llm-router-14-dimension-classifier.md) | How the routing engine works |
|
|
526
|
+
| [LLM Router Benchmark: 46 Models, Sub-1ms](docs/llm-router-benchmark-46-models-sub-1ms-routing.md) | Performance benchmarks |
|
|
527
|
+
| [Anthropic Cost Savings](docs/anthropic-cost-savings.md) | Reducing Claude API spend |
|
|
451
528
|
|
|
452
529
|
---
|
|
453
530
|
|
|
@@ -471,7 +548,7 @@ Both are open source and run locally. But ClawRouter adds smart routing (automat
|
|
|
471
548
|
|
|
472
549
|
### What agents does ClawRouter work with?
|
|
473
550
|
|
|
474
|
-
ClawRouter
|
|
551
|
+
ClawRouter works with any tool that makes OpenAI-compatible API calls — point it at `http://localhost:8402`. This includes continue.dev, Cursor, VS Code extensions, ElizaOS, and custom agents. It also integrates as a plugin with [OpenClaw](https://openclaw.ai) (an AI coding agent), which enables additional features like slash commands and usage reports.
|
|
475
552
|
|
|
476
553
|
### Is ClawRouter free?
|
|
477
554
|
|