@xtruder/opencode-claude-max-plugin 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/README.md +31 -65
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -31,13 +31,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
31
31
  "reasoning": true,
32
32
  "tool_call": true,
33
33
  "temperature": true,
34
+ "limit": { "context": 200000, "output": 64000 },
34
35
  "options": {
35
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
36
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
36
37
  },
37
38
  "variants": {
38
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
39
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
40
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
39
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
40
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
41
41
  }
42
42
  },
43
43
  "claude-opus-4-6": {
@@ -46,13 +46,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
46
46
  "reasoning": true,
47
47
  "tool_call": true,
48
48
  "temperature": true,
49
+ "limit": { "context": 1000000, "output": 64000 },
49
50
  "options": {
50
51
  "thinking": { "type": "adaptive" }
51
52
  },
52
53
  "variants": {
53
- "normal": { "thinking": { "type": "adaptive" } },
54
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
55
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
54
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
55
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
56
56
  }
57
57
  },
58
58
  "claude-opus-4-5-20251101": {
@@ -61,13 +61,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
61
61
  "reasoning": true,
62
62
  "tool_call": true,
63
63
  "temperature": true,
64
+ "limit": { "context": 200000, "output": 32000 },
64
65
  "options": {
65
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
66
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
66
67
  },
67
68
  "variants": {
68
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
69
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
70
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
69
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
70
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
71
71
  }
72
72
  },
73
73
  "claude-sonnet-4-5-20250929": {
@@ -76,13 +76,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
76
76
  "reasoning": true,
77
77
  "tool_call": true,
78
78
  "temperature": true,
79
+ "limit": { "context": 200000, "output": 64000 },
79
80
  "options": {
80
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
81
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
81
82
  },
82
83
  "variants": {
83
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
84
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
85
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
84
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
85
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
86
86
  }
87
87
  },
88
88
  "claude-haiku-4-5-20251001": {
@@ -90,7 +90,8 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
90
90
  "attachment": false,
91
91
  "reasoning": false,
92
92
  "tool_call": true,
93
- "temperature": true
93
+ "temperature": true,
94
+ "limit": { "context": 200000, "output": 8192 }
94
95
  },
95
96
  "claude-opus-4-1-20250805": {
96
97
  "name": "Claude Opus 4.1",
@@ -98,13 +99,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
98
99
  "reasoning": true,
99
100
  "tool_call": true,
100
101
  "temperature": true,
102
+ "limit": { "context": 200000, "output": 32000 },
101
103
  "options": {
102
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
104
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
103
105
  },
104
106
  "variants": {
105
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
106
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
107
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
107
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
108
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
108
109
  }
109
110
  },
110
111
  "claude-opus-4-20250514": {
@@ -113,13 +114,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
113
114
  "reasoning": true,
114
115
  "tool_call": true,
115
116
  "temperature": true,
117
+ "limit": { "context": 200000, "output": 32000 },
116
118
  "options": {
117
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
119
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
118
120
  },
119
121
  "variants": {
120
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
121
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
122
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
122
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
123
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
123
124
  }
124
125
  },
125
126
  "claude-sonnet-4-20250514": {
@@ -128,13 +129,13 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
128
129
  "reasoning": true,
129
130
  "tool_call": true,
130
131
  "temperature": true,
132
+ "limit": { "context": 200000, "output": 64000 },
131
133
  "options": {
132
- "thinking": { "type": "enabled", "budgetTokens": 10000 }
134
+ "thinking": { "type": "enabled", "budgetTokens": 1024 }
133
135
  },
134
136
  "variants": {
135
- "normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
136
- "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
137
- "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
137
+ "high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
138
+ "max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
138
139
  }
139
140
  },
140
141
  "claude-3-haiku-20240307": {
@@ -142,7 +143,8 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
142
143
  "attachment": false,
143
144
  "reasoning": false,
144
145
  "tool_call": true,
145
- "temperature": true
146
+ "temperature": true,
147
+ "limit": { "context": 200000, "output": 4096 }
146
148
  }
147
149
  }
148
150
  }
@@ -161,42 +163,6 @@ Credentials are resolved in order:
161
163
 
162
164
  For Claude Code credentials, log in via `claude` CLI first (`claude auth login`).
163
165
 
164
- ## Models
165
-
166
- | Model ID | Name | Thinking | Notes |
167
- |---|---|---|---|
168
- | `claude-opus-4-6` | Claude Opus 4.6 | ✓ | Native 1M context window |
169
- | `claude-sonnet-4-6` | Claude Sonnet 4.6 | ✓ | ~120K token limit on subscription |
170
- | `claude-opus-4-5-20251101` | Claude Opus 4.5 | ✓ | |
171
- | `claude-sonnet-4-5-20250929` | Claude Sonnet 4.5 | ✓ | |
172
- | `claude-haiku-4-5-20251001` | Claude Haiku 4.5 | — | 200K token hard limit |
173
- | `claude-opus-4-1-20250805` | Claude Opus 4.1 | ✓ | |
174
- | `claude-opus-4-20250514` | Claude Opus 4 | ✓ | |
175
- | `claude-sonnet-4-20250514` | Claude Sonnet 4 | ✓ | |
176
- | `claude-3-haiku-20240307` | Claude 3 Haiku | — | |
177
-
178
- ### Thinking variants
179
-
180
- Reasoning models support thinking levels selectable in OpenCode via `/model`:
181
-
182
- | Variant | Opus 4.6 | Other reasoning models |
183
- |---|---|---|
184
- | **Default** | `adaptive` (Claude decides) | `enabled`, 1024 tokens |
185
- | **high** | `enabled`, 10000 tokens | `enabled`, 10000 tokens |
186
- | **max** | `enabled`, 32000 tokens | `enabled`, 32000 tokens |
187
-
188
- Opus 4.6 uses `{ type: "adaptive" }` by default — Claude decides when and how much to think. Other models default to 1024 tokens (matching Claude Code's `al1 = 1024`).
189
-
190
- ## Context Window Limits
191
-
192
- Tested on Claude Max subscription (Extra usage disabled):
193
-
194
- | Model | Included context | Above limit |
195
- |---|---|---|
196
- | Opus 4.6 | ~615K+ tokens (native 1M) | Not tested |
197
- | Sonnet 4.6 | ~120K tokens | 429 — enable Extra usage at claude.ai |
198
- | Haiku 4.5 | 200K tokens (hard limit) | `prompt is too long` error |
199
-
200
166
  ## Features
201
167
 
202
168
  - Streaming and non-streaming completions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtruder/opencode-claude-max-plugin",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "OpenCode plugin for Claude Max/Pro subscription via @anthropic-ai/sdk - uses Claude Code OAuth credentials",
5
5
  "type": "module",
6
6
  "main": "build/index.js",