opencode-puter-auth 1.0.28 → 1.0.29
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 +55 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,17 +5,18 @@
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://ko-fi.com/chindrismihai)
|
|
7
7
|
|
|
8
|
-
> **FREE, UNLIMITED access to Claude Opus 4.5, Sonnet 4.5, GPT-5, Gemini, and 500+ AI models** through Puter.com's revolutionary "User-Pays" model.
|
|
8
|
+
> **FREE, UNLIMITED access to Claude Opus 4.5, Sonnet 4.5, GPT-5, Gemini, DeepSeek, and 500+ AI models** through Puter.com's revolutionary "User-Pays" model.
|
|
9
9
|
|
|
10
10
|
Enable OpenCode to authenticate with [Puter.com](https://puter.com) via OAuth, giving you unlimited access to the world's best AI coding models - **completely free**.
|
|
11
11
|
|
|
12
12
|
## What You Get
|
|
13
13
|
|
|
14
|
-
- **FREE, UNLIMITED Claude Opus 4.5** - The best coding AI model
|
|
14
|
+
- **FREE, UNLIMITED Claude Opus 4.5** - The best coding AI model in the world
|
|
15
15
|
- **FREE, UNLIMITED Claude Sonnet 4.5** - Fast, powerful reasoning
|
|
16
|
-
- **FREE, UNLIMITED GPT-5.2, o3-mini** - OpenAI's latest models
|
|
16
|
+
- **FREE, UNLIMITED GPT-5.2, o3-mini, o4-mini** - OpenAI's latest models
|
|
17
17
|
- **FREE, UNLIMITED Gemini 2.5 Pro** - 1M context window
|
|
18
|
-
- **
|
|
18
|
+
- **FREE, UNLIMITED DeepSeek R1** - Advanced reasoning model
|
|
19
|
+
- **500+ More Models** - Mistral, Llama, Grok, and more
|
|
19
20
|
- **No Rate Limits** - Puter's "User-Pays" model means truly unlimited usage
|
|
20
21
|
- **Real-time SSE Streaming** - Full streaming support
|
|
21
22
|
- **Tool Calling** - Native function calling support
|
|
@@ -56,10 +57,12 @@ https://raw.githubusercontent.com/Mihai-Codes/opencode-puter-auth/main/README.md
|
|
|
56
57
|
2. **Authenticate with Puter:**
|
|
57
58
|
|
|
58
59
|
```bash
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
# Run the CLI authentication command
|
|
61
|
+
puter-auth
|
|
61
62
|
```
|
|
62
63
|
|
|
64
|
+
> **Note:** Puter authentication does NOT appear in `opencode auth login`. This is by design - the plugin uses the same pattern as `opencode-antigravity-auth`, piggybacking on the `google` provider. Authentication happens automatically when you first use a Puter model, or you can run `puter-auth` manually.
|
|
65
|
+
|
|
63
66
|
3. **Add model definitions:**
|
|
64
67
|
|
|
65
68
|
```json
|
|
@@ -95,12 +98,22 @@ opencode auth login
|
|
|
95
98
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
96
99
|
},
|
|
97
100
|
"puter-gpt-5-nano": {
|
|
98
|
-
"name": "GPT-5 Nano (FREE via Puter - Fast)",
|
|
101
|
+
"name": "GPT-5 Nano (FREE via Puter - Ultra Fast)",
|
|
99
102
|
"limit": { "context": 128000, "output": 16384 },
|
|
100
103
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
101
104
|
},
|
|
102
105
|
"puter-o3-mini": {
|
|
103
|
-
"name": "o3-mini (FREE via Puter)",
|
|
106
|
+
"name": "o3-mini (FREE via Puter - Reasoning)",
|
|
107
|
+
"limit": { "context": 128000, "output": 32768 },
|
|
108
|
+
"modalities": { "input": ["text"], "output": ["text"] }
|
|
109
|
+
},
|
|
110
|
+
"puter-o4-mini": {
|
|
111
|
+
"name": "o4-mini (FREE via Puter - Reasoning)",
|
|
112
|
+
"limit": { "context": 128000, "output": 32768 },
|
|
113
|
+
"modalities": { "input": ["text"], "output": ["text"] }
|
|
114
|
+
},
|
|
115
|
+
"puter-deepseek-r1": {
|
|
116
|
+
"name": "DeepSeek R1 (FREE via Puter - Reasoning)",
|
|
104
117
|
"limit": { "context": 128000, "output": 32768 },
|
|
105
118
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
106
119
|
},
|
|
@@ -126,33 +139,40 @@ opencode auth login
|
|
|
126
139
|
opencode run "Hello" --model=google/puter-claude-opus-4-5
|
|
127
140
|
```
|
|
128
141
|
|
|
129
|
-
## Available Models
|
|
142
|
+
## Available Models (January 2026)
|
|
130
143
|
|
|
131
|
-
### Anthropic (Claude)
|
|
144
|
+
### Anthropic (Claude) - Best for Coding
|
|
132
145
|
|
|
133
146
|
| Model | Description | Context | Best For |
|
|
134
147
|
|-------|-------------|---------|----------|
|
|
135
|
-
| `google/puter-claude-opus-4-5` |
|
|
148
|
+
| `google/puter-claude-opus-4-5` | **Best coding model in the world** | 200K | Complex reasoning, agentic coding |
|
|
136
149
|
| `google/puter-claude-sonnet-4-5` | Balanced performance | 200K | General coding tasks |
|
|
137
150
|
| `google/puter-claude-sonnet-4` | Previous gen Sonnet | 200K | Fast coding |
|
|
138
|
-
| `google/puter-claude-haiku-4-5` | Fastest Claude | 200K | Simple tasks |
|
|
151
|
+
| `google/puter-claude-haiku-4-5` | Fastest Claude | 200K | Simple tasks, quick responses |
|
|
139
152
|
|
|
140
|
-
### OpenAI (GPT)
|
|
153
|
+
### OpenAI (GPT) - Latest Models
|
|
141
154
|
|
|
142
155
|
| Model | Description | Context | Best For |
|
|
143
156
|
|-------|-------------|---------|----------|
|
|
144
157
|
| `google/puter-gpt-5.2` | Latest GPT model | 128K | Advanced tasks |
|
|
145
|
-
| `google/puter-gpt-5-nano` | Ultra-fast
|
|
158
|
+
| `google/puter-gpt-5-nano` | **Default model** - Ultra-fast | 128K | Quick responses |
|
|
146
159
|
| `google/puter-o3-mini` | Reasoning model | 128K | Complex logic |
|
|
160
|
+
| `google/puter-o4-mini` | Latest reasoning model | 128K | Advanced reasoning |
|
|
147
161
|
| `google/puter-gpt-4o` | Multimodal GPT | 128K | Vision tasks |
|
|
148
162
|
|
|
149
|
-
### Google (Gemini)
|
|
163
|
+
### Google (Gemini) - Massive Context
|
|
150
164
|
|
|
151
165
|
| Model | Description | Context | Best For |
|
|
152
166
|
|-------|-------------|---------|----------|
|
|
153
|
-
| `google/puter-gemini-2.5-pro` | Best Gemini | 1M | Huge
|
|
167
|
+
| `google/puter-gemini-2.5-pro` | Best Gemini | 1M | Huge codebases |
|
|
154
168
|
| `google/puter-gemini-2.5-flash` | Fast Gemini | 1M | Quick analysis |
|
|
155
169
|
|
|
170
|
+
### DeepSeek - Advanced Reasoning
|
|
171
|
+
|
|
172
|
+
| Model | Description | Context | Best For |
|
|
173
|
+
|-------|-------------|---------|----------|
|
|
174
|
+
| `google/puter-deepseek-r1` | Advanced reasoning | 128K | Complex problem solving |
|
|
175
|
+
|
|
156
176
|
## AI SDK Provider (Standalone Usage)
|
|
157
177
|
|
|
158
178
|
You can also use the Puter AI SDK provider directly in your own applications:
|
|
@@ -214,17 +234,28 @@ The plugin adds these tools to OpenCode:
|
|
|
214
234
|
|---------|-------|-------------|
|
|
215
235
|
| **Cost** | FREE | FREE |
|
|
216
236
|
| **Rate Limits** | **NONE** | Weekly quotas |
|
|
217
|
-
| **Claude Opus 4.5** | Unlimited | Limited |
|
|
218
|
-
| **Claude Sonnet 4.5** | Unlimited | Limited |
|
|
219
|
-
| **GPT-5** | Unlimited | No |
|
|
237
|
+
| **Claude Opus 4.5** | **Unlimited** | Limited |
|
|
238
|
+
| **Claude Sonnet 4.5** | **Unlimited** | Limited |
|
|
239
|
+
| **GPT-5** | **Unlimited** | No |
|
|
240
|
+
| **DeepSeek R1** | **Unlimited** | No |
|
|
220
241
|
| **Gemini 3** | No | Limited |
|
|
221
242
|
| **Multi-Account** | N/A (unlimited) | Required for quota |
|
|
222
|
-
| **Auth Method** | Puter OAuth | Google OAuth |
|
|
243
|
+
| **Auth Method** | Puter OAuth (`puter-auth`) | Google OAuth |
|
|
244
|
+
| **Shows in `opencode auth login`** | No (uses `puter-auth` CLI) | Yes |
|
|
223
245
|
|
|
224
|
-
**Bottom line**: Use Puter for unlimited Claude/GPT access
|
|
246
|
+
**Bottom line**: Use **Puter** for unlimited Claude/GPT/DeepSeek access. Use **Antigravity** for Gemini 3.
|
|
225
247
|
|
|
226
248
|
## Troubleshooting
|
|
227
249
|
|
|
250
|
+
### "Puter not showing in opencode auth login"
|
|
251
|
+
|
|
252
|
+
This is expected! The plugin uses the same pattern as `opencode-antigravity-auth` - it piggybacks on the `google` provider. To authenticate:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
# Run the Puter CLI auth command
|
|
256
|
+
puter-auth
|
|
257
|
+
```
|
|
258
|
+
|
|
228
259
|
### Browser doesn't open for auth
|
|
229
260
|
|
|
230
261
|
```bash
|
|
@@ -235,8 +266,8 @@ http://localhost:19847
|
|
|
235
266
|
### "Not authenticated" error
|
|
236
267
|
|
|
237
268
|
```bash
|
|
238
|
-
|
|
239
|
-
|
|
269
|
+
# Run the CLI auth command
|
|
270
|
+
puter-auth
|
|
240
271
|
```
|
|
241
272
|
|
|
242
273
|
### API timeout errors
|
|
@@ -287,7 +318,7 @@ If this plugin helps you, consider supporting its development:
|
|
|
287
318
|
|
|
288
319
|
## Credits
|
|
289
320
|
|
|
290
|
-
- [Puter.com](https://puter.com) - The amazing "Internet Computer" platform
|
|
321
|
+
- [Puter.com](https://puter.com) - The amazing "Internet Computer" platform with 500+ AI models
|
|
291
322
|
- [OpenCode](https://opencode.ai) - The best AI coding agent
|
|
292
323
|
- [opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) - Inspiration for plugin architecture
|
|
293
324
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-puter-auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Puter.com OAuth auth plugin for OpenCode - FREE UNLIMITED access to Claude Opus 4.5, Sonnet 4.5, GPT-5, Gemini, and 500+ AI models",
|
|
5
5
|
"bin": {
|
|
6
6
|
"puter-auth": "dist/cli.js"
|