opencode-qwencode-auth 1.1.0 β†’ 1.2.0

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
@@ -8,7 +8,7 @@
8
8
  <img src="assets/screenshot.png" alt="OpenCode with Qwen Code" width="800">
9
9
  </p>
10
10
 
11
- **Authenticate OpenCode CLI with your qwen.ai account.** This plugin enables you to use Qwen3-Coder models with **2,000 free requests per day** - no API key or credit card required!
11
+ **Authenticate OpenCode CLI with your qwen.ai account.** This plugin enables you to use Qwen models (Coder, Max, Plus and more) with **2,000 free requests per day** - no API key or credit card required!
12
12
 
13
13
  [πŸ‡§πŸ‡· Leia em PortuguΓͺs](./README.pt-BR.md)
14
14
 
@@ -69,22 +69,35 @@ Select **"Qwen Code (qwen.ai OAuth)"**
69
69
 
70
70
  ## 🎯 Available Models
71
71
 
72
+ ### Coding Models
73
+
72
74
  | Model | Context | Max Output | Best For |
73
75
  |-------|---------|------------|----------|
74
76
  | `qwen3-coder-plus` | 1M tokens | 64K tokens | Complex coding tasks |
75
- | `qwen3-coder-flash` | 1M tokens | 64K tokens | Fast responses |
77
+ | `qwen3-coder-flash` | 1M tokens | 64K tokens | Fast coding responses |
78
+
79
+ ### General Purpose Models
80
+
81
+ | Model | Context | Max Output | Reasoning | Best For |
82
+ |-------|---------|------------|-----------|----------|
83
+ | `qwen3-max` | 256K tokens | 64K tokens | No | Flagship model, complex reasoning and tool use |
84
+ | `qwen-plus-latest` | 128K tokens | 16K tokens | Yes | Balanced quality-speed with thinking mode |
85
+ | `qwen3-235b-a22b` | 128K tokens | 32K tokens | Yes | Largest open-weight MoE with thinking mode |
86
+ | `qwen-flash` | 1M tokens | 8K tokens | No | Ultra-fast, low-cost simple tasks |
76
87
 
77
88
  ### Using a specific model
78
89
 
79
90
  ```bash
80
91
  opencode --provider qwen-code --model qwen3-coder-plus
92
+ opencode --provider qwen-code --model qwen3-max
93
+ opencode --provider qwen-code --model qwen-plus-latest
81
94
  ```
82
95
 
83
96
  ## βš™οΈ How It Works
84
97
 
85
98
  ```
86
99
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
87
- β”‚ OpenCode CLI │────▢│ qwen.ai OAuth │────▢│ Qwen3-Coder β”‚
100
+ β”‚ OpenCode CLI │────▢│ qwen.ai OAuth │────▢│ Qwen Models β”‚
88
101
  β”‚ │◀────│ (Device Flow) │◀────│ API β”‚
89
102
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
90
103
  ```
package/README.pt-BR.md CHANGED
@@ -8,7 +8,7 @@
8
8
  <img src="assets/screenshot.png" alt="OpenCode com Qwen Code" width="800">
9
9
  </p>
10
10
 
11
- **Autentique o OpenCode CLI com sua conta qwen.ai.** Este plugin permite usar modelos Qwen3-Coder com **2.000 requisiΓ§Γ΅es gratuitas por dia** - sem API key ou cartΓ£o de crΓ©dito!
11
+ **Autentique o OpenCode CLI com sua conta qwen.ai.** Este plugin permite usar modelos Qwen (Coder, Max, Plus e mais) com **2.000 requisiΓ§Γ΅es gratuitas por dia** - sem API key ou cartΓ£o de crΓ©dito!
12
12
 
13
13
  [πŸ‡ΊπŸ‡Έ Read in English](./README.md)
14
14
 
@@ -69,22 +69,35 @@ Selecione **"Qwen Code (qwen.ai OAuth)"**
69
69
 
70
70
  ## 🎯 Modelos DisponΓ­veis
71
71
 
72
+ ### Modelos de CΓ³digo
73
+
72
74
  | Modelo | Contexto | Max Output | Melhor Para |
73
75
  |--------|----------|------------|-------------|
74
76
  | `qwen3-coder-plus` | 1M tokens | 64K tokens | Tarefas complexas de cΓ³digo |
75
- | `qwen3-coder-flash` | 1M tokens | 64K tokens | Respostas rΓ‘pidas |
77
+ | `qwen3-coder-flash` | 1M tokens | 64K tokens | Respostas rΓ‘pidas de cΓ³digo |
78
+
79
+ ### Modelos de PropΓ³sito Geral
80
+
81
+ | Modelo | Contexto | Max Output | Reasoning | Melhor Para |
82
+ |--------|----------|------------|-----------|-------------|
83
+ | `qwen3-max` | 256K tokens | 64K tokens | NΓ£o | Modelo flagship, raciocΓ­nio complexo e tool use |
84
+ | `qwen-plus-latest` | 128K tokens | 16K tokens | Sim | EquilΓ­brio qualidade-velocidade com thinking mode |
85
+ | `qwen3-235b-a22b` | 128K tokens | 32K tokens | Sim | Maior modelo open-weight MoE com thinking mode |
86
+ | `qwen-flash` | 1M tokens | 8K tokens | NΓ£o | Ultra-rΓ‘pido, baixo custo para tarefas simples |
76
87
 
