opencode-puter-auth 1.0.32 → 1.0.33
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 +60 -55
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +17 -17
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,90 +39,80 @@ This means whether you have 1 or 1 million users, you pay $0 for AI infrastructu
|
|
|
39
39
|
Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
-
Install the opencode-puter-auth plugin and configure Puter.com models
|
|
42
|
+
Install the opencode-puter-auth plugin and configure Puter.com models
|
|
43
43
|
in ~/.config/opencode/opencode.json by following:
|
|
44
44
|
https://raw.githubusercontent.com/Mihai-Codes/opencode-puter-auth/main/README.md
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Option B: Manual Setup
|
|
48
48
|
|
|
49
|
-
1. **Add the
|
|
50
|
-
|
|
51
|
-
```json
|
|
52
|
-
{
|
|
53
|
-
"plugin": ["opencode-puter-auth"]
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
2. **Authenticate with Puter:**
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
# Run the CLI authentication command
|
|
61
|
-
puter-auth
|
|
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
|
-
|
|
66
|
-
3. **Add model definitions:**
|
|
49
|
+
1. **Add the complete configuration to your opencode.json** (`~/.config/opencode/opencode.json`):
|
|
67
50
|
|
|
68
51
|
```json
|
|
69
52
|
{
|
|
70
53
|
"$schema": "https://opencode.ai/config.json",
|
|
71
54
|
"plugin": ["opencode-puter-auth"],
|
|
72
55
|
"provider": {
|
|
73
|
-
"
|
|
56
|
+
"puter": {
|
|
57
|
+
"npm": "opencode-puter-auth",
|
|
58
|
+
"name": "Puter.com (FREE Unlimited AI)",
|
|
74
59
|
"models": {
|
|
75
|
-
"
|
|
60
|
+
"claude-opus-4-5": {
|
|
76
61
|
"name": "Claude Opus 4.5 (FREE via Puter)",
|
|
77
62
|
"limit": { "context": 200000, "output": 64000 },
|
|
78
63
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
79
64
|
},
|
|
80
|
-
"
|
|
65
|
+
"claude-sonnet-4-5": {
|
|
81
66
|
"name": "Claude Sonnet 4.5 (FREE via Puter)",
|
|
82
67
|
"limit": { "context": 200000, "output": 64000 },
|
|
83
68
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
84
69
|
},
|
|
85
|
-
"
|
|
70
|
+
"claude-sonnet-4": {
|
|
86
71
|
"name": "Claude Sonnet 4 (FREE via Puter)",
|
|
87
72
|
"limit": { "context": 200000, "output": 64000 },
|
|
88
73
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
89
74
|
},
|
|
90
|
-
"
|
|
75
|
+
"claude-haiku-4-5": {
|
|
91
76
|
"name": "Claude Haiku 4.5 (FREE via Puter - Fast)",
|
|
92
77
|
"limit": { "context": 200000, "output": 64000 },
|
|
93
78
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
94
79
|
},
|
|
95
|
-
"
|
|
80
|
+
"gpt-5.2": {
|
|
96
81
|
"name": "GPT-5.2 (FREE via Puter)",
|
|
97
82
|
"limit": { "context": 128000, "output": 32768 },
|
|
98
83
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
99
84
|
},
|
|
100
|
-
"
|
|
101
|
-
"name": "GPT-
|
|
85
|
+
"gpt-4.1-nano": {
|
|
86
|
+
"name": "GPT-4.1 Nano (FREE via Puter - Ultra Fast)",
|
|
102
87
|
"limit": { "context": 128000, "output": 16384 },
|
|
103
88
|
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
104
89
|
},
|
|
105
|
-
"
|
|
90
|
+
"gpt-4o": {
|
|
91
|
+
"name": "GPT-4o (FREE via Puter)",
|
|
92
|
+
"limit": { "context": 128000, "output": 16384 },
|
|
93
|
+
"modalities": { "input": ["text", "image"], "output": ["text"] }
|
|
94
|
+
},
|
|
95
|
+
"o3-mini": {
|
|
106
96
|
"name": "o3-mini (FREE via Puter - Reasoning)",
|
|
107
97
|
"limit": { "context": 128000, "output": 32768 },
|
|
108
98
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
109
99
|
},
|
|
110
|
-
"
|
|
100
|
+
"o4-mini": {
|
|
111
101
|
"name": "o4-mini (FREE via Puter - Reasoning)",
|
|
112
102
|
"limit": { "context": 128000, "output": 32768 },
|
|
113
103
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
114
104
|
},
|
|
115
|
-
"
|
|
105
|
+
"deepseek-r1": {
|
|
116
106
|
"name": "DeepSeek R1 (FREE via Puter - Reasoning)",
|
|
117
107
|
"limit": { "context": 128000, "output": 32768 },
|
|
118
108
|
"modalities": { "input": ["text"], "output": ["text"] }
|
|
119
109
|
},
|
|
120
|
-
"
|
|
110
|
+
"google/gemini-2.5-pro": {
|
|
121
111
|
"name": "Gemini 2.5 Pro (FREE via Puter - 1M Context)",
|
|
122
112
|
"limit": { "context": 1000000, "output": 65536 },
|
|
123
113
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
124
114
|
},
|
|
125
|
-
"
|
|
115
|
+
"google/gemini-2.5-flash": {
|
|
126
116
|
"name": "Gemini 2.5 Flash (FREE via Puter)",
|
|
127
117
|
"limit": { "context": 1000000, "output": 65536 },
|
|
128
118
|
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] }
|
|
@@ -133,10 +123,19 @@ puter-auth
|
|
|
133
123
|
}
|
|
134
124
|
```
|
|
135
125
|
|
|
136
|
-
|
|
126
|
+
2. **Authenticate with Puter:**
|
|
137
127
|
|
|
138
128
|
```bash
|
|
139
|
-
opencode
|
|
129
|
+
opencode auth login
|
|
130
|
+
# Select "Puter" provider
|
|
131
|
+
# Select "Puter.com (FREE Unlimited AI)"
|
|
132
|
+
# Complete OAuth in browser
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
3. **Use it:**
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
opencode --model=puter/claude-opus-4-5
|
|
140
139
|
```
|
|
141
140
|
|
|
142
141
|
## Available Models (January 2026)
|
|
@@ -145,33 +144,33 @@ opencode run "Hello" --model=google/puter-claude-opus-4-5
|
|
|
145
144
|
|
|
146
145
|
| Model | Description | Context | Best For |
|
|
147
146
|
|-------|-------------|---------|----------|
|
|
148
|
-
| `
|
|
149
|
-
| `
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
147
|
+
| `puter/claude-opus-4-5` | **Best coding model in the world** | 200K | Complex reasoning, agentic coding |
|
|
148
|
+
| `puter/claude-sonnet-4-5` | Balanced performance | 200K | General coding tasks |
|
|
149
|
+
| `puter/claude-sonnet-4` | Previous gen Sonnet | 200K | Fast coding |
|
|
150
|
+
| `puter/claude-haiku-4-5` | Fastest Claude | 200K | Simple tasks, quick responses |
|
|
152
151
|
|
|
153
152
|
### OpenAI (GPT) - Latest Models
|
|
154
153
|
|
|
155
154
|
| Model | Description | Context | Best For |
|
|
156
155
|
|-------|-------------|---------|----------|
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
156
|
+
| `puter/gpt-5.2` | Latest GPT model | 128K | Advanced tasks |
|
|
157
|
+
| `puter/gpt-4.1-nano` | Ultra-fast | 128K | Quick responses |
|
|
158
|
+
| `puter/gpt-4o` | Multimodal GPT | 128K | Vision tasks |
|
|
159
|
+
| `puter/o3-mini` | Reasoning model | 128K | Complex logic |
|
|
160
|
+
| `puter/o4-mini` | Latest reasoning model | 128K | Advanced reasoning |
|
|
162
161
|
|
|
163
162
|
### Google (Gemini) - Massive Context
|
|
164
163
|
|
|
165
164
|
| Model | Description | Context | Best For |
|
|
166
165
|
|-------|-------------|---------|----------|
|
|
167
|
-
| `google/
|
|
168
|
-
| `google/
|
|
166
|
+
| `puter/google/gemini-2.5-pro` | Best Gemini | 1M | Huge codebases |
|
|
167
|
+
| `puter/google/gemini-2.5-flash` | Fast Gemini | 1M | Quick analysis |
|
|
169
168
|
|
|
170
169
|
### DeepSeek - Advanced Reasoning
|
|
171
170
|
|
|
172
171
|
| Model | Description | Context | Best For |
|
|
173
172
|
|-------|-------------|---------|----------|
|
|
174
|
-
| `
|
|
173
|
+
| `puter/deepseek-r1` | Advanced reasoning | 128K | Complex problem solving |
|
|
175
174
|
|
|
176
175
|
## AI SDK Provider (Standalone Usage)
|
|
177
176
|
|
|
@@ -240,20 +239,26 @@ The plugin adds these tools to OpenCode:
|
|
|
240
239
|
| **DeepSeek R1** | **Unlimited** | No |
|
|
241
240
|
| **Gemini 3** | No | Limited |
|
|
242
241
|
| **Multi-Account** | N/A (unlimited) | Required for quota |
|
|
243
|
-
| **
|
|
244
|
-
| **Shows in `opencode auth login`** |
|
|
242
|
+
| **Provider Type** | Standalone (`puter/`) | Google piggyback (`google/`) |
|
|
243
|
+
| **Shows in `opencode auth login`** | **Yes** (select Puter) | Yes (select Google) |
|
|
245
244
|
|
|
246
245
|
**Bottom line**: Use **Puter** for unlimited Claude/GPT/DeepSeek access. Use **Antigravity** for Gemini 3.
|
|
247
246
|
|
|
248
247
|
## Troubleshooting
|
|
249
248
|
|
|
250
|
-
###
|
|
251
|
-
|
|
252
|
-
This is expected! The plugin uses the same pattern as `opencode-antigravity-auth` - it piggybacks on the `google` provider. To authenticate:
|
|
249
|
+
### Clear cached plugin and reinstall
|
|
253
250
|
|
|
254
251
|
```bash
|
|
255
|
-
#
|
|
256
|
-
puter-auth
|
|
252
|
+
# macOS/Linux
|
|
253
|
+
rm -rf ~/.cache/opencode/node_modules/opencode-puter-auth
|
|
254
|
+
rm -rf ~/.config/opencode/node_modules/opencode-puter-auth
|
|
255
|
+
|
|
256
|
+
# Windows (PowerShell)
|
|
257
|
+
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\opencode\node_modules\opencode-puter-auth" -ErrorAction SilentlyContinue
|
|
258
|
+
Remove-Item -Recurse -Force "$env:APPDATA\opencode\node_modules\opencode-puter-auth" -ErrorAction SilentlyContinue
|
|
259
|
+
|
|
260
|
+
# Restart opencode
|
|
261
|
+
opencode
|
|
257
262
|
```
|
|
258
263
|
|
|
259
264
|
### Browser doesn't open for auth
|
|
@@ -266,8 +271,8 @@ http://localhost:19847
|
|
|
266
271
|
### "Not authenticated" error
|
|
267
272
|
|
|
268
273
|
```bash
|
|
269
|
-
|
|
270
|
-
|
|
274
|
+
opencode auth login
|
|
275
|
+
# Select "Puter" provider
|
|
271
276
|
```
|
|
272
277
|
|
|
273
278
|
### API timeout errors
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAuDtE;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAuS7B,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -14,7 +14,6 @@ import http from 'node:http';
|
|
|
14
14
|
import { URL } from 'node:url';
|
|
15
15
|
import { PuterClient } from './client.js';
|
|
16
16
|
import { createPuterAuthManager } from './auth.js';
|
|
17
|
-
import { createPuterFetch } from './provider.js';
|
|
18
17
|
import { PuterConfigSchema } from './types.js';
|
|
19
18
|
// Default config directory
|
|
20
19
|
const getConfigDir = () => {
|
|
@@ -73,32 +72,33 @@ export const PuterAuthPlugin = async (_input) => {
|
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
74
|
// ========================================
|
|
76
|
-
// AUTH HOOK - OAuth with Puter
|
|
75
|
+
// AUTH HOOK - OAuth with Puter (Standalone Provider)
|
|
77
76
|
// ========================================
|
|
78
77
|
auth: {
|
|
79
|
-
// Use '
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
|
|
78
|
+
// Use 'puter' as a STANDALONE provider - NOT routing through Google!
|
|
79
|
+
// This ensures Puter's truly unlimited API is used directly without
|
|
80
|
+
// being subject to Google/Antigravity rate limits.
|
|
81
|
+
//
|
|
82
|
+
// Users must configure opencode.json with:
|
|
83
|
+
// "provider": { "puter": { "npm": "opencode-puter-auth", ... } }
|
|
84
|
+
//
|
|
85
|
+
// Models are then accessed as puter/claude-opus-4-5, puter/gpt-4o, etc.
|
|
86
|
+
provider: 'puter',
|
|
84
87
|
// Load auth credentials for Puter provider
|
|
88
|
+
// Returns the API key (auth token) that OpenCode passes to the AI SDK provider
|
|
85
89
|
async loader(_auth, provider) {
|
|
86
90
|
const account = authManager?.getActiveAccount();
|
|
87
91
|
if (account) {
|
|
88
|
-
// Set all Puter models
|
|
92
|
+
// Set all Puter models as FREE (cost = 0) - Puter's "User-Pays" model
|
|
89
93
|
if (provider?.models) {
|
|
90
|
-
for (const
|
|
91
|
-
|
|
92
|
-
if (modelId.startsWith('puter-')) {
|
|
93
|
-
model.cost = { input: 0, output: 0, cache: { read: 0, write: 0 } };
|
|
94
|
-
}
|
|
94
|
+
for (const model of Object.values(provider.models)) {
|
|
95
|
+
model.cost = { input: 0, output: 0, cache: { read: 0, write: 0 } };
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
|
-
// Return
|
|
98
|
-
//
|
|
98
|
+
// Return the auth token - OpenCode passes this to createPuter() as apiKey
|
|
99
|
+
// The AI SDK provider (createPuter) uses this to authenticate with Puter's API
|
|
99
100
|
return {
|
|
100
|
-
apiKey:
|
|
101
|
-
fetch: createPuterFetch(account.authToken, pluginConfig),
|
|
101
|
+
apiKey: account.authToken,
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
return {};
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAyB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAyB,MAAM,WAAW,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,2BAA2B;AAC3B,MAAM,YAAY,GAAG,GAAW,EAAE;IAChC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC9C,IAAI,SAAS,EAAE,CA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E,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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-puter-auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
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"
|