@openclaw/opencode-provider 2026.8.1-beta.3 → 2026.9.1-beta.1

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.
@@ -1,4 +1,4 @@
1
- import { buildStaticOpencodeZenProviderConfig } from "./provider-catalog.js";
1
+ import { n as buildStaticOpencodeZenProviderConfig } from "./provider-catalog-Dak_lvHJ.js";
2
2
  //#region extensions/opencode/provider-discovery.ts
3
3
  const opencodeProviderDiscovery = {
4
4
  id: "opencode",
@@ -1,4 +1,4 @@
1
- import { resolveClaudeThinkingProfile } from "openclaw/plugin-sdk/provider-model-shared";
1
+ import { resolveClaudeThinkingProfile } from "openclaw/plugin-sdk/claude-model-runtime";
2
2
  //#region extensions/opencode/provider-policy-api.ts
3
3
  const FIXED_REASONING_PROFILE = {
4
4
  levels: [{
@@ -1,31 +1,15 @@
1
1
  {
2
2
  "id": "opencode",
3
3
  "icon": "https://cdn.simpleicons.org/opencode",
4
- "doctorContract": {
5
- "configRepair": true
6
- },
7
- "activation": {
8
- "onStartup": true
9
- },
4
+ "activation": { "onStartup": true },
10
5
  "providerCatalogEntry": "./provider-discovery.ts",
11
6
  "enabledByDefault": true,
12
- "providers": [
13
- "opencode"
14
- ],
7
+ "providers": ["opencode"],
15
8
  "providerEndpoints": [
16
- {
17
- "endpointClass": "opencode-native",
18
- "hostSuffixes": [
19
- "opencode.ai"
20
- ]
21
- }
9
+ { "endpointClass": "opencode-native", "hostSuffixes": ["opencode.ai"] }
22
10
  ],
23
11
  "providerRequest": {
24
- "providers": {
25
- "opencode": {
26
- "family": "opencode"
27
- }
28
- }
12
+ "providers": { "opencode": { "family": "opencode" } }
29
13
  },
30
14
  "modelCatalog": {
31
15
  "providers": {
@@ -40,16 +24,8 @@
40
24
  "provider": "opencode",
41
25
  "baseUrl": "https://opencode.ai/zen",
42
26
  "reasoning": true,
43
- "input": [
44
- "text",
45
- "image"
46
- ],
47
- "cost": {
48
- "input": 5,
49
- "output": 25,
50
- "cacheRead": 0.5,
51
- "cacheWrite": 6.25
52
- },
27
+ "input": ["text", "image"],
28
+ "cost": { "input": 5, "output": 25, "cacheRead": 0.5, "cacheWrite": 6.25 },
53
29
  "contextWindow": 1000000,
54
30
  "maxTokens": 128000,
55
31
  "compat": {
@@ -60,73 +36,6 @@
60
36
  "codeMode": "capable"
61
37
  }
62
38
  },
63
- {
64
- "id": "claude-opus-4-8",
65
- "name": "Claude Opus 4.8",
66
- "api": "anthropic-messages",
67
- "provider": "opencode",
68
- "baseUrl": "https://opencode.ai/zen",
69
- "reasoning": true,
70
- "input": [
71
- "text",
72
- "image"
73
- ],
74
- "cost": {
75
- "input": 5,
76
- "output": 25,
77
- "cacheRead": 0.5,
78
- "cacheWrite": 6.25
79
- },
80
- "contextWindow": 1000000,
81
- "maxTokens": 128000,
82
- "compat": {
83
- "supportsUsageInStreaming": true,
84
- "supportsReasoningEffort": true,
85
- "supportedReasoningEfforts": ["low", "medium", "high", "xhigh", "max"],
86
- "maxTokensField": "max_tokens",
87
- "codeMode": "capable"
88
- },
89
- "status": "deprecated",
90
- "replacedBy": "claude-opus-5"
91
- },
92
- {
93
- "id": "claude-sonnet-4",
94
- "name": "Claude Sonnet 4",
95
- "api": "anthropic-messages",
96
- "provider": "opencode",
97
- "baseUrl": "https://opencode.ai/zen",
98
- "reasoning": true,
99
- "input": ["text", "image"],
100
- "cost": {
101
- "input": 3,
102
- "output": 15,
103
- "cacheRead": 0.3,
104
- "cacheWrite": 3.75,
105
- "tieredPricing": [
106
- {
107
- "input": 3,
108
- "output": 15,
109
- "cacheRead": 0.3,
110
- "cacheWrite": 3.75,
111
- "range": [0, 200000]
112
- },
113
- {
114
- "input": 6,
115
- "output": 22.5,
116
- "cacheRead": 0.6,
117
- "cacheWrite": 7.5,
118
- "range": [200000]
119
- }
120
- ]
121
- },
122
- "contextWindow": 1000000,
123
- "maxTokens": 64000,
124
- "compat": {
125
- "supportsUsageInStreaming": true,
126
- "maxTokensField": "max_tokens"
127
- },
128
- "status": "deprecated"
129
- },
130
39
  {
131
40
  "id": "gpt-5.6-sol",
132
41
  "name": "GPT-5.6 Sol",
@@ -134,10 +43,7 @@
134
43
  "provider": "opencode",
135
44
  "baseUrl": "https://opencode.ai/zen/v1",
136
45
  "reasoning": true,
137
- "input": [
138
- "text",
139
- "image"
140
- ],
46
+ "input": ["text", "image"],
141
47
  "cost": {
142
48
  "input": 5,
143
49
  "output": 30,
@@ -149,19 +55,14 @@
149
55
  "output": 30,
150
56
  "cacheRead": 0.5,
151
57
  "cacheWrite": 6.25,
152
- "range": [
153
- 0,
154
- 272000
155
- ]
58
+ "range": [0, 272000]
156
59
  },
157
60
  {
158
61
  "input": 10,
159
62
  "output": 45,
160
63
  "cacheRead": 1,
161
64
  "cacheWrite": 12.5,
162
- "range": [
163
- 272000
164
- ]
65
+ "range": [272000]
165
66
  }
166
67
  ]
167
68
  },
@@ -171,88 +72,24 @@
171
72
  "compat": {
172
73
  "supportsUsageInStreaming": true,
173
74
  "supportsReasoningEffort": true,
174
- "supportedReasoningEfforts": [
175
- "none",
176
- "low",
177
- "medium",
178
- "high",
179
- "xhigh",
180
- "max"
181
- ],
75
+ "supportedReasoningEfforts": ["none", "low", "medium", "high", "xhigh", "max"],
182
76
  "maxTokensField": "max_tokens",
183
77
  "codeMode": "capable"
184
78
  }
185
79
  },
186
80
  {
187
- "id": "gpt-5.5",
188
- "name": "GPT-5.5",
81
+ "id": "gpt-5-nano",
82
+ "name": "GPT-5 Nano",
189
83
  "api": "openai-responses",
190
84
  "provider": "opencode",
191
85
  "baseUrl": "https://opencode.ai/zen/v1",
192
86
  "reasoning": true,
193
- "input": [
194
- "text",
195
- "image"
196
- ],
197
- "cost": {
198
- "input": 5,
199
- "output": 30,
200
- "cacheRead": 0.5,
201
- "cacheWrite": 0,
202
- "tieredPricing": [
203
- {
204
- "input": 5,
205
- "output": 30,
206
- "cacheRead": 0.5,
207
- "cacheWrite": 0,
208
- "range": [
209
- 0,
210
- 272000
211
- ]
212
- },
213
- {
214
- "input": 10,
215
- "output": 45,
216
- "cacheRead": 1,
217
- "cacheWrite": 0,
218
- "range": [
219
- 272000
220
- ]
221
- }
222
- ]
223
- },
224
- "contextWindow": 1050000,
225
- "contextTokens": 922000,
87
+ "input": ["text", "image"],
88
+ "cost": { "input": 0.05, "output": 0.4, "cacheRead": 0.005, "cacheWrite": 0 },
89
+ "contextWindow": 400000,
90
+ "contextTokens": 272000,
226
91
  "maxTokens": 128000,
227
- "compat": {
228
- "supportsUsageInStreaming": true,
229
- "supportsReasoningEffort": true,
230
- "supportedReasoningEfforts": ["none", "low", "medium", "high", "xhigh"],
231
- "maxTokensField": "max_tokens",
232
- "codeMode": "capable"
233
- },
234
- "status": "deprecated",
235
- "replacedBy": "gpt-5.6-sol"
236
- },
237
- {
238
- "id": "gemini-3.6-flash",
239
- "name": "Gemini 3.6 Flash",
240
- "api": "google-generative-ai",
241
- "provider": "opencode",
242
- "baseUrl": "https://opencode.ai/zen/v1",
243
- "reasoning": true,
244
- "input": [
245
- "text",
246
- "image"
247
- ],
248
- "cost": {
249
- "input": 1.5,
250
- "output": 7.5,
251
- "cacheRead": 0.15,
252
- "cacheWrite": 0
253
- },
254
- "contextWindow": 1048576,
255
- "maxTokens": 65536,
92
+ "thinkingLevelMap": { "off": null },
256
93
  "compat": {
257
94
  "supportsUsageInStreaming": true,
258
95
  "supportsReasoningEffort": true,
@@ -261,49 +98,20 @@
261
98
  }
262
99
  },
263
100
  {
264
- "id": "gemini-3.1-pro",
265
- "name": "Gemini 3.1 Pro Preview",
101
+ "id": "gemini-3.6-flash",
102
+ "name": "Gemini 3.6 Flash",
266
103
  "api": "google-generative-ai",
267
104
  "provider": "opencode",
268
105
  "baseUrl": "https://opencode.ai/zen/v1",
269
106
  "reasoning": true,
270
- "input": [
271
- "text",
272
- "image"
273
- ],
274
- "cost": {
275
- "input": 2,
276
- "output": 12,
277
- "cacheRead": 0.2,
278
- "cacheWrite": 0,
279
- "tieredPricing": [
280
- {
281
- "input": 2,
282
- "output": 12,
283
- "cacheRead": 0.2,
284
- "cacheWrite": 0,
285
- "range": [
286
- 0,
287
- 200000
288
- ]
289
- },
290
- {
291
- "input": 4,
292
- "output": 18,
293
- "cacheRead": 0.4,
294
- "cacheWrite": 0,
295
- "range": [
296
- 200000
297
- ]
298
- }
299
- ]
300
- },
107
+ "input": ["text", "image"],
108
+ "cost": { "input": 1.5, "output": 7.5, "cacheRead": 0.15, "cacheWrite": 0 },
301
109
  "contextWindow": 1048576,
302
110
  "maxTokens": 65536,
303
111
  "compat": {
304
112
  "supportsUsageInStreaming": true,
305
113
  "supportsReasoningEffort": true,
306
- "supportedReasoningEfforts": ["low", "medium", "high"],
114
+ "supportedReasoningEfforts": ["minimal", "low", "medium", "high"],
307
115
  "maxTokensField": "max_tokens"
308
116
  }
309
117
  },
@@ -314,16 +122,8 @@
314
122
  "provider": "opencode",
315
123
  "baseUrl": "https://opencode.ai/zen/v1",
316
124
  "reasoning": true,
317
- "input": [
318
- "text",
319
- "image"
320
- ],
321
- "cost": {
322
- "input": 0.3,
323
- "output": 1.2,
324
- "cacheRead": 0.06,
325
- "cacheWrite": 0
326
- },
125
+ "input": ["text", "image"],
126
+ "cost": { "input": 0.3, "output": 1.2, "cacheRead": 0.06, "cacheWrite": 0 },
327
127
  "contextWindow": 512000,
328
128
  "maxTokens": 128000,
329
129
  "compat": {
@@ -333,33 +133,6 @@
333
133
  "supportsStrictMode": false
334
134
  }
335
135
  },
336
- {
337
- "id": "minimax-m2.7",
338
- "name": "MiniMax M2.7",
339
- "api": "openai-completions",
340
- "provider": "opencode",
341
- "baseUrl": "https://opencode.ai/zen/v1",
342
- "reasoning": true,
343
- "input": [
344
- "text"
345
- ],
346
- "cost": {
347
- "input": 0.3,
348
- "output": 1.2,
349
- "cacheRead": 0.06,
350
- "cacheWrite": 0
351
- },
352
- "contextWindow": 204800,
353
- "maxTokens": 131072,
354
- "compat": {
355
- "supportsUsageInStreaming": true,
356
- "maxTokensField": "max_tokens",
357
- "supportsDeveloperRole": false,
358
- "supportsStrictMode": false
359
- },
360
- "status": "deprecated",
361
- "replacedBy": "minimax-m3"
362
- },
363
136
  {
364
137
  "id": "kimi-k3",
365
138
  "name": "Kimi K3",
@@ -367,16 +140,8 @@
367
140
  "provider": "opencode",
368
141
  "baseUrl": "https://opencode.ai/zen/v1",
369
142
  "reasoning": true,
370
- "input": [
371
- "text",
372
- "image"
373
- ],
374
- "cost": {
375
- "input": 3,
376
- "output": 15,
377
- "cacheRead": 0.3,
378
- "cacheWrite": 0
379
- },
143
+ "input": ["text", "image"],
144
+ "cost": { "input": 3, "output": 15, "cacheRead": 0.3, "cacheWrite": 0 },
380
145
  "contextWindow": 1048576,
381
146
  "maxTokens": 131072,
382
147
  "compat": {
@@ -396,15 +161,8 @@
396
161
  "provider": "opencode",
397
162
  "baseUrl": "https://opencode.ai/zen/v1",
398
163
  "reasoning": true,
399
- "input": [
400
- "text"
401
- ],
402
- "cost": {
403
- "input": 0,
404
- "output": 0,
405
- "cacheRead": 0,
406
- "cacheWrite": 0
407
- },
164
+ "input": ["text"],
165
+ "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
408
166
  "contextWindow": 200000,
409
167
  "contextTokens": 160000,
410
168
  "maxTokens": 32000,
@@ -414,219 +172,15 @@
414
172
  "supportsDeveloperRole": false,
415
173
  "supportsStrictMode": false
416
174
  }
417
- },
418
- {
419
- "id": "deepseek-v4-flash-free",
420
- "name": "DeepSeek V4 Flash Free",
421
- "api": "openai-completions",
422
- "provider": "opencode",
423
- "baseUrl": "https://opencode.ai/zen/v1",
424
- "reasoning": true,
425
- "input": [
426
- "text"
427
- ],
428
- "cost": {
429
- "input": 0,
430
- "output": 0,
431
- "cacheRead": 0,
432
- "cacheWrite": 0
433
- },
434
- "contextWindow": 200000,
435
- "maxTokens": 128000,
436
- "compat": {
437
- "supportsUsageInStreaming": true,
438
- "supportsReasoningEffort": true,
439
- "supportedReasoningEfforts": ["low", "high", "max"],
440
- "maxTokensField": "max_tokens",
441
- "supportsDeveloperRole": false,
442
- "supportsStrictMode": false
443
- }
444
- },
445
- {
446
- "id": "mimo-v2.5-free",
447
- "name": "MiMo V2.5 Free",
448
- "api": "openai-completions",
449
- "provider": "opencode",
450
- "baseUrl": "https://opencode.ai/zen/v1",
451
- "reasoning": true,
452
- "input": [
453
- "text",
454
- "image"
455
- ],
456
- "cost": {
457
- "input": 0,
458
- "output": 0,
459
- "cacheRead": 0,
460
- "cacheWrite": 0
461
- },
462
- "contextWindow": 200000,
463
- "maxTokens": 32000,
464
- "compat": {
465
- "supportsUsageInStreaming": true,
466
- "maxTokensField": "max_tokens",
467
- "supportsDeveloperRole": false,
468
- "supportsStrictMode": false
469
- }
470
- },
471
- {
472
- "id": "laguna-s-2.1-free",
473
- "name": "Laguna S 2.1 Free",
474
- "api": "openai-completions",
475
- "provider": "opencode",
476
- "baseUrl": "https://opencode.ai/zen/v1",
477
- "reasoning": true,
478
- "input": [
479
- "text"
480
- ],
481
- "cost": {
482
- "input": 0,
483
- "output": 0,
484
- "cacheRead": 0,
485
- "cacheWrite": 0
486
- },
487
- "contextWindow": 256000,
488
- "maxTokens": 32000,
489
- "compat": {
490
- "supportsUsageInStreaming": true,
491
- "supportsReasoningEffort": true,
492
- "supportedReasoningEfforts": ["low", "medium", "high"],
493
- "maxTokensField": "max_tokens",
494
- "supportsDeveloperRole": false,
495
- "supportsStrictMode": false
496
- }
497
- },
498
- {
499
- "id": "ling-3.0-flash-free",
500
- "name": "Ling-3.0-flash Free",
501
- "api": "openai-completions",
502
- "provider": "opencode",
503
- "baseUrl": "https://opencode.ai/zen/v1",
504
- "reasoning": true,
505
- "input": [
506
- "text"
507
- ],
508
- "cost": {
509
- "input": 0,
510
- "output": 0,
511
- "cacheRead": 0,
512
- "cacheWrite": 0
513
- },
514
- "contextWindow": 262144,
515
- "maxTokens": 32768,
516
- "compat": {
517
- "supportsUsageInStreaming": true,
518
- "supportsReasoningEffort": true,
519
- "supportedReasoningEfforts": ["low", "medium", "high"],
520
- "maxTokensField": "max_tokens",
521
- "supportsDeveloperRole": false,
522
- "supportsStrictMode": false
523
- },
524
- "status": "deprecated"
525
- },
526
- {
527
- "id": "nemotron-3-ultra-free",
528
- "name": "Nemotron 3 Ultra Free",
529
- "api": "openai-completions",
530
- "provider": "opencode",
531
- "baseUrl": "https://opencode.ai/zen/v1",
532
- "reasoning": true,
533
- "input": [
534
- "text"
535
- ],
536
- "cost": {
537
- "input": 0,
538
- "output": 0,
539
- "cacheRead": 0,
540
- "cacheWrite": 0
541
- },
542
- "contextWindow": 1000000,
543
- "maxTokens": 128000,
544
- "compat": {
545
- "supportsUsageInStreaming": true,
546
- "maxTokensField": "max_tokens",
547
- "supportsDeveloperRole": false,
548
- "supportsStrictMode": false
549
- }
550
- },
551
- {
552
- "id": "north-mini-code-free",
553
- "name": "North Mini Code Free",
554
- "api": "openai-completions",
555
- "provider": "opencode",
556
- "baseUrl": "https://opencode.ai/zen/v1",
557
- "reasoning": true,
558
- "input": [
559
- "text"
560
- ],
561
- "cost": {
562
- "input": 0,
563
- "output": 0,
564
- "cacheRead": 0,
565
- "cacheWrite": 0
566
- },
567
- "contextWindow": 256000,
568
- "maxTokens": 64000,
569
- "compat": {
570
- "supportsUsageInStreaming": true,
571
- "supportsReasoningEffort": true,
572
- "supportedReasoningEfforts": ["none", "high"],
573
- "maxTokensField": "max_tokens",
574
- "supportsDeveloperRole": false,
575
- "supportsStrictMode": false
576
- }
577
- },
578
- {
579
- "id": "ling-3.0-tiny-free",
580
- "name": "Ling-3.0-tiny Free",
581
- "api": "openai-completions",
582
- "provider": "opencode",
583
- "baseUrl": "https://opencode.ai/zen/v1",
584
- "reasoning": true,
585
- "input": ["text"],
586
- "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
587
- "contextWindow": 262144,
588
- "maxTokens": 32768,
589
- "compat": {
590
- "supportsUsageInStreaming": true,
591
- "maxTokensField": "max_tokens",
592
- "supportsDeveloperRole": false,
593
- "supportsStrictMode": false
594
- }
595
- },
596
- {
597
- "id": "longcat-2.0-free",
598
- "name": "LongCat-2.0 Free",
599
- "api": "openai-completions",
600
- "provider": "opencode",
601
- "baseUrl": "https://opencode.ai/zen/v1",
602
- "reasoning": true,
603
- "input": ["text"],
604
- "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
605
- "contextWindow": 1000000,
606
- "maxTokens": 131072,
607
- "compat": {
608
- "supportsUsageInStreaming": true,
609
- "maxTokensField": "max_tokens",
610
- "supportsDeveloperRole": false,
611
- "supportsStrictMode": false
612
- }
613
175
  }
614
176
  ]
615
177
  }
616
178
  },
