@xtruder/opencode-claude-max-plugin 0.1.9 → 0.1.11
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 +9 -126
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ An [OpenCode](https://opencode.ai/) plugin that enables Claude Pro/Max subscript
|
|
|
7
7
|
- **Use your Claude subscription** — Automatically reads OAuth credentials from Claude Code, no separate API key needed
|
|
8
8
|
- **Matches Claude Code exactly** — Same headers, billing, tool names, and request format as Claude Code CLI
|
|
9
9
|
- **Prompt caching** — 98% of input tokens served from cache (system prompt + tools cached globally)
|
|
10
|
-
- **All Claude models** — Opus 4.6, Sonnet 4.6,
|
|
10
|
+
- **All Claude models** — Opus 4.6, Sonnet 4.6, Haiku 4.5
|
|
11
11
|
- **Extended thinking** — Full reasoning support with thinking variants (high/max)
|
|
12
12
|
- **Usage tracking** — Built-in `/usage` command shows subscription utilization
|
|
13
13
|
|
|
@@ -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":
|
|
36
|
+
"thinking": { "type": "enabled", "budgetTokens": 1024 }
|
|
36
37
|
},
|
|
37
38
|
"variants": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
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,43 +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
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"claude-opus-4-5-20251101": {
|
|
59
|
-
"name": "Claude Opus 4.5",
|
|
60
|
-
"attachment": false,
|
|
61
|
-
"reasoning": true,
|
|
62
|
-
"tool_call": true,
|
|
63
|
-
"temperature": true,
|
|
64
|
-
"options": {
|
|
65
|
-
"thinking": { "type": "enabled", "budgetTokens": 10000 }
|
|
66
|
-
},
|
|
67
|
-
"variants": {
|
|
68
|
-
"normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
|
|
69
|
-
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
70
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
"claude-sonnet-4-5-20250929": {
|
|
74
|
-
"name": "Claude Sonnet 4.5",
|
|
75
|
-
"attachment": false,
|
|
76
|
-
"reasoning": true,
|
|
77
|
-
"tool_call": true,
|
|
78
|
-
"temperature": true,
|
|
79
|
-
"options": {
|
|
80
|
-
"thinking": { "type": "enabled", "budgetTokens": 10000 }
|
|
81
|
-
},
|
|
82
|
-
"variants": {
|
|
83
|
-
"normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
|
|
84
|
-
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
85
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
54
|
+
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
55
|
+
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
86
56
|
}
|
|
87
57
|
},
|
|
88
58
|
"claude-haiku-4-5-20251001": {
|
|
@@ -90,59 +60,8 @@ Just add the following to `.opencode/opencode.json` in your project (or `~/.conf
|
|
|
90
60
|
"attachment": false,
|
|
91
61
|
"reasoning": false,
|
|
92
62
|
"tool_call": true,
|
|
93
|
-
"temperature": true
|
|
94
|
-
},
|
|
95
|
-
"claude-opus-4-1-20250805": {
|
|
96
|
-
"name": "Claude Opus 4.1",
|
|
97
|
-
"attachment": false,
|
|
98
|
-
"reasoning": true,
|
|
99
|
-
"tool_call": true,
|
|
100
63
|
"temperature": true,
|
|
101
|
-
"
|
|
102
|
-
"thinking": { "type": "enabled", "budgetTokens": 10000 }
|
|
103
|
-
},
|
|
104
|
-
"variants": {
|
|
105
|
-
"normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
|
|
106
|
-
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
107
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
"claude-opus-4-20250514": {
|
|
111
|
-
"name": "Claude Opus 4",
|
|
112
|
-
"attachment": false,
|
|
113
|
-
"reasoning": true,
|
|
114
|
-
"tool_call": true,
|
|
115
|
-
"temperature": true,
|
|
116
|
-
"options": {
|
|
117
|
-
"thinking": { "type": "enabled", "budgetTokens": 10000 }
|
|
118
|
-
},
|
|
119
|
-
"variants": {
|
|
120
|
-
"normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
|
|
121
|
-
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
122
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"claude-sonnet-4-20250514": {
|
|
126
|
-
"name": "Claude Sonnet 4",
|
|
127
|
-
"attachment": false,
|
|
128
|
-
"reasoning": true,
|
|
129
|
-
"tool_call": true,
|
|
130
|
-
"temperature": true,
|
|
131
|
-
"options": {
|
|
132
|
-
"thinking": { "type": "enabled", "budgetTokens": 10000 }
|
|
133
|
-
},
|
|
134
|
-
"variants": {
|
|
135
|
-
"normal": { "thinking": { "type": "enabled", "budgetTokens": 1024 } },
|
|
136
|
-
"high": { "thinking": { "type": "enabled", "budgetTokens": 10000 } },
|
|
137
|
-
"max": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"claude-3-haiku-20240307": {
|
|
141
|
-
"name": "Claude 3 Haiku",
|
|
142
|
-
"attachment": false,
|
|
143
|
-
"reasoning": false,
|
|
144
|
-
"tool_call": true,
|
|
145
|
-
"temperature": true
|
|
64
|
+
"limit": { "context": 200000, "output": 8192 }
|
|
146
65
|
}
|
|
147
66
|
}
|
|
148
67
|
}
|
|
@@ -161,42 +80,6 @@ Credentials are resolved in order:
|
|
|
161
80
|
|
|
162
81
|
For Claude Code credentials, log in via `claude` CLI first (`claude auth login`).
|
|
163
82
|
|
|
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
83
|
## Features
|
|
201
84
|
|
|
202
85
|
- 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.
|
|
3
|
+
"version": "0.1.11",
|
|
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",
|