opencode-puter-auth 1.0.33 → 1.0.34
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 +109 -37
- package/dist/cli.js +0 -0
- package/dist/plugin.d.ts +5 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +14 -11
- package/dist/plugin.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,32 +5,30 @@
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
[](https://ko-fi.com/chindrismihai)
|
|
7
7
|
|
|
8
|
-
>
|
|
8
|
+
> Access Claude Opus 4.5, Sonnet 4.5, GPT-5, Gemini, DeepSeek, and 500+ AI models through Puter.com - no API keys needed.
|
|
9
9
|
|
|
10
|
-
Enable OpenCode to authenticate with [Puter.com](https://puter.com) via OAuth, giving you
|
|
10
|
+
Enable OpenCode to authenticate with [Puter.com](https://puter.com) via OAuth, giving you easy access to premium AI models through your Puter account.
|
|
11
11
|
|
|
12
12
|
## What You Get
|
|
13
13
|
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **
|
|
18
|
-
- **FREE, UNLIMITED DeepSeek R1** - Advanced reasoning model
|
|
14
|
+
- **Claude Opus 4.5, Sonnet 4.5** - Best coding AI models
|
|
15
|
+
- **GPT-5.2, o3-mini, o4-mini** - OpenAI's latest models
|
|
16
|
+
- **Gemini 2.5 Pro** - 1M context window
|
|
17
|
+
- **DeepSeek R1** - Advanced reasoning model
|
|
19
18
|
- **500+ More Models** - Mistral, Llama, Grok, and more
|
|
20
|
-
- **No Rate Limits** - Puter's "User-Pays" model means truly unlimited usage
|
|
21
19
|
- **Real-time SSE Streaming** - Full streaming support
|
|
22
20
|
- **Tool Calling** - Native function calling support
|
|
23
21
|
- **Vision Support** - Image analysis capabilities
|
|
24
22
|
|
|
25
23
|
## How It Works
|
|
26
24
|
|
|
27
|
-
Puter.com uses
|
|
25
|
+
Puter.com uses a **credit-based model**:
|
|
28
26
|
|
|
29
|
-
1. **
|
|
30
|
-
2. **
|
|
31
|
-
3. **
|
|
27
|
+
1. **No API keys** - Just sign in with your Puter account
|
|
28
|
+
2. **Free credits** - New accounts get initial credits to start
|
|
29
|
+
3. **Pay as you go** - Premium models consume credits; top up when needed
|
|
32
30
|
|
|
33
|
-
This
|
|
31
|
+
> **Important:** Premium AI models (Claude, GPT, etc.) consume Puter credits. This is NOT unlimited - when credits run out, you can add more on Puter.com.
|
|
34
32
|
|
|
35
33
|
## Installation
|
|
36
34
|
|
|
@@ -55,65 +53,65 @@ https://raw.githubusercontent.com/Mihai-Codes/opencode-puter-auth/main/README.md
|
|
|
55
53
|
"provider": {
|
|
56
54
|
"puter": {
|
|
57
55
|
"npm": "opencode-puter-auth",
|
|
58
|
-
"name": "Puter.com (
|
|
56
|
+
"name": "Puter.com (500+ AI Models)",
|
|
59
57
|
"models": {
|
|
60
58
|
"claude-opus-4-5": {
|
|
61
|
-
"name": "Claude Opus 4.5 (
|
|
59
|
+
"name": "Claude Opus 4.5 (via Puter)",
|
|
62
60
|
"limit": { "context": 200000, "output": 64000 },
|
|
63
61
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
64
62
|
},
|
|
65
63
|
"claude-sonnet-4-5": {
|
|
66
|
-
"name": "Claude Sonnet 4.5 (
|
|
64
|
+
"name": "Claude Sonnet 4.5 (via Puter)",
|
|
67
65
|
"limit": { "context": 200000, "output": 64000 },
|
|
68
66
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
69
67
|
},
|
|
70
68
|
"claude-sonnet-4": {
|
|
71
|
-
"name": "Claude Sonnet 4 (
|
|
69
|
+
"name": "Claude Sonnet 4 (via Puter)",
|
|
72
70
|
"limit": { "context": 200000, "output": 64000 },
|
|
73
71
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
74
72
|
},
|
|
75
73
|
"claude-haiku-4-5": {
|
|
76
|
-
"name": "Claude Haiku 4.5 (
|
|
74
|
+
"name": "Claude Haiku 4.5 (via Puter - Fast)",
|
|
77
75
|
"limit": { "context": 200000, "output": 64000 },
|
|
78
76
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
79
77
|
},
|
|
80
78
|
"gpt-5.2": {
|
|
81
|
-
"name": "GPT-5.2 (
|
|
79
|
+
"name": "GPT-5.2 (via Puter)",
|
|
82
80
|
"limit": { "context": 128000, "output": 32768 },
|
|
83
81
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
84
82
|
},
|
|
85
83
|
"gpt-4.1-nano": {
|
|
86
|
-
"name": "GPT-4.1 Nano (
|
|
84
|
+
"name": "GPT-4.1 Nano (via Puter - Ultra Fast)",
|
|
87
85
|
"limit": { "context": 128000, "output": 16384 },
|
|
88
86
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
89
87
|
},
|
|
90
88
|
"gpt-4o": {
|
|
91
|
-
"name": "GPT-4o (
|
|
89
|
+
"name": "GPT-4o (via Puter)",
|
|
92
90
|
"limit": { "context": 128000, "output": 16384 },
|
|
93
91
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
94
92
|
},
|
|
95
93
|
"o3-mini": {
|
|
96
|
-
"name": "o3-mini (
|
|
94
|
+
"name": "o3-mini (via Puter - Reasoning)",
|
|
97
95
|
"limit": { "context": 128000, "output": 32768 },
|
|
98
96
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
99
97
|
},
|
|
100
98
|
"o4-mini": {
|
|
101
|
-
"name": "o4-mini (
|
|
99
|
+
"name": "o4-mini (via Puter - Reasoning)",
|
|
102
100
|
"limit": { "context": 128000, "output": 32768 },
|
|
103
101
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
104
102
|
},
|
|
105
103
|
"deepseek-r1": {
|
|
106
|
-
"name": "DeepSeek R1 (
|
|
104
|
+
"name": "DeepSeek R1 (via Puter - Reasoning)",
|
|
107
105
|
"limit": { "context": 128000, "output": 32768 },
|
|
108
106
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
109
107
|
},
|
|
110
108
|
"google/gemini-2.5-pro": {
|
|
111
|
-
"name": "Gemini 2.5 Pro (
|
|
109
|
+
"name": "Gemini 2.5 Pro (via Puter - 1M Context)",
|
|
112
110
|
"limit": { "context": 1000000, "output": 65536 },
|
|
113
111
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
114
112
|
},
|
|
115
113
|
"google/gemini-2.5-flash": {
|
|
116
|
-
"name": "Gemini 2.5 Flash (
|
|
114
|
+
"name": "Gemini 2.5 Flash (via Puter)",
|
|
117
115
|
"limit": { "context": 1000000, "output": 65536 },
|
|
118
116
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
119
117
|
}
|
|
@@ -128,7 +126,7 @@ https://raw.githubusercontent.com/Mihai-Codes/opencode-puter-auth/main/README.md
|
|
|
128
126
|
```bash
|
|
129
127
|
opencode auth login
|
|
130
128
|
# Select "Puter" provider
|
|
131
|
-
# Select "Puter.com (
|
|
129
|
+
# Select "Puter.com (500+ AI Models)"
|
|
132
130
|
# Complete OAuth in browser
|
|
133
131
|
```
|
|
134
132
|
|
|
@@ -231,21 +229,95 @@ The plugin adds these tools to OpenCode:
|
|
|
231
229
|
|
|
232
230
|
| Feature | Puter | Antigravity |
|
|
233
231
|
|---------|-------|-------------|
|
|
234
|
-
| **Cost** |
|
|
235
|
-
| **
|
|
236
|
-
| **Claude
|
|
237
|
-
| **
|
|
238
|
-
| **
|
|
239
|
-
| **
|
|
240
|
-
| **Gemini 3** | No | Limited |
|
|
241
|
-
| **Multi-Account** | N/A (unlimited) | Required for quota |
|
|
232
|
+
| **Cost Model** | Credit-based | Weekly quotas |
|
|
233
|
+
| **Claude Opus 4.5** | Yes (uses credits) | Limited weekly |
|
|
234
|
+
| **Claude Sonnet 4.5** | Yes (uses credits) | Limited weekly |
|
|
235
|
+
| **GPT-5** | Yes (uses credits) | No |
|
|
236
|
+
| **DeepSeek R1** | Yes (uses credits) | No |
|
|
237
|
+
| **Gemini 3** | No | Limited weekly |
|
|
242
238
|
| **Provider Type** | Standalone (`puter/`) | Google piggyback (`google/`) |
|
|
243
|
-
| **
|
|
239
|
+
| **Initial Free Credits** | Yes (new accounts) | Weekly refresh |
|
|
244
240
|
|
|
245
|
-
**Bottom line**: Use **Puter**
|
|
241
|
+
**Bottom line**: Use **Puter** if you want access to Claude/GPT/DeepSeek (credit-based). Use **Antigravity** for Gemini 3 (weekly quota).
|
|
242
|
+
|
|
243
|
+
## Migrating from Old Config (v1.0.27 and earlier)
|
|
244
|
+
|
|
245
|
+
If you were using the old configuration format that piggybacked on Google (`google/puter-*` models), you need to update to the new standalone provider format.
|
|
246
|
+
|
|
247
|
+
### Old Format (Deprecated)
|
|
248
|
+
|
|
249
|
+
```json
|
|
250
|
+
{
|
|
251
|
+
"plugin": ["opencode-puter-auth"],
|
|
252
|
+
"provider": {
|
|
253
|
+
"google": {
|
|
254
|
+
"models": {
|
|
255
|
+
"puter-claude-opus-4-5": { ... }
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### New Format (v1.0.32+)
|
|
263
|
+
|
|
264
|
+
```json
|
|
265
|
+
{
|
|
266
|
+
"plugin": ["opencode-puter-auth"],
|
|
267
|
+
"provider": {
|
|
268
|
+
"puter": {
|
|
269
|
+
"npm": "opencode-puter-auth",
|
|
270
|
+
"name": "Puter.com (500+ AI Models)",
|
|
271
|
+
"models": {
|
|
272
|
+
"claude-opus-4-5": { ... }
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
### Migration Steps
|
|
280
|
+
|
|
281
|
+
1. **Clear the plugin cache:**
|
|
282
|
+
```bash
|
|
283
|
+
rm -rf ~/.cache/opencode/node_modules/opencode-puter-auth
|
|
284
|
+
rm -rf ~/.config/opencode/node_modules/opencode-puter-auth
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
2. **Update your `opencode.json`:**
|
|
288
|
+
- Change `provider.google.models.puter-*` to `provider.puter.models.*`
|
|
289
|
+
- Add `"npm": "opencode-puter-auth"` to the puter provider section
|
|
290
|
+
- Remove the `puter-` prefix from model names
|
|
291
|
+
|
|
292
|
+
3. **Update your model references:**
|
|
293
|
+
- Old: `google/puter-claude-opus-4-5`
|
|
294
|
+
- New: `puter/claude-opus-4-5`
|
|
295
|
+
|
|
296
|
+
4. **Re-authenticate:**
|
|
297
|
+
```bash
|
|
298
|
+
opencode auth login
|
|
299
|
+
# Select "Puter" provider → "Puter.com (500+ AI Models)"
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Why the Change?
|
|
303
|
+
|
|
304
|
+
The new standalone provider offers:
|
|
305
|
+
- **Direct API access** - No routing through Google/Antigravity infrastructure
|
|
306
|
+
- **Proper OAuth visibility** - Puter now appears in `opencode auth login`
|
|
307
|
+
- **Better reliability** - Direct connection to Puter's API
|
|
308
|
+
- **Cleaner model names** - `puter/claude-opus-4-5` instead of `google/puter-claude-opus-4-5`
|
|
246
309
|
|
|
247
310
|
## Troubleshooting
|
|
248
311
|
|
|
312
|
+
### "You have reached your AI usage limit"
|
|
313
|
+
|
|
314
|
+
This means your Puter account has exhausted its credits. Premium AI models (Claude, GPT, etc.) consume credits.
|
|
315
|
+
|
|
316
|
+
**Solutions:**
|
|
317
|
+
1. Add more credits on [Puter.com](https://puter.com)
|
|
318
|
+
2. Use a different free provider (Antigravity, OpenRouter free tier, Cerebras, Groq)
|
|
319
|
+
3. Create a new Puter account (new accounts get initial credits)
|
|
320
|
+
|
|
249
321
|
### Clear cached plugin and reinstall
|
|
250
322
|
|
|
251
323
|
```bash
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenCode Plugin for Puter.com Authentication
|
|
3
3
|
*
|
|
4
|
-
* This plugin provides
|
|
5
|
-
*
|
|
4
|
+
* This plugin provides easy access to Claude, GPT, Gemini, and 500+ AI models
|
|
5
|
+
* through Puter.com's OAuth authentication. No API keys needed - just sign in.
|
|
6
|
+
*
|
|
7
|
+
* Note: Puter uses a credit-based system. New accounts get free credits,
|
|
8
|
+
* and premium models consume credits. This is NOT unlimited - credits run out.
|
|
6
9
|
*
|
|
7
10
|
* @author chindris-mihai-alexandru
|
|
8
11
|
* @license MIT
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAuDtE;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAuS7B,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenCode Plugin for Puter.com Authentication
|
|
3
3
|
*
|
|
4
|
-
* This plugin provides
|
|
5
|
-
*
|
|
4
|
+
* This plugin provides easy access to Claude, GPT, Gemini, and 500+ AI models
|
|
5
|
+
* through Puter.com's OAuth authentication. No API keys needed - just sign in.
|
|
6
|
+
*
|
|
7
|
+
* Note: Puter uses a credit-based system. New accounts get free credits,
|
|
8
|
+
* and premium models consume credits. This is NOT unlimited - credits run out.
|
|
6
9
|
*
|
|
7
10
|
* @author chindris-mihai-alexandru
|
|
8
11
|
* @license MIT
|
|
@@ -76,7 +79,7 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
76
79
|
// ========================================
|
|
77
80
|
auth: {
|
|
78
81
|
// Use 'puter' as a STANDALONE provider - NOT routing through Google!
|
|
79
|
-
// This
|
|
82
|
+
// This provides direct access to Puter's API without
|
|
80
83
|
// being subject to Google/Antigravity rate limits.
|
|
81
84
|
//
|
|
82
85
|
// Users must configure opencode.json with:
|
|
@@ -89,7 +92,7 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
89
92
|
async loader(_auth, provider) {
|
|
90
93
|
const account = authManager?.getActiveAccount();
|
|
91
94
|
if (account) {
|
|
92
|
-
// Set
|
|
95
|
+
// Set cost to 0 for OpenCode's cost tracking (Puter handles billing separately)
|
|
93
96
|
if (provider?.models) {
|
|
94
97
|
for (const model of Object.values(provider.models)) {
|
|
95
98
|
model.cost = { input: 0, output: 0, cache: { read: 0, write: 0 } };
|
|
@@ -106,7 +109,7 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
106
109
|
methods: [
|
|
107
110
|
{
|
|
108
111
|
type: 'oauth',
|
|
109
|
-
label: 'Puter.com (
|
|
112
|
+
label: 'Puter.com (500+ AI Models, No API Keys)',
|
|
110
113
|
async authorize() {
|
|
111
114
|
return new Promise((resolve) => {
|
|
112
115
|
let resolved = false;
|
|
@@ -201,7 +204,7 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
201
204
|
});
|
|
202
205
|
resolve({
|
|
203
206
|
url: `http://localhost:${CALLBACK_PORT}`,
|
|
204
|
-
instructions: 'Opening browser for Puter.com authentication. Sign in or create
|
|
207
|
+
instructions: 'Opening browser for Puter.com authentication. Sign in or create an account to access 500+ AI models.',
|
|
205
208
|
method: 'auto',
|
|
206
209
|
callback: () => callbackPromise,
|
|
207
210
|
});
|
|
@@ -215,14 +218,14 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
215
218
|
// ========================================
|
|
216
219
|
tool: {
|
|
217
220
|
'puter-models': tool({
|
|
218
|
-
description: 'List all available Puter.com AI models (Claude, GPT, Gemini
|
|
221
|
+
description: 'List all available Puter.com AI models (Claude, GPT, Gemini, etc.)',
|
|
219
222
|
args: {},
|
|
220
223
|
async execute() {
|
|
221
224
|
if (!puterClient) {
|
|
222
225
|
return 'Not authenticated with Puter. Run: opencode auth login';
|
|
223
226
|
}
|
|
224
227
|
const models = await puterClient.listModels();
|
|
225
|
-
let output = '# Available Puter.com Models
|
|
228
|
+
let output = '# Available Puter.com Models\n\n';
|
|
226
229
|
// Group by provider
|
|
227
230
|
const byProvider = {};
|
|
228
231
|
for (const model of models) {
|
|
@@ -241,7 +244,7 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
241
244
|
}
|
|
242
245
|
output += '\n';
|
|
243
246
|
}
|
|
244
|
-
output += `\nTotal: ${models.length} models available
|
|
247
|
+
output += `\nTotal: ${models.length} models available via Puter.com`;
|
|
245
248
|
return output;
|
|
246
249
|
},
|
|
247
250
|
}),
|
|
@@ -272,12 +275,12 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
272
275
|
}
|
|
273
276
|
}
|
|
274
277
|
output += '\n---\n';
|
|
275
|
-
output += 'Puter uses
|
|
278
|
+
output += 'Puter uses a credit-based system. New accounts get free credits.\n';
|
|
276
279
|
return output;
|
|
277
280
|
},
|
|
278
281
|
}),
|
|
279
282
|
'puter-chat': tool({
|
|
280
|
-
description: 'Send a chat message using Puter AI
|
|
283
|
+
description: 'Send a chat message using Puter AI. Access Claude, GPT, Gemini via Puter.com.',
|
|
281
284
|
args: {
|
|
282
285
|
message: tool.schema.string().describe('The message to send to the AI'),
|
|
283
286
|
model: tool.schema.string().optional().describe('Model to use (default: claude-sonnet-4-5). Options: claude-opus-4-5, claude-sonnet-4-5, gpt-5.2, gpt-4o, gemini-2.5-pro, etc.'),
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO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,OAAO,EAAE;qBACxC,CAAC;oBAEF,IAAI,CAAC;wBACH,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;wBAE7D,MAAM,WAAW,EAAE,kBAAkB,EAAE,CAAC;wBAExC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,EAAE,OAAO,IAAI,aAAa,CAAC;wBAC3D,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK;4BAC1B,CAAC,CAAC,oBAAoB,KAAK,cAAc,QAAQ,CAAC,KAAK,CAAC,YAAY,GAAG;4BACvE,CAAC,CAAC,EAAE,CAAC;wBAEP,OAAO,OAAO,GAAG,KAAK,CAAC;oBACzB,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBACf,OAAO,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC;oBACrG,CAAC;gBACH,CAAC;aACF,CAAC;SACH;QAED,2CAA2C;QAC3C,gBAAgB;QAChB,2CAA2C;QAC3C,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE;YACnB,IAAI,YAAY,CAAC,KAAK,EAAE,CAAC;gBACvB,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;YACnD,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-puter-auth",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Puter.com OAuth
|
|
3
|
+
"version": "1.0.34",
|
|
4
|
+
"description": "Puter.com OAuth plugin for OpenCode - Easy access to Claude, GPT, Gemini & 500+ AI models. No API keys needed, credit-based usage.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"puter-auth": "dist/cli.js"
|
|
7
7
|
},
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"gpt",
|
|
45
45
|
"openai",
|
|
46
46
|
"gemini",
|
|
47
|
-
"free",
|
|
48
|
-
"unlimited",
|
|
49
47
|
"oauth",
|
|
50
48
|
"plugin",
|
|
51
49
|
"auth",
|
|
52
50
|
"ai",
|
|
53
51
|
"coding",
|
|
54
|
-
"llm"
|
|
52
|
+
"llm",
|
|
53
|
+
"no-api-key",
|
|
54
|
+
"easy-setup"
|
|
55
55
|
],
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=20.0.0"
|