@blockrun/clawrouter 0.12.232 → 0.12.233

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 CHANGED
@@ -140,7 +140,7 @@ models:
140
140
  - apply
141
141
  ```
142
142
 
143
- 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.8`, `xai/grok-4.5`.
143
+ To pin a specific model, replace `blockrun/auto` with any model from [blockrun.ai/models](https://blockrun.ai/models), e.g. `anthropic/claude-opus-5`, `xai/grok-4.5`.
144
144
 
145
145
  Both `provider: openai` and `provider: clawrouter` work — just make sure `apiBase` ends with `/v1/`.
146
146
 
@@ -211,7 +211,7 @@ Request → Weighted Scorer (15 dimensions) → Tier → Best Model → Response
211
211
  | --------- | ------------------------------------ | ------------------------------- | ---------------------------- |
212
212
  | SIMPLE | free/mistral-large-3-675b (**FREE**) | gemini-2.5-flash ($0.30/$2.50) | kimi-k2.7 ($0.95/$4.00) |
213
213
  | MEDIUM | gemini-3.1-flash-lite ($0.25/$1.50) | kimi-k2.7 ($0.95/$4.00) | gpt-5.3-codex ($1.75/$14.00) |
214
- | COMPLEX | gemini-3.1-flash-lite ($0.25/$1.50) | gemini-3.1-pro ($2/$12) | claude-opus-4.8 ($5/$25) |
214
+ | COMPLEX | gemini-3.1-flash-lite ($0.25/$1.50) | gemini-3.1-pro ($2/$12) | claude-fable-5 ($10/$50) |
215
215
  | REASONING | deepseek-reasoner ($0.20/$0.40) | deepseek-reasoner ($0.20/$0.40) | claude-sonnet-4.6 ($3/$15) |
216
216
 
217
217
  **Blended average: $2.05/M** vs $25/M for Claude Opus = **92% savings**
@@ -456,6 +456,7 @@ No Surf account, no API key — settles directly to Surf's Base treasury in USDC
456
456
  | --------------------------- | --------: | ---------: | ---------: | ------- | --------------------------------- |
457
457
  | anthropic/claude-sonnet-5 | $3.00 | $15.00 | $0.0090 | 1M | reasoning, vision, agentic, tools |
458
458
  | anthropic/claude-sonnet-4.6 | $3.00 | $15.00 | $0.0090 | 200K | reasoning, vision, agentic, tools |
459
+ | anthropic/claude-opus-5 | $5.00 | $25.00 | $0.0150 | 1M | reasoning, vision, agentic, tools |
459
460
  | anthropic/claude-opus-4.8 | $5.00 | $25.00 | $0.0150 | 1M | reasoning, vision, agentic, tools |
460
461
  | openai/gpt-5.6-sol | $5.00 | $30.00 | $0.0175 | 1M | reasoning, vision, agentic, tools |
461
462
  | openai/gpt-5.5 | $5.00 | $30.00 | $0.0175 | 1M | reasoning, vision, agentic, tools |
package/dist/cli.js CHANGED
@@ -34101,8 +34101,10 @@ var init_config = __esm({
34101
34101
  // back to Google at the same time). Prefer xAI Grok → Moonshot → OpenAI
34102
34102
  // flagship → DeepSeek → NVIDIA free instead.
34103
34103
  fallback: [
34104
- "anthropic/claude-opus-4.8",
34104
+ "anthropic/claude-opus-5",
34105
34105
  // in-family hot swap first (half the price, 1M ctx + adaptive thinking)
34106
+ "anthropic/claude-opus-4.8",
34107
+ // in-family hot swap (identical cost to 5)
34106
34108
  "anthropic/claude-opus-4.7",
34107
34109
  // in-family hot swap (identical cost to 4.8)
34108
34110
  "anthropic/claude-opus-4.6",
@@ -34137,8 +34139,10 @@ var init_config = __esm({
34137
34139
  fallback: [
34138
34140
  "anthropic/claude-sonnet-5",
34139
34141
  // in-family hot swap — same cost, adaptive thinking, 1M ctx
34140
- "anthropic/claude-opus-4.8",
34142
+ "anthropic/claude-opus-5",
34141
34143
  // Newest flagship Opus w/ adaptive thinking
34144
+ "anthropic/claude-opus-4.8",
34145
+ // Prior flagship Opus — identical cost to 5
34142
34146
  "anthropic/claude-opus-4.7",
34143
34147
  // Flagship Opus w/ adaptive thinking
34144
34148
  "anthropic/claude-opus-4.6",
@@ -34193,8 +34197,10 @@ var init_config = __esm({
34193
34197
  fallback: [
34194
34198
  "anthropic/claude-sonnet-5",
34195
34199
  // in-family hot swap — same cost, near-Opus agentic quality
34196
- "anthropic/claude-opus-4.8",
34200
+ "anthropic/claude-opus-5",
34197
34201
  // Newest flagship Opus — in-family hot swap
34202
+ "anthropic/claude-opus-4.8",
34203
+ // Prior flagship Opus — identical cost to 5
34198
34204
  "anthropic/claude-opus-4.7",
34199
34205
  // Flagship Opus — in-family hot swap
34200
34206
  "anthropic/claude-opus-4.6",
@@ -34223,8 +34229,10 @@ var init_config = __esm({
34223
34229
  fallback: [
34224
34230
  "anthropic/claude-sonnet-5",
34225
34231
  // in-family hot swap — same cost, adaptive thinking
34226
- "anthropic/claude-opus-4.8",
34232
+ "anthropic/claude-opus-5",
34227
34233
  // Newest flagship Opus w/ adaptive thinking
34234
+ "anthropic/claude-opus-4.8",
34235
+ // Prior flagship Opus — identical cost to 5
34228
34236
  "anthropic/claude-opus-4.7",
34229
34237
  // Flagship Opus w/ adaptive thinking
34230
34238
  "anthropic/claude-opus-4.6",
@@ -34285,6 +34293,7 @@ var init_top_models = __esm({
34285
34293
  "eco",
34286
34294
  "free",
34287
34295
  "anthropic/claude-fable-5",
34296
+ "anthropic/claude-opus-5",
34288
34297
  "anthropic/claude-opus-4.8",
34289
34298
  "anthropic/claude-opus-4.7",
34290
34299
  "anthropic/claude-sonnet-5",
@@ -34440,7 +34449,7 @@ var init_models = __esm({
34440
34449
  "use strict";
34441
34450
  init_top_models2();
34442
34451
  MODEL_ALIASES = {
34443
- // Claude - flagship opus is 4.8; bare sonnet stays at 4.6 (sonnet-5 is opt-in
34452
+ // Claude - flagship opus is 5; bare sonnet stays at 4.6 (sonnet-5 is opt-in
34444
34453
  // via explicit `sonnet-5` — not promoted to the bare alias pending benchmarks)
34445
34454
  claude: "anthropic/claude-sonnet-4.6",
34446
34455
  "br-sonnet": "anthropic/claude-sonnet-4.6",
@@ -34464,7 +34473,15 @@ var init_models = __esm({
34464
34473
  fable: "anthropic/claude-fable-5",
34465
34474
  "fable-5": "anthropic/claude-fable-5",
34466
34475
  "fable-5.0": "anthropic/claude-fable-5",
34467
- opus: "anthropic/claude-opus-4.8",
34476
+ // Opus 5 (2026-07-24) takes the bare `opus` alias: identical $5/$25 and the
34477
+ // same 1M/128K envelope as 4.8, so no per-call-cap wallet changes behavior,
34478
+ // and BlockRun already repointed `clawrouter-premium` → opus-5. `opus-4` and
34479
+ // `anthropic/claude-opus-4` stay on 4.8 — they name the 4-series generation.
34480
+ // Note: `anthropic/claude-opus-5` must NOT be an alias key (see fable note).
34481
+ opus: "anthropic/claude-opus-5",
34482
+ "opus-5": "anthropic/claude-opus-5",
34483
+ "opus-5.0": "anthropic/claude-opus-5",
34484
+ "opus-5-0": "anthropic/claude-opus-5",
34468
34485
  "opus-4": "anthropic/claude-opus-4.8",
34469
34486
  "opus-4.8": "anthropic/claude-opus-4.8",
34470
34487
  "opus-4-8": "anthropic/claude-opus-4.8",
@@ -34478,7 +34495,9 @@ var init_models = __esm({
34478
34495
  // fable-5 relisted 2026-07-06 (see note above)
34479
34496
  "anthropic/fable": "anthropic/claude-fable-5",
34480
34497
  "anthropic/claude-fable-5.0": "anthropic/claude-fable-5",
34481
- "anthropic/opus": "anthropic/claude-opus-4.8",
34498
+ "anthropic/opus": "anthropic/claude-opus-5",
34499
+ "anthropic/claude-opus-5.0": "anthropic/claude-opus-5",
34500
+ "anthropic/claude-opus-5-0": "anthropic/claude-opus-5",
34482
34501
  "anthropic/haiku": "anthropic/claude-haiku-4.5",
34483
34502
  "anthropic/claude": "anthropic/claude-sonnet-4.6",
34484
34503
  // Backward compatibility - generic opus-4 and older flagships point at 4.8;
@@ -35193,6 +35212,22 @@ var init_models = __esm({
35193
35212
  agentic: true,
35194
35213
  toolCalling: true
35195
35214
  },
35215
+ // claude-opus-5 added 2026-07-24 (BlockRun launch-day sync, PR #283).
35216
+ // Same $5/$25 as Opus 4.8 — Anthropic bills the 1M window at standard rates,
35217
+ // so there is no long-context premium to model here.
35218
+ {
35219
+ id: "anthropic/claude-opus-5",
35220
+ name: "Claude Opus 5",
35221
+ version: "5",
35222
+ inputPrice: 5,
35223
+ outputPrice: 25,
35224
+ contextWindow: 1e6,
35225
+ maxOutput: 128e3,
35226
+ reasoning: true,
35227
+ vision: true,
35228
+ agentic: true,
35229
+ toolCalling: true
35230
+ },
35196
35231
  // Google
35197
35232
  {
35198
35233
  id: "google/gemini-3.1-pro",
@@ -219818,8 +219853,8 @@ var DOCTOR_MODELS = {
219818
219853
  cost: "~$0.003"
219819
219854
  },
219820
219855
  opus: {
219821
- id: "anthropic/claude-opus-4.8",
219822
- name: "Claude Opus 4.8",
219856
+ id: "anthropic/claude-opus-5",
219857
+ name: "Claude Opus 5",
219823
219858
  cost: "~$0.01"
219824
219859
  }
219825
219860
  };
package/dist/index.js CHANGED
@@ -58,6 +58,7 @@ var init_top_models = __esm({
58
58
  "eco",
59
59
  "free",
60
60
  "anthropic/claude-fable-5",
61
+ "anthropic/claude-opus-5",
61
62
  "anthropic/claude-opus-4.8",
62
63
  "anthropic/claude-opus-4.7",
63
64
  "anthropic/claude-sonnet-5",
@@ -213,7 +214,7 @@ var init_models = __esm({
213
214
  "use strict";
214
215
  init_top_models2();
215
216
  MODEL_ALIASES = {
216
- // Claude - flagship opus is 4.8; bare sonnet stays at 4.6 (sonnet-5 is opt-in
217
+ // Claude - flagship opus is 5; bare sonnet stays at 4.6 (sonnet-5 is opt-in
217
218
  // via explicit `sonnet-5` — not promoted to the bare alias pending benchmarks)
218
219
  claude: "anthropic/claude-sonnet-4.6",
219
220
  "br-sonnet": "anthropic/claude-sonnet-4.6",
@@ -237,7 +238,15 @@ var init_models = __esm({
237
238
  fable: "anthropic/claude-fable-5",
238
239
  "fable-5": "anthropic/claude-fable-5",
239
240
  "fable-5.0": "anthropic/claude-fable-5",
240
- opus: "anthropic/claude-opus-4.8",
241
+ // Opus 5 (2026-07-24) takes the bare `opus` alias: identical $5/$25 and the
242
+ // same 1M/128K envelope as 4.8, so no per-call-cap wallet changes behavior,
243
+ // and BlockRun already repointed `clawrouter-premium` → opus-5. `opus-4` and
244
+ // `anthropic/claude-opus-4` stay on 4.8 — they name the 4-series generation.
245
+ // Note: `anthropic/claude-opus-5` must NOT be an alias key (see fable note).
246
+ opus: "anthropic/claude-opus-5",
247
+ "opus-5": "anthropic/claude-opus-5",
248
+ "opus-5.0": "anthropic/claude-opus-5",
249
+ "opus-5-0": "anthropic/claude-opus-5",
241
250
  "opus-4": "anthropic/claude-opus-4.8",
242
251
  "opus-4.8": "anthropic/claude-opus-4.8",
243
252
  "opus-4-8": "anthropic/claude-opus-4.8",
@@ -251,7 +260,9 @@ var init_models = __esm({
251
260
  // fable-5 relisted 2026-07-06 (see note above)
252
261
  "anthropic/fable": "anthropic/claude-fable-5",
253
262
  "anthropic/claude-fable-5.0": "anthropic/claude-fable-5",
254
- "anthropic/opus": "anthropic/claude-opus-4.8",
263
+ "anthropic/opus": "anthropic/claude-opus-5",
264
+ "anthropic/claude-opus-5.0": "anthropic/claude-opus-5",
265
+ "anthropic/claude-opus-5-0": "anthropic/claude-opus-5",
255
266
  "anthropic/haiku": "anthropic/claude-haiku-4.5",
256
267
  "anthropic/claude": "anthropic/claude-sonnet-4.6",
257
268
  // Backward compatibility - generic opus-4 and older flagships point at 4.8;
@@ -966,6 +977,22 @@ var init_models = __esm({
966
977
  agentic: true,
967
978
  toolCalling: true
968
979
  },
980
+ // claude-opus-5 added 2026-07-24 (BlockRun launch-day sync, PR #283).
981
+ // Same $5/$25 as Opus 4.8 — Anthropic bills the 1M window at standard rates,
982
+ // so there is no long-context premium to model here.
983
+ {
984
+ id: "anthropic/claude-opus-5",
985
+ name: "Claude Opus 5",
986
+ version: "5",
987
+ inputPrice: 5,
988
+ outputPrice: 25,
989
+ contextWindow: 1e6,
990
+ maxOutput: 128e3,
991
+ reasoning: true,
992
+ vision: true,
993
+ agentic: true,
994
+ toolCalling: true
995
+ },
969
996
  // Google
970
997
  {
971
998
  id: "google/gemini-3.1-pro",
@@ -35625,8 +35652,10 @@ var init_config = __esm({
35625
35652
  // back to Google at the same time). Prefer xAI Grok → Moonshot → OpenAI
35626
35653
  // flagship → DeepSeek → NVIDIA free instead.
35627
35654
  fallback: [
35628
- "anthropic/claude-opus-4.8",
35655
+ "anthropic/claude-opus-5",
35629
35656
  // in-family hot swap first (half the price, 1M ctx + adaptive thinking)
35657
+ "anthropic/claude-opus-4.8",
35658
+ // in-family hot swap (identical cost to 5)
35630
35659
  "anthropic/claude-opus-4.7",
35631
35660
  // in-family hot swap (identical cost to 4.8)
35632
35661
  "anthropic/claude-opus-4.6",
@@ -35661,8 +35690,10 @@ var init_config = __esm({
35661
35690
  fallback: [
35662
35691
  "anthropic/claude-sonnet-5",
35663
35692
  // in-family hot swap — same cost, adaptive thinking, 1M ctx
35664
- "anthropic/claude-opus-4.8",
35693
+ "anthropic/claude-opus-5",
35665
35694
  // Newest flagship Opus w/ adaptive thinking
35695
+ "anthropic/claude-opus-4.8",
35696
+ // Prior flagship Opus — identical cost to 5
35666
35697
  "anthropic/claude-opus-4.7",
35667
35698
  // Flagship Opus w/ adaptive thinking
35668
35699
  "anthropic/claude-opus-4.6",
@@ -35717,8 +35748,10 @@ var init_config = __esm({
35717
35748
  fallback: [
35718
35749
  "anthropic/claude-sonnet-5",
35719
35750
  // in-family hot swap — same cost, near-Opus agentic quality
35720
- "anthropic/claude-opus-4.8",
35751
+ "anthropic/claude-opus-5",
35721
35752
  // Newest flagship Opus — in-family hot swap
35753
+ "anthropic/claude-opus-4.8",
35754
+ // Prior flagship Opus — identical cost to 5
35722
35755
  "anthropic/claude-opus-4.7",
35723
35756
  // Flagship Opus — in-family hot swap
35724
35757
  "anthropic/claude-opus-4.6",
@@ -35747,8 +35780,10 @@ var init_config = __esm({
35747
35780
  fallback: [
35748
35781
  "anthropic/claude-sonnet-5",
35749
35782
  // in-family hot swap — same cost, adaptive thinking
35750
- "anthropic/claude-opus-4.8",
35783
+ "anthropic/claude-opus-5",
35751
35784
  // Newest flagship Opus w/ adaptive thinking
35785
+ "anthropic/claude-opus-4.8",
35786
+ // Prior flagship Opus — identical cost to 5
35752
35787
  "anthropic/claude-opus-4.7",
35753
35788
  // Flagship Opus w/ adaptive thinking
35754
35789
  "anthropic/claude-opus-4.6",
@@ -32,12 +32,12 @@ Use `blockrun/auto` for the best quality/price balance.
32
32
 
33
33
  Use `blockrun/premium` for maximum quality.
34
34
 
35
- | Tier | Primary Model | Input | Output |
36
- | --------- | -------------------- | ----- | ------ |
37
- | SIMPLE | moonshot/kimi-k2.6 | $0.95 | $4.00 |
38
- | MEDIUM | openai/gpt-5.3-codex | $1.75 | $14.00 |
39
- | COMPLEX | claude-opus-4.8 | $5.00 | $25.00 |
40
- | REASONING | claude-sonnet-4.6 | $3.00 | $15.00 |
35
+ | Tier | Primary Model | Input | Output |
36
+ | --------- | -------------------- | ------ | ------ |
37
+ | SIMPLE | moonshot/kimi-k2.6 | $0.95 | $4.00 |
38
+ | MEDIUM | openai/gpt-5.3-codex | $1.75 | $14.00 |
39
+ | COMPLEX | claude-fable-5 | $10.00 | $50.00 |
40
+ | REASONING | claude-sonnet-4.6 | $3.00 | $15.00 |
41
41
 
42
42
  ---
43
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.232",
3
+ "version": "0.12.233",
4
4
  "description": "Smart LLM router — save 85% on inference costs. 55+ models (8 free), one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -877,7 +877,7 @@ fi
877
877
  echo ""
878
878
  echo "Model aliases available:"
879
879
  echo " /model sonnet → claude-sonnet-4.6"
880
- echo " /model opus → claude-opus-4.8"
880
+ echo " /model opus → claude-opus-5"
881
881
  echo " /model codex → openai/gpt-5.3-codex"
882
882
  echo " /model deepseek → deepseek/deepseek-chat"
883
883
  echo " /model free → gpt-oss-120b (default free)"
@@ -135,7 +135,7 @@ Rules handle ~~80% of requests in <1ms. Only ambiguous queries hit the LLM class
135
135
 
136
136
  ## Available Models
137
137
 
138
- 55+ models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.5, gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], deepseek-v4-flash [1M context], seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
138
+ 55+ models including: gpt-5.6-terra [balanced, stable default], gpt-5.6-sol [flagship], gpt-5.6-luna [cost-efficient], gpt-5.5, gpt-5.4, gpt-4o, o3, claude-fable-5, claude-opus-5 [Anthropic flagship, 1M ctx], claude-opus-4.8, claude-opus-4.7, claude-opus-4.5, claude-sonnet-5, claude-sonnet-4.6, gemini-3.1-pro, gemini-2.5-flash, deepseek-v4-pro, deepseek-chat, grok-4.5, grok-4.3, grok-build-0.1, kimi-k3 [1M ctx flagship], kimi-k2.7, qwen3.7-max [Qwen flagship, 1M ctx], and 8 free NVIDIA models (mistral-large-3-675b [default, 675B flagship], deepseek-v4-flash [1M context], seed-oss-36b [coding], nemotron-3-nano-omni-30b-a3b-reasoning [vision], mistral-nemotron, step-3.7-flash, nemotron-nano-9b-v2, nemotron-nano-12b-v2-vl [vision]).
139
139
 
140
140
  ## Built-in Agent Tools
141
141
 
@@ -4,6 +4,7 @@
4
4
  "eco",
5
5
  "free",
6
6
  "anthropic/claude-fable-5",
7
+ "anthropic/claude-opus-5",
7
8
  "anthropic/claude-opus-4.8",
8
9
  "anthropic/claude-opus-4.7",
9
10
  "anthropic/claude-sonnet-5",