77
88
  ### Usando um modelo especΓ­fico
78
89
 
79
90
  ```bash
80
91
  opencode --provider qwen-code --model qwen3-coder-plus
92
+ opencode --provider qwen-code --model qwen3-max
93
+ opencode --provider qwen-code --model qwen-plus-latest
81
94
  ```
82
95
 
83
96
  ## βš™οΈ Como Funciona
84
97
 
85
98
  ```
86
99
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
87
- β”‚ OpenCode CLI │────▢│ qwen.ai OAuth │────▢│ Qwen3-Coder β”‚
100
+ β”‚ OpenCode CLI │────▢│ qwen.ai OAuth │────▢│ Qwen Models β”‚
88
101
  β”‚ │◀────│ (Device Flow) │◀────│ API β”‚
89
102
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
90
103
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-qwencode-auth",
3
- "version": "1.1.0",
4
- "description": "Qwen OAuth authentication plugin for OpenCode - Access Qwen3-Coder models with your qwen.ai account",
3
+ "version": "1.2.0",
4
+ "description": "Qwen OAuth authentication plugin for OpenCode - Access Qwen AI models (Coder, Max, Plus and more) with your qwen.ai account",
5
5
  "module": "index.ts",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -14,6 +14,9 @@
14
14
  "qwen",
15
15
  "qwen-code",
16
16
  "qwen3-coder",
17
+ "qwen3-max",
18
+ "qwen-plus",
19
+ "qwen-flash",
17
20
  "oauth",
18
21
  "authentication",
19
22
  "ai",
package/src/constants.ts CHANGED
@@ -35,14 +35,16 @@ export const QWEN_API_CONFIG = {
35
35
  export const CALLBACK_PORT = 14561;
36
36
 
37
37
  // Available Qwen models through OAuth
38
- // Baseado nos modelos disponΓ­veis no qwen-code
38
+ // Baseado nos modelos disponΓ­veis no qwen-code + modelos gerais via portal.qwen.ai
39
39
  export const QWEN_MODELS = {
40
+ // --- Coding Models ---
40
41
  'qwen3-coder-plus': {
41
42
  id: 'qwen3-coder-plus',
42
43
  name: 'Qwen3 Coder Plus',
43
44
  contextWindow: 1048576, // 1M tokens
44
45
  maxOutput: 65536, // 64K tokens
45
46
  description: 'Most capable Qwen coding model with 1M context window',
47
+ reasoning: false,
46
48
  cost: { input: 0, output: 0 }, // Free via OAuth
47
49
  },
48
50
  'qwen3-coder-flash': {
@@ -51,6 +53,44 @@ export const QWEN_MODELS = {
51
53
  contextWindow: 1048576,
52
54
  maxOutput: 65536,
53
55
  description: 'Faster Qwen coding model for quick responses',
56
+ reasoning: false,
57
+ cost: { input: 0, output: 0 },
58
+ },
59
+ // --- General Purpose Models ---
60
+ 'qwen3-max': {
61
+ id: 'qwen3-max',
62
+ name: 'Qwen3 Max',
63
+ contextWindow: 262144, // 256K tokens
64
+ maxOutput: 65536, // 64K tokens
65
+ description: 'Flagship ~1T parameter MoE model, best for complex reasoning and tool use',
66
+ reasoning: false,
67
+ cost: { input: 0, output: 0 },
68
+ },
69
+ 'qwen-plus-latest': {
70
+ id: 'qwen-plus-latest',
71
+ name: 'Qwen Plus',
72
+ contextWindow: 131072, // 128K tokens
73
+ maxOutput: 16384, // 16K tokens
74
+ description: 'Balanced model with thinking mode, good quality-speed tradeoff',
75
+ reasoning: true,
76
+ cost: { input: 0, output: 0 },
77
+ },
78
+ 'qwen3-235b-a22b': {
79
+ id: 'qwen3-235b-a22b',
80
+ name: 'Qwen3 235B-A22B',
81
+ contextWindow: 131072, // 128K tokens
82
+ maxOutput: 32768, // 32K tokens
83
+ description: 'Largest open-weight Qwen3 MoE model with thinking mode',
84
+ reasoning: true,
85
+ cost: { input: 0, output: 0 },
86
+ },
87
+ 'qwen-flash': {
88
+ id: 'qwen-flash',
89
+ name: 'Qwen Flash',
90
+ contextWindow: 1048576, // 1M tokens
91
+ maxOutput: 8192, // 8K tokens
92
+ description: 'Ultra-fast and low-cost model for simple tasks',
93
+ reasoning: false,
54
94
  cost: { input: 0, output: 0 },
55
95
  },
56
96
  } as const;
package/src/index.ts CHANGED
@@ -214,7 +214,7 @@ export const QwenAuthPlugin = async (_input: unknown) => {
214
214
  {
215
215
  id: m.id,
216
216
  name: m.name,
217
- reasoning: false,
217
+ reasoning: m.reasoning,
218
218
  limit: { context: m.contextWindow, output: m.maxOutput },
219
219
  cost: m.cost,
220
220
  modalities: { input: ['text'], output: ['text'] },