617
- "discovery": {
618
- "opencode": "runtime"
619
- }
179
+ "discovery": { "opencode": "runtime" }
620
180
  },
621
181
  "setup": {
622
182
  "providers": [
623
- {
624
- "id": "opencode",
625
- "envVars": [
626
- "OPENCODE_API_KEY",
627
- "OPENCODE_ZEN_API_KEY"
628
- ]
629
- }
183
+ { "id": "opencode", "envVars": ["OPENCODE_API_KEY", "OPENCODE_ZEN_API_KEY"] }
630
184
  ]
631
185
  },
632
186
  "providerAuthChoices": [
@@ -645,19 +199,11 @@
645
199
  "cliDescription": "OpenCode API key (Zen catalog)"
646
200
  }
647
201
  ],
648
- "contracts": {
649
- "mediaUnderstandingProviders": [
650
- "opencode"
651
- ]
652
- },
202
+ "contracts": { "mediaUnderstandingProviders": ["opencode"] },
653
203
  "mediaUnderstandingProviderMetadata": {
654
204
  "opencode": {
655
- "capabilities": [
656
- "image"
657
- ],
658
- "defaultModels": {
659
- "image": "gpt-5-nano"
660
- }
205
+ "capabilities": ["image"],
206
+ "defaultModels": { "image": "gpt-5-nano" }
661
207
  }
662
208
  },
663
209
  "configSchema": {
@@ -668,10 +214,7 @@
668
214
  "type": "object",
669
215
  "additionalProperties": false,
670
216
  "properties": {
671
- "enabled": {
672
- "type": "boolean",
673
- "default": true
674
- }
217
+ "enabled": { "type": "boolean", "default": true }
675
218
  }
676
219
  }
677
220
  }