@openclaw/opencode-provider 0.0.0 → 2026.8.1-beta.3

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.
@@ -0,0 +1,685 @@
1
+ {
2
+ "id": "opencode",
3
+ "icon": "https://cdn.simpleicons.org/opencode",
4
+ "doctorContract": {
5
+ "configRepair": true
6
+ },
7
+ "activation": {
8
+ "onStartup": true
9
+ },
10
+ "providerCatalogEntry": "./provider-discovery.ts",
11
+ "enabledByDefault": true,
12
+ "providers": [
13
+ "opencode"
14
+ ],
15
+ "providerEndpoints": [
16
+ {
17
+ "endpointClass": "opencode-native",
18
+ "hostSuffixes": [
19
+ "opencode.ai"
20
+ ]
21
+ }
22
+ ],
23
+ "providerRequest": {
24
+ "providers": {
25
+ "opencode": {
26
+ "family": "opencode"
27
+ }
28
+ }
29
+ },
30
+ "modelCatalog": {
31
+ "providers": {
32
+ "opencode": {
33
+ "baseUrl": "https://opencode.ai/zen/v1",
34
+ "api": "openai-completions",
35
+ "models": [
36
+ {
37
+ "id": "claude-opus-5",
38
+ "name": "Claude Opus 5",
39
+ "api": "anthropic-messages",
40
+ "provider": "opencode",
41
+ "baseUrl": "https://opencode.ai/zen",
42
+ "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
+ },
53
+ "contextWindow": 1000000,
54
+ "maxTokens": 128000,
55
+ "compat": {
56
+ "supportsUsageInStreaming": true,
57
+ "supportsReasoningEffort": true,
58
+ "supportedReasoningEfforts": ["low", "medium", "high", "xhigh", "max"],
59
+ "maxTokensField": "max_tokens",
60
+ "codeMode": "capable"
61
+ }
62
+ },
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
+ {
131
+ "id": "gpt-5.6-sol",
132
+ "name": "GPT-5.6 Sol",
133
+ "api": "openai-responses",
134
+ "provider": "opencode",
135
+ "baseUrl": "https://opencode.ai/zen/v1",
136
+ "reasoning": true,
137
+ "input": [
138
+ "text",
139
+ "image"
140
+ ],
141
+ "cost": {
142
+ "input": 5,
143
+ "output": 30,
144
+ "cacheRead": 0.5,
145
+ "cacheWrite": 6.25,
146
+ "tieredPricing": [
147
+ {
148
+ "input": 5,
149
+ "output": 30,
150
+ "cacheRead": 0.5,
151
+ "cacheWrite": 6.25,
152
+ "range": [
153
+ 0,
154
+ 272000
155
+ ]
156
+ },
157
+ {
158
+ "input": 10,
159
+ "output": 45,
160
+ "cacheRead": 1,
161
+ "cacheWrite": 12.5,
162
+ "range": [
163
+ 272000
164
+ ]
165
+ }
166
+ ]
167
+ },
168
+ "contextWindow": 1050000,
169
+ "contextTokens": 922000,
170
+ "maxTokens": 128000,
171
+ "compat": {
172
+ "supportsUsageInStreaming": true,
173
+ "supportsReasoningEffort": true,
174
+ "supportedReasoningEfforts": [
175
+ "none",
176
+ "low",
177
+ "medium",
178
+ "high",
179
+ "xhigh",
180
+ "max"
181
+ ],
182
+ "maxTokensField": "max_tokens",
183
+ "codeMode": "capable"
184
+ }
185
+ },
186
+ {
187
+ "id": "gpt-5.5",
188
+ "name": "GPT-5.5",
189
+ "api": "openai-responses",
190
+ "provider": "opencode",
191
+ "baseUrl": "https://opencode.ai/zen/v1",
192
+ "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,
226
+ "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,
256
+ "compat": {
257
+ "supportsUsageInStreaming": true,
258
+ "supportsReasoningEffort": true,
259
+ "supportedReasoningEfforts": ["minimal", "low", "medium", "high"],
260
+ "maxTokensField": "max_tokens"
261
+ }
262
+ },
263
+ {
264
+ "id": "gemini-3.1-pro",
265
+ "name": "Gemini 3.1 Pro Preview",
266
+ "api": "google-generative-ai",
267
+ "provider": "opencode",
268
+ "baseUrl": "https://opencode.ai/zen/v1",
269
+ "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
+ },
301
+ "contextWindow": 1048576,
302
+ "maxTokens": 65536,
303
+ "compat": {
304
+ "supportsUsageInStreaming": true,
305
+ "supportsReasoningEffort": true,
306
+ "supportedReasoningEfforts": ["low", "medium", "high"],
307
+ "maxTokensField": "max_tokens"
308
+ }
309
+ },
310
+ {
311
+ "id": "minimax-m3",
312
+ "name": "MiniMax M3",
313
+ "api": "openai-completions",
314
+ "provider": "opencode",
315
+ "baseUrl": "https://opencode.ai/zen/v1",
316
+ "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
+ },
327
+ "contextWindow": 512000,
328
+ "maxTokens": 128000,
329
+ "compat": {
330
+ "supportsUsageInStreaming": true,
331
+ "maxTokensField": "max_tokens",
332
+ "supportsDeveloperRole": false,
333
+ "supportsStrictMode": false
334
+ }
335
+ },
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
+ {
364
+ "id": "kimi-k3",
365
+ "name": "Kimi K3",
366
+ "api": "openai-completions",
367
+ "provider": "opencode",
368
+ "baseUrl": "https://opencode.ai/zen/v1",
369
+ "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
+ },
380
+ "contextWindow": 1048576,
381
+ "maxTokens": 131072,
382
+ "compat": {
383
+ "supportsUsageInStreaming": true,
384
+ "supportsReasoningEffort": true,
385
+ "supportedReasoningEfforts": ["max"],
386
+ "maxTokensField": "max_tokens",
387
+ "supportsDeveloperRole": false,
388
+ "supportsStrictMode": false,
389
+ "codeMode": "capable"
390
+ }
391
+ },
392
+ {
393
+ "id": "big-pickle",
394
+ "name": "Big Pickle",
395
+ "api": "openai-completions",
396
+ "provider": "opencode",
397
+ "baseUrl": "https://opencode.ai/zen/v1",
398
+ "reasoning": true,
399
+ "input": [
400
+ "text"
401
+ ],
402
+ "cost": {
403
+ "input": 0,
404
+ "output": 0,
405
+ "cacheRead": 0,
406
+ "cacheWrite": 0
407
+ },
408
+ "contextWindow": 200000,
409
+ "contextTokens": 160000,
410
+ "maxTokens": 32000,
411
+ "compat": {
412
+ "supportsUsageInStreaming": true,
413
+ "maxTokensField": "max_tokens",
414
+ "supportsDeveloperRole": false,
415
+ "supportsStrictMode": false
416
+ }
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
+ }
614
+ ]
615
+ }
616
+ },
617
+ "discovery": {
618
+ "opencode": "runtime"
619
+ }
620
+ },
621
+ "setup": {
622
+ "providers": [
623
+ {
624
+ "id": "opencode",
625
+ "envVars": [
626
+ "OPENCODE_API_KEY",
627
+ "OPENCODE_ZEN_API_KEY"
628
+ ]
629
+ }
630
+ ]
631
+ },
632
+ "providerAuthChoices": [
633
+ {
634
+ "provider": "opencode",
635
+ "method": "api-key",
636
+ "choiceId": "opencode-zen",
637
+ "appGuidedSecret": true,
638
+ "choiceLabel": "OpenCode Zen catalog",
639
+ "groupId": "opencode",
640
+ "groupLabel": "OpenCode",
641
+ "groupHint": "Shared API key infrastructure for Zen + Go",
642
+ "optionKey": "opencodeZenApiKey",
643
+ "cliFlag": "--opencode-zen-api-key",
644
+ "cliOption": "--opencode-zen-api-key <key>",
645
+ "cliDescription": "OpenCode API key (Zen catalog)"
646
+ }
647
+ ],
648
+ "contracts": {
649
+ "mediaUnderstandingProviders": [
650
+ "opencode"
651
+ ]
652
+ },
653
+ "mediaUnderstandingProviderMetadata": {
654
+ "opencode": {
655
+ "capabilities": [
656
+ "image"
657
+ ],
658
+ "defaultModels": {
659
+ "image": "gpt-5-nano"
660
+ }
661
+ }
662
+ },
663
+ "configSchema": {
664
+ "type": "object",
665
+ "additionalProperties": false,
666
+ "properties": {
667
+ "sessionCatalog": {
668
+ "type": "object",
669
+ "additionalProperties": false,
670
+ "properties": {
671
+ "enabled": {
672
+ "type": "boolean",
673
+ "default": true
674
+ }
675
+ }
676
+ }
677
+ }
678
+ },
679
+ "uiHints": {
680
+ "sessionCatalog.enabled": {
681
+ "label": "OpenCode Session Catalog",
682
+ "help": "Auto-detect OpenCode sessions on the Gateway and paired nodes, then show them in the sessions sidebar."
683
+ }
684
+ }
685
+ }