@monotykamary/pi-opencode-provider 1.0.7 → 1.0.9

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
@@ -15,7 +15,7 @@ _GPT, Claude, Gemini, GLM, MiniMax, Kimi, DeepSeek — unified API for [pi](http
15
15
 
16
16
  ## Features
17
17
 
18
- - **62+ AI Models** including GPT-5.x Codex, Claude Opus/Sonnet/Haiku, Gemini 3.x, GLM, MiniMax, Kimi K2.5, and more
18
+ - **64+ AI Models** including GPT-5.x Codex, Claude Opus/Sonnet/Haiku, Gemini 3.x, GLM, MiniMax, Kimi K2.5, and more
19
19
  - **Multi-API Support** — uses the correct API protocol per model (Anthropic, OpenAI Responses, OpenAI Completions, Gemini)
20
20
  - **Cost Tracking** with per-model pricing for budget management
21
21
  - **Reasoning Models** with thinking level maps for proper effort control
@@ -77,7 +77,6 @@ pi
77
77
  | Big Pickle | Completions | Text | 200K | 32K | Free | Free |
78
78
  | Claude Fable 5 | Anthropic | Text + Image | 1.0M | 128K | $10.00 | $50.00 |
79
79
  | Claude Haiku 4.5 | Anthropic | Text + Image | 200K | 64K | $1.00 | $5.00 |
80
- | Claude Opus 4.1 | Anthropic | Text + Image | 200K | 32K | $15.00 | $75.00 |
81
80
  | Claude Opus 4.5 | Anthropic | Text + Image | 200K | 64K | $5.00 | $25.00 |
82
81
  | Claude Opus 4.6 | Anthropic | Text + Image | 1.0M | 128K | $5.00 | $25.00 |
83
82
  | Claude Opus 4.7 | Anthropic | Text + Image | 1.0M | 128K | $5.00 | $25.00 |
@@ -96,6 +95,7 @@ pi
96
95
  | Gemini 3.5 Flash | Gemini | Text + Image | 1.0M | 66K | $1.50 | $9.00 |
97
96
  | Gemini 3.5 Flash Lite | Gemini | Text + Image | 1.0M | 66K | $0.30 | $2.50 |
98
97
  | Gemini 3.6 Flash | Gemini | Text + Image | 1.0M | 66K | $1.50 | $7.50 |
98
+ | Gemini 3.7 Flash | Gemini | Text + Image | 1.0M | 66K | $1.50 | $7.50 |
99
99
  | GLM-5 | Completions | Text | 205K | 131K | $1.00 | $3.20 |
100
100
  | GLM-5.1 | Completions | Text | 205K | 131K | $1.40 | $4.40 |
101
101
  | GLM-5.2 | Completions | Text | 1.0M | 131K | $1.40 | $4.40 |
@@ -116,24 +116,26 @@ pi
116
116
  | GPT-5.4 Pro | Responses | Text + Image | 1.1M | 128K | $30.00 | $180.00 |
117
117
  | GPT-5.5 | Responses | Text + Image | 1.1M | 128K | $5.00 | $30.00 |
118
118
  | GPT-5.5 Pro | Responses | Text + Image | 1.1M | 128K | $30.00 | $180.00 |
119
- | GPT-5.6 Luna | Responses | Text + Image | 1.1M | 128K | $1.00 | $6.00 |
119
+ | GPT-5.6 Luna | Responses | Text + Image | 1.1M | 128K | $0.20 | $1.20 |
120
120
  | GPT-5.6 Sol | Responses | Text + Image | 1.1M | 128K | $5.00 | $30.00 |
121
121
  | GPT-5.6 Terra | Responses | Text + Image | 1.1M | 128K | $2.50 | $15.00 |
122
122
  | Grok 4.5 | Responses | Text + Image | 500K | 500K | $2.00 | $6.00 |
123
+ | Grok 4.6 | Responses | Text + Image | 500K | 500K | $2.00 | $6.00 |
123
124
  | Grok Build 0.1 | Completions | Text + Image | 256K | 256K | $1.00 | $2.00 |
124
125
  | Grok Code | Completions | Text + Image | 256K | 256K | $1.00 | $2.00 |
126
+ | Hy3 Free | Completions | Text | 190K | 64K | Free | Free |
125
127
  | Kimi K2.5 | Completions | Text + Image | 262K | 66K | $0.60 | $3.00 |
126
128
  | Kimi K2.6 | Completions | Text + Image | 262K | 66K | $0.95 | $4.00 |
127
129
  | Kimi K2.7 Code | Completions | Text + Image | 262K | 262K | $0.95 | $4.00 |
128
130
  | Kimi K3 | Completions | Text + Image | 1.0M | 131K | $3.00 | $15.00 |
129
131
  | Laguna S 2.1 Free | Completions | Text | 256K | 32K | Free | Free |
130
- | Ling-3.0-flash Free | Completions | Text | 262K | 33K | Free | Free |
131
132
  | MiMo V2.5 Free | Completions | Text + Image | 200K | 32K | Free | Free |
132
133
  | MiniMax-M2.5 | Completions | Text | 205K | 131K | $0.30 | $1.20 |
133
134
  | MiniMax-M2.7 | Completions | Text | 205K | 131K | $0.30 | $1.20 |
134
135
  | MiniMax-M3 | Completions | Text + Image | 512K | 128K | $0.30 | $1.20 |
136
+ | Muse Spark 1.2 | Responses | Text + Image | 1.0M | 131K | $1.25 | $4.25 |
135
137
  | Nemotron 3 Ultra Free | Completions | Text | 1.0M | 128K | Free | Free |
136
- | North Mini Code Free | Completions | Text | 256K | 64K | Free | Free |
138
+ | Nemotron 3.5 Lightning Free | Completions | Text | 262K | 262K | Free | Free |
137
139
  | Qwen3.5 Plus | Anthropic | Text + Image | 262K | 66K | $0.20 | $1.20 |
138
140
  | Qwen3.6 Plus | Anthropic | Text + Image | 262K | 66K | $0.50 | $3.00 |
139
141
  *Costs are per million tokens. Prices subject to change - check [opencode.ai](https://opencode.ai) for current pricing.*
@@ -1 +1,98 @@
1
- {}
1
+ {
2
+ "claude-opus-4-1": {
3
+ "id": "claude-opus-4-1",
4
+ "name": "Claude Opus 4.1",
5
+ "api": "anthropic-messages",
6
+ "baseUrl": "https://opencode.ai/zen",
7
+ "reasoning": true,
8
+ "input": [
9
+ "text",
10
+ "image"
11
+ ],
12
+ "cost": {
13
+ "input": 15,
14
+ "output": 75,
15
+ "cacheRead": 1.5,
16
+ "cacheWrite": 18.75
17
+ },
18
+ "contextWindow": 200000,
19
+ "maxTokens": 32000,
20
+ "deprecatedAt": "2026-08-07T02:00:18.924Z"
21
+ },
22
+ "ling-3.0-flash-free": {
23
+ "id": "ling-3.0-flash-free",
24
+ "name": "Ling-3.0-flash Free",
25
+ "api": "openai-completions",
26
+ "baseUrl": "https://opencode.ai/zen/v1",
27
+ "reasoning": true,
28
+ "input": [
29
+ "text"
30
+ ],
31
+ "cost": {
32
+ "input": 0,
33
+ "output": 0,
34
+ "cacheRead": 0,
35
+ "cacheWrite": 0
36
+ },
37
+ "contextWindow": 262144,
38
+ "maxTokens": 32768,
39
+ "deprecatedAt": "2026-08-08T02:00:18.268Z"
40
+ },
41
+ "north-mini-code-free": {
42
+ "id": "north-mini-code-free",
43
+ "name": "North Mini Code Free",
44
+ "api": "openai-completions",
45
+ "baseUrl": "https://opencode.ai/zen/v1",
46
+ "reasoning": true,
47
+ "input": [
48
+ "text"
49
+ ],
50
+ "cost": {
51
+ "input": 0,
52
+ "output": 0,
53
+ "cacheRead": 0,
54
+ "cacheWrite": 0
55
+ },
56
+ "contextWindow": 256000,
57
+ "maxTokens": 64000,
58
+ "deprecatedAt": "2026-08-12T02:00:24.970Z"
59
+ },
60
+ "longcat-2.0-free": {
61
+ "id": "longcat-2.0-free",
62
+ "name": "LongCat-2.0 Free",
63
+ "api": "openai-completions",
64
+ "baseUrl": "https://opencode.ai/zen/v1",
65
+ "reasoning": true,
66
+ "input": [
67
+ "text"
68
+ ],
69
+ "cost": {
70
+ "input": 0,
71
+ "output": 0,
72
+ "cacheRead": 0,
73
+ "cacheWrite": 0
74
+ },
75
+ "contextWindow": 1000000,
76
+ "maxTokens": 131072,
77
+ "deprecatedAt": "2026-08-12T06:38:24.559Z"
78
+ },
79
+ "ling-3.0-tiny-free": {
80
+ "id": "ling-3.0-tiny-free",
81
+ "name": "Ling-3.0-tiny Free",
82
+ "api": "openai-completions",
83
+ "baseUrl": "https://opencode.ai/zen/v1",
84
+ "reasoning": true,
85
+ "input": [
86
+ "text"
87
+ ],
88
+ "cost": {
89
+ "input": 0,
90
+ "output": 0,
91
+ "cacheRead": 0,
92
+ "cacheWrite": 0
93
+ },
94
+ "contextWindow": 262144,
95
+ "maxTokens": 32768,
96
+ "deprecatedAt": "2026-08-14T02:00:20.260Z"
97
+ }
98
+ }
package/models.json CHANGED
@@ -224,6 +224,25 @@
224
224
  "contextWindow": 1048576,
225
225
  "maxTokens": 65536
226
226
  },
227
+ {
228
+ "id": "gemini-3.7-flash",
229
+ "name": "Gemini 3.7 Flash",
230
+ "api": "google-generative-ai",
231
+ "baseUrl": "https://opencode.ai/zen/v1",
232
+ "reasoning": true,
233
+ "input": [
234
+ "text",
235
+ "image"
236
+ ],
237
+ "cost": {
238
+ "input": 1.5,
239
+ "output": 7.5,
240
+ "cacheRead": 0.15,
241
+ "cacheWrite": 0
242
+ },
243
+ "contextWindow": 1048576,
244
+ "maxTokens": 65536
245
+ },
227
246
  {
228
247
  "id": "claude-opus-4-6",
229
248
  "name": "Claude Opus 4.6",
@@ -283,7 +302,7 @@
283
302
  },
284
303
  {
285
304
  "id": "deepseek-v4-flash",
286
- "name": "DeepSeek V4 Flash 0731",
305
+ "name": "DeepSeek V4 Flash",
287
306
  "api": "openai-completions",
288
307
  "baseUrl": "https://opencode.ai/zen/v1",
289
308
  "reasoning": true,
@@ -355,24 +374,6 @@
355
374
  "contextWindow": 1000000,
356
375
  "maxTokens": 128000
357
376
  },
358
- {
359
- "id": "north-mini-code-free",
360
- "name": "North Mini Code Free",
361
- "api": "openai-completions",
362
- "baseUrl": "https://opencode.ai/zen/v1",
363
- "reasoning": true,
364
- "input": [
365
- "text"
366
- ],
367
- "cost": {
368
- "input": 0,
369
- "output": 0,
370
- "cacheRead": 0,
371
- "cacheWrite": 0
372
- },
373
- "contextWindow": 256000,
374
- "maxTokens": 64000
375
- },
376
377
  {
377
378
  "id": "glm-5.2",
378
379
  "name": "GLM-5.2",
@@ -391,24 +392,6 @@
391
392
  "contextWindow": 1000000,
392
393
  "maxTokens": 131072
393
394
  },
394
- {
395
- "id": "ling-3.0-flash-free",
396
- "name": "Ling-3.0-flash Free",
397
- "api": "openai-completions",
398
- "baseUrl": "https://opencode.ai/zen/v1",
399
- "reasoning": true,
400
- "input": [
401
- "text"
402
- ],
403
- "cost": {
404
- "input": 0,
405
- "output": 0,
406
- "cacheRead": 0,
407
- "cacheWrite": 0
408
- },
409
- "contextWindow": 262144,
410
- "maxTokens": 32768
411
- },
412
395
  {
413
396
  "id": "laguna-s-2.1-free",
414
397
  "name": "Laguna S 2.1 Free",
@@ -429,7 +412,7 @@
429
412
  },
430
413
  {
431
414
  "id": "deepseek-v4-flash-free",
432
- "name": "DeepSeek V4 Flash Free (New)",
415
+ "name": "DeepSeek V4 Flash Free",
433
416
  "api": "openai-completions",
434
417
  "baseUrl": "https://opencode.ai/zen/v1",
435
418
  "reasoning": true,
@@ -502,25 +485,6 @@
502
485
  "contextWindow": 1050000,
503
486
  "maxTokens": 128000
504
487
  },
505
- {
506
- "id": "claude-opus-4-1",
507
- "name": "Claude Opus 4.1",
508
- "api": "anthropic-messages",
509
- "baseUrl": "https://opencode.ai/zen",
510
- "reasoning": true,
511
- "input": [
512
- "text",
513
- "image"
514
- ],
515
- "cost": {
516
- "input": 15,
517
- "output": 75,
518
- "cacheRead": 1.5,
519
- "cacheWrite": 18.75
520
- },
521
- "contextWindow": 200000,
522
- "maxTokens": 32000
523
- },
524
488
  {
525
489
  "id": "minimax-m3",
526
490
  "name": "MiniMax-M3",
@@ -691,6 +655,43 @@
691
655
  "contextWindow": 1048576,
692
656
  "maxTokens": 65536
693
657
  },
658
+ {
659
+ "id": "hy3-free",
660
+ "name": "Hy3 Free",
661
+ "api": "openai-completions",
662
+ "baseUrl": "https://opencode.ai/zen/v1",
663
+ "reasoning": true,
664
+ "input": [
665
+ "text"
666
+ ],
667
+ "cost": {
668
+ "input": 0,
669
+ "output": 0,
670
+ "cacheRead": 0,
671
+ "cacheWrite": 0
672
+ },
673
+ "contextWindow": 190000,
674
+ "maxTokens": 64000
675
+ },
676
+ {
677
+ "id": "muse-spark-1.2",
678
+ "name": "Muse Spark 1.2",
679
+ "api": "openai-responses",
680
+ "baseUrl": "https://opencode.ai/zen/v1",
681
+ "reasoning": true,
682
+ "input": [
683
+ "text",
684
+ "image"
685
+ ],
686
+ "cost": {
687
+ "input": 1.25,
688
+ "output": 4.25,
689
+ "cacheRead": 0.15,
690
+ "cacheWrite": 0
691
+ },
692
+ "contextWindow": 1048576,
693
+ "maxTokens": 131072
694
+ },
694
695
  {
695
696
  "id": "claude-sonnet-4",
696
697
  "name": "Claude Sonnet 4",
@@ -861,6 +862,25 @@
861
862
  "contextWindow": 262144,
862
863
  "maxTokens": 262144
863
864
  },
865
+ {
866
+ "id": "grok-4.6",
867
+ "name": "Grok 4.6",
868
+ "api": "openai-responses",
869
+ "baseUrl": "https://opencode.ai/zen/v1",
870
+ "reasoning": true,
871
+ "input": [
872
+ "text",
873
+ "image"
874
+ ],
875
+ "cost": {
876
+ "input": 2,
877
+ "output": 6,
878
+ "cacheRead": 0.5,
879
+ "cacheWrite": 0
880
+ },
881
+ "contextWindow": 500000,
882
+ "maxTokens": 500000
883
+ },
864
884
  {
865
885
  "id": "gpt-5.1",
866
886
  "name": "GPT-5.1",
@@ -901,7 +921,7 @@
901
921
  {
902
922
  "id": "grok-build-0.1",
903
923
  "name": "Grok Build 0.1",
904
- "api": "openai-completions",
924
+ "api": "openai-responses",
905
925
  "baseUrl": "https://opencode.ai/zen/v1",
906
926
  "reasoning": true,
907
927
  "input": [
@@ -1050,6 +1070,24 @@
1050
1070
  "contextWindow": 1000000,
1051
1071
  "maxTokens": 128000
1052
1072
  },
1073
+ {
1074
+ "id": "nemotron-3.5-lightning-free",
1075
+ "name": "Nemotron 3.5 Lightning Free",
1076
+ "api": "openai-completions",
1077
+ "baseUrl": "https://opencode.ai/zen/v1",
1078
+ "reasoning": true,
1079
+ "input": [
1080
+ "text"
1081
+ ],
1082
+ "cost": {
1083
+ "input": 0,
1084
+ "output": 0,
1085
+ "cacheRead": 0,
1086
+ "cacheWrite": 0
1087
+ },
1088
+ "contextWindow": 262144,
1089
+ "maxTokens": 262144
1090
+ },
1053
1091
  {
1054
1092
  "id": "nemotron-3-ultra-free",
1055
1093
  "name": "Nemotron 3 Ultra Free",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monotykamary/pi-opencode-provider",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Opencode provider extension for pi - Access GPT, Claude, Gemini, GLM, MiniMax, Kimi and more through the opencode.ai API",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/patch.json CHANGED
@@ -185,6 +185,13 @@
185
185
  "maxTokensField": "max_tokens"
186
186
  }
187
187
  },
188
+ "longcat-2.0-free": {
189
+ "compat": {
190
+ "supportsStore": false,
191
+ "supportsDeveloperRole": false,
192
+ "maxTokensField": "max_tokens"
193
+ }
194
+ },
188
195
  "glm-5.2": {
189
196
  "thinkingLevelMap": {
190
197
  "off": null,
@@ -416,12 +423,6 @@
416
423
  }
417
424
  },
418
425
  "gpt-5.6-luna": {
419
- "cost": {
420
- "input": 1,
421
- "output": 6,
422
- "cacheRead": 0.1,
423
- "cacheWrite": 1.25
424
- },
425
426
  "thinkingLevelMap": {
426
427
  "off": null,
427
428
  "minimal": null,
@@ -517,6 +518,7 @@
517
518
  }
518
519
  },
519
520
  "grok-build-0.1": {
521
+ "api": "openai-completions",
520
522
  "thinkingLevelMap": {
521
523
  "off": null,
522
524
  "minimal": null,