1mkdir -p ~/.openclaw && cat << 'EOF' > ~/.openclaw/openclaw.json
2{
3 "models": {
4 "mode": "merge",
5 "providers": {
6 "aicodewith-claude": {
7 "baseUrl": "https://api.aicodewith.com",
8 "apiKey": "这里填写你的密钥",
9 "api": "anthropic-messages",
10 "models": [
11 {
12 "id": "claude-opus-4-8",
13 "name": "Opus 4.8",
14 "reasoning": true,
15 "input": ["text", "image"],
16 "contextWindow": 200000,
17 "maxTokens": 128000
18 },
19 {
20 "id": "claude-opus-4-8[1m]",
21 "name": "Opus 4.8 (1M)",
22 "reasoning": true,
23 "input": ["text", "image"],
24 "contextWindow": 1000000,
25 "maxTokens": 128000
26 },
27 {
28 "id": "claude-opus-4-7",
29 "name": "Opus 4.7",
30 "reasoning": true,
31 "input": ["text", "image"],
32 "contextWindow": 200000,
33 "maxTokens": 128000
34 },
35 {
36 "id": "claude-opus-4-7[1m]",
37 "name": "Opus 4.7 (1M)",
38 "reasoning": true,
39 "input": ["text", "image"],
40 "contextWindow": 1000000,
41 "maxTokens": 128000
42 },
43 {
44 "id": "claude-opus-4-6",
45 "name": "Opus 4.6",
46 "reasoning": true,
47 "input": ["text", "image"],
48 "contextWindow": 200000,
49 "maxTokens": 128000
50 },
51 {
52 "id": "claude-opus-4-6[1m]",
53 "name": "Opus 4.6 (1M)",
54 "reasoning": true,
55 "input": ["text", "image"],
56 "contextWindow": 1000000,
57 "maxTokens": 128000
58 },
59 {
60 "id": "claude-sonnet-4-6",
61 "name": "Sonnet 4.6",
62 "reasoning": true,
63 "input": ["text", "image"],
64 "contextWindow": 200000,
65 "maxTokens": 128000
66 },
67 {
68 "id": "claude-sonnet-4-6[1m]",
69 "name": "Sonnet 4.6 (1M)",
70 "reasoning": true,
71 "input": ["text", "image"],
72 "contextWindow": 1000000,
73 "maxTokens": 128000
74 },
75 {
76 "id": "claude-haiku-4-5-20251001",
77 "name": "Haiku 4.5",
78 "reasoning": false,
79 "input": ["text"],
80 "contextWindow": 200000,
81 "maxTokens": 8192
82 }
83 ]
84 },
85 "aicodewith-openai": {
86 "baseUrl": "https://api.aicodewith.com/v1",
87 "apiKey": "这里填写你的密钥",
88 "api": "openai-responses",
89 "models": [
90 {
91 "id": "gpt-5.4",
92 "name": "GPT-5.4",
93 "reasoning": true,
94 "input": ["text", "image"],
95 "contextWindow": 1000000,
96 "maxTokens": 128000
97 },
98 {
99 "id": "gpt-5.5",
100 "name": "GPT-5.5",
101 "reasoning": true,
102 "input": ["text", "image"],
103 "contextWindow": 400000,
104 "maxTokens": 128000
105 }
106 ]
107 },
108 "aicodewith-gemini": {
109 "baseUrl": "https://api.aicodewith.com/gemini_cli/v1beta",
110 "apiKey": "这里填写你的密钥",
111 "api": "google-generative-ai",
112 "models": [
113 {
114 "id": "gemini-3.1-pro-preview",
115 "name": "3.1 Pro Preview",
116 "reasoning": true,
117 "input": ["text", "image"],
118 "contextWindow": 1000000,
119 "maxTokens": 65536
120 },
121 {
122 "id": "gemini-3-pro-preview",
123 "name": "3 Pro Preview",
124 "reasoning": true,
125 "input": ["text", "image"],
126 "contextWindow": 1000000,
127 "maxTokens": 65536
128 },
129 {
130 "id": "gemini-2.5-pro",
131 "name": "2.5 Pro",
132 "reasoning": true,
133 "input": ["text", "image"],
134 "contextWindow": 1000000,
135 "maxTokens": 65536
136 },
137 {
138 "id": "gemini-3.5-flash",
139 "name": "Gemini 3 Flash Preview",
140 "reasoning": true,
141 "input": ["text", "image", "video"],
142 "contextWindow": 1000000,
143 "maxTokens": 65536
144 },
145 {
146 "id": "gemini-3-pro-image-preview",
147 "name": "gemini图片",
148 "reasoning": false,
149 "input": ["text", "image"],
150 "contextWindow": 200000,
151 "maxTokens": 65536
152 }
153 ]
154 },
155 "aicodewith-deepseek": {
156 "baseUrl": "https://api.aicodewith.com/v1",
157 "apiKey": "这里填写你的密钥",
158 "api": "openai-completions",
159 "models": [
160 {
161 "id": "deepseek-v4-pro",
162 "name": "DeepSeek V4 Pro",
163 "reasoning": false,
164 "input": ["text"],
165 "contextWindow": 200000,
166 "maxTokens": 32000
167 },
168 {
169 "id": "deepseek-v4-flash",
170 "name": "DeepSeek V4 Flash",
171 "reasoning": false,
172 "input": ["text"],
173 "contextWindow": 200000,
174 "maxTokens": 32000
175 },
176 {
177 "id": "deepseek-v3.2",
178 "name": "DeepSeek V3.2",
179 "reasoning": true,
180 "input": ["text"],
181 "contextWindow": 128000,
182 "maxTokens": 128000
183 },
184 {
185 "id": "deepseek-r1-0528",
186 "name": "DeepSeek R1 0528",
187 "reasoning": true,
188 "input": ["text"],
189 "contextWindow": 128000,
190 "maxTokens": 32000
191 }
192 ]
193 },
194 "aicodewith-qwen": {
195 "baseUrl": "https://api.aicodewith.com/v1",
196 "apiKey": "这里填写你的密钥",
197 "api": "openai-completions",
198 "models": [
199 {
200 "id": "qwen3.5-397b-a17b",
201 "name": "Qwen3.5 397B A17B",
202 "reasoning": true,
203 "input": ["text"],
204 "contextWindow": 262000,
205 "maxTokens": 128000
206 },
207 {
208 "id": "qwen3-coder-next",
209 "name": "Qwen3 Coder Next",
210 "reasoning": true,
211 "input": ["text"],
212 "contextWindow": 200000,
213 "maxTokens": 128000
214 },
215 {
216 "id": "qwen3-coder",
217 "name": "Qwen3 Coder",
218 "reasoning": false,
219 "input": ["text"],
220 "contextWindow": 256000,
221 "maxTokens": 64000
222 },
223 {
224 "id": "qwen3-next-80b-a3b-thinking",
225 "name": "Qwen3 Next 80B A3B Thinking",
226 "reasoning": true,
227 "input": ["text"],
228 "contextWindow": 256000,
229 "maxTokens": 256000
230 },
231 {
232 "id": "qwen3-next-80b-a3b-instruct",
233 "name": "Qwen3 Next 80B A3B Instruct",
234 "reasoning": false,
235 "input": ["text"],
236 "contextWindow": 256000,
237 "maxTokens": 256000
238 },
239 {
240 "id": "qwen3-30b-a3b-thinking-2507",
241 "name": "Qwen3 30B A3B Thinking 2507",
242 "reasoning": true,
243 "input": ["text"],
244 "contextWindow": 256000,
245 "maxTokens": 256000
246 },
247 {
248 "id": "qwen3-30b-a3b-instruct-2507",
249 "name": "Qwen3 30B A3B Instruct 2507",
250 "reasoning": false,
251 "input": ["text"],
252 "contextWindow": 256000,
253 "maxTokens": 256000
254 },
255 {
256 "id": "qwen3-235b-a22b-thinking-2507",
257 "name": "Qwen3 235B A22B Thinking 2507",
258 "reasoning": true,
259 "input": ["text"],
260 "contextWindow": 128000,
261 "maxTokens": 32000
262 },
263 {
264 "id": "qwen3-235b-a22b-instruct-2507",
265 "name": "Qwen3 235B A22B Instruct 2507",
266 "reasoning": false,
267 "input": ["text"],
268 "contextWindow": 128000,
269 "maxTokens": 128000
270 },
271 {
272 "id": "qwen3-235b-a22b",
273 "name": "Qwen3 235B A22B",
274 "reasoning": true,
275 "input": ["text"],
276 "contextWindow": 128000,
277 "maxTokens": 16000
278 },
279 {
280 "id": "qwen3-32b",
281 "name": "Qwen3 32B",
282 "reasoning": true,
283 "input": ["text"],
284 "contextWindow": 40000,
285 "maxTokens": 40000
286 },
287 {
288 "id": "qwen3-14b",
289 "name": "Qwen3 14B",
290 "reasoning": true,
291 "input": ["text"],
292 "contextWindow": 40000,
293 "maxTokens": 40000
294 },
295 {
296 "id": "qwq-32b",
297 "name": "QwQ 32B",
298 "reasoning": true,
299 "input": ["text"],
300 "contextWindow": 128000,
301 "maxTokens": 8000
302 },
303 {
304 "id": "qwen2.5-72b-instruct",
305 "name": "Qwen2.5 72B Instruct",
306 "reasoning": false,
307 "input": ["text"],
308 "contextWindow": 128000,
309 "maxTokens": 8000
310 },
311 {
312 "id": "qwen2.5-32b-instruct",
313 "name": "Qwen2.5 32B Instruct",
314 "reasoning": false,
315 "input": ["text"],
316 "contextWindow": 128000,
317 "maxTokens": 8000
318 },
319 {
320 "id": "qwen2.5-7b-instruct",
321 "name": "Qwen2.5 7B Instruct",
322 "reasoning": false,
323 "input": ["text"],
324 "contextWindow": 128000,
325 "maxTokens": 8000
326 }
327 ]
328 },
329 "aicodewith-kimi": {
330 "baseUrl": "https://api.aicodewith.com/v1",
331 "apiKey": "这里填写你的密钥",
332 "api": "openai-completions",
333 "models": [
334 {
335 "id": "kimi-k2.5",
336 "name": "Kimi K2.5",
337 "reasoning": false,
338 "input": ["text", "image"],
339 "contextWindow": 256000,
340 "maxTokens": 90000
341 },
342 {
343 "id": "kimi-k2",
344 "name": "Kimi K2",
345 "reasoning": false,
346 "input": ["text"],
347 "contextWindow": 128000,
348 "maxTokens": 80000
349 },
350 {
351 "id": "kimi-k2-thinking",
352 "name": "Kimi K2 Thinking",
353 "reasoning": false,
354 "input": ["text"],
355 "contextWindow": 256000,
356 "maxTokens": 32000
357 }
358 ]
359 },
360 "aicodewith-glm": {
361 "baseUrl": "https://api.aicodewith.com/v1",
362 "apiKey": "这里填写你的密钥",
363 "api": "openai-completions",
364 "models": [
365 {
366 "id": "glm-5.1",
367 "name": "GLM 5.1",
368 "reasoning": true,
369 "input": ["text"],
370 "contextWindow": 200000,
371 "maxTokens": 128000
372 },
373 {
374 "id": "glm-5",
375 "name": "GLM 5",
376 "reasoning": true,
377 "input": ["text"],
378 "contextWindow": 200000,
379 "maxTokens": 128000
380 },
381 {
382 "id": "glm-4.7",
383 "name": "GLM 4.7",
384 "reasoning": true,
385 "input": ["text"],
386 "contextWindow": 202000,
387 "maxTokens": 202000
388 },
389 {
390 "id": "glm-4.6",
391 "name": "GLM 4.6",
392 "reasoning": true,
393 "input": ["text"],
394 "contextWindow": 202000,
395 "maxTokens": 202000
396 }
397 ]
398 },
399 "aicodewith-minimax": {
400 "baseUrl": "https://api.aicodewith.com/v1",
401 "apiKey": "这里填写你的密钥",
402 "api": "openai-completions",
403 "models": [
404 {
405 "id": "minimax-m2.7",
406 "name": "MiniMax M2.7",
407 "reasoning": true,
408 "input": ["text"],
409 "contextWindow": 200000,
410 "maxTokens": 32000
411 },
412 {
413 "id": "minimax-m2.5",
414 "name": "MiniMax M2.5",
415 "reasoning": true,
416 "input": ["text"],
417 "contextWindow": 200000,
418 "maxTokens": 32000
419 },
420 {
421 "id": "minimax-m2.1",
422 "name": "MiniMax M2.1",
423 "reasoning": true,
424 "input": ["text"],
425 "contextWindow": 196000,
426 "maxTokens": 32000
427 },
428 {
429 "id": "mimo-v2-flash",
430 "name": "MiMo V2 Flash",
431 "reasoning": true,
432 "input": ["text"],
433 "contextWindow": 256000,
434 "maxTokens": 256000
435 }
436 ]
437 },
438 "aicodewith-step": {
439 "baseUrl": "https://api.aicodewith.com/v1",
440 "apiKey": "这里填写你的密钥",
441 "api": "openai-completions",
442 "models": [
443 {
444 "id": "longcat-flash-chat",
445 "name": "LongCat Flash Chat",
446 "reasoning": false,
447 "input": ["text"],
448 "contextWindow": 128000,
449 "maxTokens": 32000
450 }
451 ]
452 },
453 "aicodewith-bytedance": {
454 "baseUrl": "https://api.aicodewith.com/v1",
455 "apiKey": "这里填写你的密钥",
456 "api": "openai-completions",
457 "models": [
458 {
459 "id": "seed-oss-36b-instruct",
460 "name": "Seed OSS 36B Instruct",
461 "reasoning": false,
462 "input": ["text"],
463 "contextWindow": 512000,
464 "maxTokens": 512000
465 }
466 ]
467 }
468 }
469 },
470 "agents": {
471 "defaults": {
472 "workspace": "/Users/aicodewith/.openclaw/workspace",
473 "model": {
474 "primary": "aicodewith-claude/claude-opus-4-8",
475 "fallbacks": ["aicodewith-claude/claude-sonnet-4-6", "aicodewith-openai/gpt-5.5"]
476 },
477 "models": {
478 "aicodewith-claude/claude-opus-4-8": {},
479 "aicodewith-claude/claude-opus-4-8[1m]": {},
480 "aicodewith-claude/claude-opus-4-7": {},
481 "aicodewith-claude/claude-opus-4-7[1m]": {},
482 "aicodewith-claude/claude-opus-4-6": {},
483 "aicodewith-claude/claude-opus-4-6[1m]": {},
484 "aicodewith-claude/claude-sonnet-4-6": {},
485 "aicodewith-claude/claude-sonnet-4-6[1m]": {},
486 "aicodewith-claude/claude-haiku-4-5-20251001": {},
487 "aicodewith-openai/gpt-5.4": {},
488 "aicodewith-openai/gpt-5.5": {},
489 "aicodewith-gemini/gemini-3.1-pro-preview": {},
490 "aicodewith-gemini/gemini-3-pro-preview": {},
491 "aicodewith-gemini/gemini-2.5-pro": {},
492 "aicodewith-gemini/gemini-3.5-flash": {},
493 "aicodewith-gemini/gemini-3-pro-image-preview": {},
494 "aicodewith-deepseek/deepseek-v4-pro": {},
495 "aicodewith-deepseek/deepseek-v4-flash": {},
496 "aicodewith-deepseek/deepseek-v3.2": {},
497 "aicodewith-deepseek/deepseek-r1-0528": {},
498 "aicodewith-qwen/qwen3.5-397b-a17b": {},
499 "aicodewith-qwen/qwen3-coder-next": {},
500 "aicodewith-qwen/qwen3-coder": {},
501 "aicodewith-qwen/qwen3-next-80b-a3b-thinking": {},
502 "aicodewith-qwen/qwen3-next-80b-a3b-instruct": {},
503 "aicodewith-qwen/qwen3-30b-a3b-thinking-2507": {},
504 "aicodewith-qwen/qwen3-30b-a3b-instruct-2507": {},
505 "aicodewith-qwen/qwen3-235b-a22b-thinking-2507": {},
506 "aicodewith-qwen/qwen3-235b-a22b-instruct-2507": {},
507 "aicodewith-qwen/qwen3-235b-a22b": {},
508 "aicodewith-qwen/qwen3-32b": {},
509 "aicodewith-qwen/qwen3-14b": {},
510 "aicodewith-qwen/qwq-32b": {},
511 "aicodewith-qwen/qwen2.5-72b-instruct": {},
512 "aicodewith-qwen/qwen2.5-32b-instruct": {},
513 "aicodewith-qwen/qwen2.5-7b-instruct": {},
514 "aicodewith-kimi/kimi-k2.5": {},
515 "aicodewith-kimi/kimi-k2": {},
516 "aicodewith-kimi/kimi-k2-thinking": {},
517 "aicodewith-glm/glm-5.1": {},
518 "aicodewith-glm/glm-5": {},
519 "aicodewith-glm/glm-4.7": {},
520 "aicodewith-glm/glm-4.6": {},
521 "aicodewith-minimax/minimax-m2.7": {},
522 "aicodewith-minimax/minimax-m2.5": {},
523 "aicodewith-minimax/minimax-m2.1": {},
524 "aicodewith-minimax/mimo-v2-flash": {},
525 "aicodewith-step/longcat-flash-chat": {},
526 "aicodewith-bytedance/seed-oss-36b-instruct": {}
527 }
528 }
529 },
530 "gateway": {
531 "mode": "local",
532 "auth": {
533 "mode": "token",
534 "token": "aed3b7555d271db82fbdc541f88701e9e9d557f98e6da221"
535 },
536 "port": 18789,
537 "bind": "loopback",
538 "tailscale": {
539 "mode": "off",
540 "resetOnExit": false
541 },
542 "controlUi": {
543 "allowInsecureAuth": true
544 },
545 "nodes": {
546 "denyCommands": [
547 "camera.snap",
548 "camera.clip",
549 "screen.record",
550 "contacts.add",
551 "calendar.add",
552 "reminders.add",
553 "sms.send",
554 "sms.search"
555 ]
556 }
557 },
558 "session": {
559 "dmScope": "per-channel-peer"
560 },
561 "tools": {
562 "profile": "coding"
563 },
564 "meta": {
565 "lastTouchedVersion": "2026.6.1",
566 "lastTouchedAt": "2026-06-09T08:12:03.433Z"
567 }
568}
569EOF