adavibe 0.1.1
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 +324 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1063 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# adamax
|
|
2
|
+
|
|
3
|
+
> Satu perintah untuk setup Vibe Coding dengan **MiniMax Platform** (MiniMax-M2.7).
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx adamax
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Persyaratan
|
|
10
|
+
|
|
11
|
+
- **Node.js** v18 atau lebih baru
|
|
12
|
+
- **API Key MiniMax** — buat di [MiniMax Developer Platform](https://platform.minimax.io/user-center/basic-information/interface-key)
|
|
13
|
+
|
|
14
|
+
## Pilihan CLI
|
|
15
|
+
|
|
16
|
+
| CLI | Kegunaan | Setelah Setup |
|
|
17
|
+
|-----|----------|---------------|
|
|
18
|
+
| **CodeX** | Coding assistant OpenAI | `codex` |
|
|
19
|
+
| **Claude Code** | Coding assistant Anthropic | `claude` |
|
|
20
|
+
| **OpenCode** | Terminal IDE berbasis AI | `opencode` |
|
|
21
|
+
| **OpenClaw** | AI Gateway (WhatsApp, Telegram, dll.) | `npx openclaw gateway --bind lan` |
|
|
22
|
+
|
|
23
|
+
## Model yang Tersedia
|
|
24
|
+
|
|
25
|
+
| Model | Provider | Deskripsi |
|
|
26
|
+
|-------|----------|-----------|
|
|
27
|
+
| MiniMax M2.7 | MiniMax | Peak Performance, Ultimate Value (recommended) |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 1. Setup CodeX
|
|
32
|
+
|
|
33
|
+
OpenAI CodeX adalah coding assistant dari OpenAI yang berjalan di terminal.
|
|
34
|
+
|
|
35
|
+
### Langkah-langkah
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
$ npx adamax
|
|
39
|
+
|
|
40
|
+
? Select the language for this setup wizard
|
|
41
|
+
> English (Default)
|
|
42
|
+
Bahasa Indonesia
|
|
43
|
+
|
|
44
|
+
? CLI mana yang ingin Anda konfigurasi?
|
|
45
|
+
> CodeX (asisten coding OpenAI)
|
|
46
|
+
|
|
47
|
+
? Jalankan npm install -g @openai/codex sekarang untuk memastikan versi terbaru?
|
|
48
|
+
Tidak / Ya
|
|
49
|
+
|
|
50
|
+
? Kami akan membackup konfigurasi Anda saat ini lalu menulis pengaturan MiniMax. Lanjutkan?
|
|
51
|
+
Tidak / Ya
|
|
52
|
+
|
|
53
|
+
? Tempel API Key MiniMax Anda (buka https://platform.minimax.io/... jika perlu membuat)
|
|
54
|
+
****
|
|
55
|
+
|
|
56
|
+
? Pilih model CodeX default untuk config.toml
|
|
57
|
+
> MiniMax M2.7 (direkomendasikan) - Performa Puncak, Nilai Terbaik
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Hasil
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
Menulis file konfigurasi...
|
|
64
|
+
Diperbarui C:\Users\you\.codex\config.toml
|
|
65
|
+
Diperbarui C:\Users\you\.codex\auth.json
|
|
66
|
+
|
|
67
|
+
✅ Selesai! CodeX (asisten coding OpenAI) sekarang terkonfigurasi untuk MiniMax.
|
|
68
|
+
Run codex to start coding!
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### File yang Ditulis
|
|
72
|
+
|
|
73
|
+
- `~/.codex/config.toml` — model provider & model default
|
|
74
|
+
- `~/.codex/auth.json` — API key
|
|
75
|
+
|
|
76
|
+
### Menjalankan
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
cd your-project
|
|
80
|
+
codex
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 2. Setup Claude Code
|
|
86
|
+
|
|
87
|
+
Claude Code adalah coding assistant dari Anthropic yang powerful untuk pair programming. Wizard ini mengkonfigurasi Claude Code untuk menggunakan MiniMax-M2.7 melalui MiniMax API.
|
|
88
|
+
|
|
89
|
+
### Langkah-langkah
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
$ npx adamax
|
|
93
|
+
|
|
94
|
+
? Select the language for this setup wizard
|
|
95
|
+
> Bahasa Indonesia
|
|
96
|
+
|
|
97
|
+
? CLI mana yang ingin Anda konfigurasi?
|
|
98
|
+
CodeX (asisten coding OpenAI)
|
|
99
|
+
> Claude Code (Anthropic)
|
|
100
|
+
|
|
101
|
+
? Jalankan npm install -g @anthropic-ai/claude-code sekarang untuk memastikan versi terbaru?
|
|
102
|
+
Tidak / Ya
|
|
103
|
+
|
|
104
|
+
? Kami akan membackup konfigurasi Anda saat ini lalu menulis pengaturan MiniMax. Lanjutkan?
|
|
105
|
+
Tidak / Ya
|
|
106
|
+
|
|
107
|
+
? Tempel API Key MiniMax Anda (buka https://platform.minimax.io/... jika perlu membuat)
|
|
108
|
+
****
|
|
109
|
+
|
|
110
|
+
? Pilih model default untuk Claude Code
|
|
111
|
+
> MiniMax M2.7 (direkomendasikan) - Performa Puncak, Nilai Terbaik
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Hasil
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
Menulis file konfigurasi...
|
|
118
|
+
Backup tersimpan: C:\Users\you\.claude\settings.json.20260415-012345.bak
|
|
119
|
+
Diperbarui C:\Users\you\.claude\settings.json
|
|
120
|
+
|
|
121
|
+
✅ Selesai! Claude Code (Anthropic) sekarang terkonfigurasi untuk MiniMax.
|
|
122
|
+
Run claude to start coding!
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### File yang Ditulis
|
|
126
|
+
|
|
127
|
+
- `~/.claude/settings.json` — konfigurasi sesuai [dokumentasi resmi MiniMax](https://platform.minimax.io/docs/token-plan/claude-code):
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"env": {
|
|
132
|
+
"ANTHROPIC_AUTH_TOKEN": "<MINIMAX_API_KEY>",
|
|
133
|
+
"ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic/",
|
|
134
|
+
"API_TIMEOUT_MS": "3000000",
|
|
135
|
+
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
|
|
136
|
+
"ANTHROPIC_MODEL": "MiniMax-M2.7",
|
|
137
|
+
"ANTHROPIC_SMALL_FAST_MODEL": "MiniMax-M2.7",
|
|
138
|
+
"ANTHROPIC_DEFAULT_SONNET_MODEL": "MiniMax-M2.7",
|
|
139
|
+
"ANTHROPIC_DEFAULT_OPUS_MODEL": "MiniMax-M2.7",
|
|
140
|
+
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "MiniMax-M2.7"
|
|
141
|
+
},
|
|
142
|
+
"model": "MiniMax-M2.7",
|
|
143
|
+
"includeCoAuthoredBy": false,
|
|
144
|
+
"permissions": { "allow": [], "deny": [] }
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
> **Note:** Konfigurasi mengikuti dokumentasi resmi MiniMax. Semua model slot (sonnet, opus, haiku) di-override ke MiniMax-M2.7.
|
|
149
|
+
|
|
150
|
+
### Menjalankan
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
cd your-project
|
|
154
|
+
claude
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 3. Setup OpenCode
|
|
160
|
+
|
|
161
|
+
OpenCode adalah IDE terminal berbasis AI yang mendukung multi-provider.
|
|
162
|
+
|
|
163
|
+
### Langkah-langkah
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
$ npx adamax
|
|
167
|
+
|
|
168
|
+
? Select the language for this setup wizard
|
|
169
|
+
> Bahasa Indonesia
|
|
170
|
+
|
|
171
|
+
? CLI mana yang ingin Anda konfigurasi?
|
|
172
|
+
CodeX (asisten coding OpenAI)
|
|
173
|
+
Claude Code (Anthropic)
|
|
174
|
+
> OpenCode (IDE terminal berbasis AI)
|
|
175
|
+
|
|
176
|
+
? Jalankan npm install -g opencode-ai sekarang untuk memastikan versi terbaru?
|
|
177
|
+
Tidak / Ya
|
|
178
|
+
|
|
179
|
+
? Kami akan membackup konfigurasi Anda saat ini lalu menulis pengaturan MiniMax. Lanjutkan?
|
|
180
|
+
Tidak / Ya
|
|
181
|
+
|
|
182
|
+
? Tempel API Key MiniMax Anda (buka https://platform.minimax.io/... jika perlu membuat)
|
|
183
|
+
****
|
|
184
|
+
|
|
185
|
+
? Pilih model default untuk OpenCode
|
|
186
|
+
> MiniMax M2.7 (direkomendasikan) - Performa Puncak, Nilai Terbaik
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Hasil
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
Menulis file konfigurasi...
|
|
193
|
+
Diperbarui C:\Users\you\.config\opencode\opencode.json
|
|
194
|
+
|
|
195
|
+
✅ Tidak ada environment variable yang konflik. Semua aman!
|
|
196
|
+
|
|
197
|
+
✅ Selesai! OpenCode (IDE terminal berbasis AI) sekarang terkonfigurasi untuk MiniMax.
|
|
198
|
+
Buka direktori proyek Anda dan jalankan:
|
|
199
|
+
opencode
|
|
200
|
+
Lalu ketik /models dan pilih model yang sudah dikonfigurasi.
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### File yang Ditulis
|
|
204
|
+
|
|
205
|
+
- `~/.config/opencode/opencode.json` — provider config dengan MiniMax M2.7
|
|
206
|
+
|
|
207
|
+
### Menjalankan
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
cd your-project
|
|
211
|
+
opencode
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
Setelah buka, ketik `/models` untuk memilih model dari daftar yang sudah dikonfigurasi.
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## 4. Setup OpenClaw
|
|
219
|
+
|
|
220
|
+
OpenClaw adalah AI Gateway untuk menghubungkan WhatsApp, Telegram, dan platform lain ke model AI.
|
|
221
|
+
|
|
222
|
+
### Langkah-langkah
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
$ npx adamax
|
|
226
|
+
|
|
227
|
+
? Select the language for this setup wizard
|
|
228
|
+
> Bahasa Indonesia
|
|
229
|
+
|
|
230
|
+
? CLI mana yang ingin Anda konfigurasi?
|
|
231
|
+
CodeX (asisten coding OpenAI)
|
|
232
|
+
Claude Code (Anthropic)
|
|
233
|
+
OpenCode (IDE terminal berbasis AI)
|
|
234
|
+
> OpenClaw (AI Gateway untuk WhatsApp, Telegram, dll.)
|
|
235
|
+
|
|
236
|
+
? Jalankan npm install -g openclaw sekarang untuk memastikan versi terbaru?
|
|
237
|
+
Tidak / Ya
|
|
238
|
+
|
|
239
|
+
? Kami akan membackup konfigurasi Anda saat ini lalu menulis pengaturan MiniMax. Lanjutkan?
|
|
240
|
+
Tidak / Ya
|
|
241
|
+
|
|
242
|
+
? Tempel API Key MiniMax Anda (buka https://platform.minimax.io/... jika perlu membuat)
|
|
243
|
+
****
|
|
244
|
+
|
|
245
|
+
? Pilih model default untuk OpenClaw
|
|
246
|
+
> MiniMax M2.7 (direkomendasikan) - Performa Puncak, Nilai Terbaik
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Hasil
|
|
250
|
+
|
|
251
|
+
```
|
|
252
|
+
✅ Gateway Token berhasil dibuat dan disimpan otomatis!
|
|
253
|
+
🔑 Gateway Token: a1b2c3d4...
|
|
254
|
+
|
|
255
|
+
Menulis file konfigurasi...
|
|
256
|
+
Diperbarui C:\Users\you\.openclaw\openclaw.json
|
|
257
|
+
|
|
258
|
+
✅ Selesai! OpenClaw (AI Gateway untuk WhatsApp, Telegram, dll.) sekarang terkonfigurasi untuk MiniMax.
|
|
259
|
+
Jalankan gateway dengan:
|
|
260
|
+
npx openclaw gateway --bind lan
|
|
261
|
+
|
|
262
|
+
Buka dashboard dengan:
|
|
263
|
+
npx openclaw dashboard
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### File yang Ditulis
|
|
267
|
+
|
|
268
|
+
- `~/.openclaw/openclaw.json` — provider config, model list, dan gateway token
|
|
269
|
+
|
|
270
|
+
### Menjalankan
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
# Terminal 1: jalankan gateway
|
|
274
|
+
npx openclaw gateway --bind lan
|
|
275
|
+
|
|
276
|
+
# Terminal 2: buka dashboard (opsional)
|
|
277
|
+
npx openclaw dashboard
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Fitur
|
|
283
|
+
|
|
284
|
+
- **Zero-install** — cukup `npx adamax`, tidak perlu install global
|
|
285
|
+
- **Bilingual** — English & Bahasa Indonesia (auto-detect)
|
|
286
|
+
- **Safe backup** — file `.bak` otomatis sebelum overwrite
|
|
287
|
+
- **Cross-platform** — Windows, macOS, Linux
|
|
288
|
+
- **Official MiniMax Config** — Claude Code config mengikuti [dokumentasi resmi MiniMax](https://platform.minimax.io/docs/token-plan/claude-code), semua model slot di-route ke MiniMax-M2.7
|
|
289
|
+
|
|
290
|
+
## Ringkasan File Konfigurasi
|
|
291
|
+
|
|
292
|
+
| CLI | File Konfigurasi |
|
|
293
|
+
|-----|-----------------|
|
|
294
|
+
| CodeX | `~/.codex/config.toml`, `~/.codex/auth.json` |
|
|
295
|
+
| Claude Code | `~/.claude/settings.json` |
|
|
296
|
+
| OpenCode | `~/.config/opencode/opencode.json` |
|
|
297
|
+
| OpenClaw | `~/.openclaw/openclaw.json` |
|
|
298
|
+
|
|
299
|
+
## Troubleshooting
|
|
300
|
+
|
|
301
|
+
### CodeX: Error 404 pada `/v1/responses`
|
|
302
|
+
Jika hanya tersedia `/v1/chat/completions`, gunakan Claude Code atau OpenCode sebagai alternatif.
|
|
303
|
+
|
|
304
|
+
### Claude Code: Response lambat
|
|
305
|
+
1. Pastikan `API_TIMEOUT_MS=3000000` ada di config
|
|
306
|
+
2. Pastikan semua `ANTHROPIC_DEFAULT_*_MODEL` di-set ke `MiniMax-M2.7`
|
|
307
|
+
3. Cek koneksi ke `api.minimax.io`
|
|
308
|
+
|
|
309
|
+
### OpenCode: Model tidak muncul
|
|
310
|
+
Setelah buka OpenCode, ketik `/models` untuk melihat daftar model. Pilih model yang diawali `minimax/`.
|
|
311
|
+
|
|
312
|
+
### OpenClaw: Gateway tidak bisa diakses
|
|
313
|
+
Pastikan port default (3100) tidak dipakai aplikasi lain. Gunakan `--port <number>` untuk mengubah port.
|
|
314
|
+
|
|
315
|
+
## Links
|
|
316
|
+
|
|
317
|
+
- [MiniMax API Docs](https://platform.minimax.io/docs)
|
|
318
|
+
- [MiniMax Token Plan](https://platform.minimax.io/subscribe/token-plan)
|
|
319
|
+
- [MiniMax Claude Code Guide](https://platform.minimax.io/docs/token-plan/claude-code)
|
|
320
|
+
- [Get API Key](https://platform.minimax.io/user-center/basic-information/interface-key)
|
|
321
|
+
|
|
322
|
+
## License
|
|
323
|
+
|
|
324
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|