From 70b35d51640e8894e5d6228de38aee6ddd1ce753 Mon Sep 17 00:00:00 2001 From: "nhat.nguyenhong" Date: Mon, 14 Sep 2026 12:16:10 +0700 Subject: [PATCH] add sample opencode config --- scripts/opencode.json | 1262 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1262 insertions(+) create mode 100644 scripts/opencode.json diff --git a/scripts/opencode.json b/scripts/opencode.json new file mode 100644 index 0000000..6239a07 --- /dev/null +++ b/scripts/opencode.json @@ -0,0 +1,1262 @@ +{ + "$schema": "https://opencode.ai/config.json", + "disabled_providers": [ + "opencode", + "opencode-go" + ], + "mcp": { + "parallel": { + "type": "remote", + "url": "https://search.parallel.ai/mcp", + "enabled": true, + "oauth": false, + "timeout": 60000 + } + }, + "permission": { + "*": "ask", + "read *": "allow", + "glob *": "allow", + "grep *": "allow", + "task *": "allow", + "skill *": "allow", + "question *": "allow", + "webfetch *": "allow", + "websearch *": "allow", + "todowrite *": "allow", + "parallel*": "allow", + "bash": { + "*": "ask", + "grep *": "allow" + } + }, + "default_agent": "plan", + "provider": { + "commandcode": { + "name": "Command Code", + "npm": "path/to/opencode-ccgo-provider/dist/index.js", + "options": { + "apiKey": "" + }, + "models": { + "deepseek/deepseek-v4.1-flash": { + "name": "DeepSeek V4.1 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "reasoning": true + }, + "deepseek/deepseek-v4-flash-vision-exp": { + "name": "DeepSeek V4 Flash Vision (exp)", + "limit": { + "context": 1000000, + "output": 32000 + }, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "reasoning": true + }, + "claude-sonnet-5": { + "name": "Claude Sonnet 5", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-sonnet-4-6": { + "name": "Claude Sonnet 4.6", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-fable-5-1": { + "name": "Claude Fable 5.1", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-fable-5": { + "name": "Claude Fable 5", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-opus-5": { + "name": "Claude Opus 5", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-opus-4-8": { + "name": "Claude Opus 4.8", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-opus-4-7": { + "name": "Claude Opus 4.7", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "claude-haiku-4-5-20251001": { + "name": "Claude Haiku 4.5", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.6-sol": { + "name": "GPT-5.6 Sol", + "limit": { + "context": 1050000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.6-terra": { + "name": "GPT-5.6 Terra", + "limit": { + "context": 1050000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.6-luna": { + "name": "GPT-5.6 Luna", + "limit": { + "context": 1050000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.5": { + "name": "GPT-5.5", + "limit": { + "context": 400000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.4": { + "name": "GPT-5.4", + "limit": { + "context": 400000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.3-codex": { + "name": "GPT-5.3 Codex", + "limit": { + "context": 400000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "gpt-5.4-mini": { + "name": "GPT-5.4 Mini", + "limit": { + "context": 400000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "deepseek/deepseek-v4-pro": { + "name": "DeepSeek V4 Pro (latest)", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "deepseek/deepseek-v4-flash": { + "name": "DeepSeek V4 Flash (latest)", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "deepseek/deepseek-v4-flash-fast": { + "name": "DeepSeek V4 Flash Fast", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "moonshotai/Kimi-K3": { + "name": "Kimi K3", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "moonshotai/Kimi-K2.7-Code": { + "name": "Kimi K2.7 Code", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "moonshotai/Kimi-K2.7-Code-Highspeed": { + "name": "Kimi K2.7 Code HighSpeed", + "limit": { + "context": 262000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "moonshotai/Kimi-K2.6": { + "name": "Kimi K2.6", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "moonshotai/Kimi-K2.5": { + "name": "Kimi K2.5", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "z-ai/glm-5.3-flash": { + "name": "GLM-5.3 Flash", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "zai-org/GLM-5.3": { + "name": "GLM-5.3", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "zai-org/GLM-5.2": { + "name": "GLM-5.2", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "zai-org/GLM-5.2-Fast": { + "name": "GLM-5.2 Fast", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "zai-org/GLM-5.1": { + "name": "GLM-5.1", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "zai-org/GLM-5": { + "name": "GLM-5", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "MiniMaxAI/MiniMax-M3": { + "name": "MiniMax M3", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "MiniMaxAI/MiniMax-M2.7": { + "name": "MiniMax M2.7", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "MiniMaxAI/MiniMax-M2.5": { + "name": "MiniMax M2.5", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "xiaomi/mimo-v2.5-pro": { + "name": "MiMo V2.5 Pro", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "xiaomi/mimo-v2.5": { + "name": "MiMo V2.5", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.8-Max-0902": { + "name": "Qwen 3.8 Max 0902", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.8-Max": { + "name": "Qwen 3.8 Max", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.8-27B": { + "name": "Qwen 3.8 27B", + "limit": { + "context": 262144, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.8-Flash": { + "name": "Qwen 3.8 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.7-Max": { + "name": "Qwen 3.7 Max", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.7-Plus": { + "name": "Qwen 3.7 Plus", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.7-Flash": { + "name": "Qwen 3.7 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.6-Max-Preview": { + "name": "Qwen 3.6 Max Preview", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "Qwen/Qwen3.6-Plus": { + "name": "Qwen 3.6 Plus", + "limit": { + "context": 200000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "meituan/LongCat-2.0:free": { + "name": "LongCat 2.0", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "stepfun/Step-3.7-Flash": { + "name": "Step 3.7 Flash", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "stepfun/Step-3.5-Flash": { + "name": "Step 3.5 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "tencent/hy3-paid": { + "name": "Tencent Hy3", + "limit": { + "context": 262144, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "tencent/hy4-preview": { + "name": "Tencent Hy4 Preview", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.8-flash": { + "name": "Gemini 3.8 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.7-flash": { + "name": "Gemini 3.7 Flash", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.6-flash": { + "name": "Gemini 3.6 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.5-flash": { + "name": "Gemini 3.5 Flash", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.5-flash-lite": { + "name": "Gemini 3.5 Flash Lite", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "google/gemini-3.1-flash-lite": { + "name": "Gemini 3.1 Flash Lite", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "sakana/fugu-ultra": { + "name": "Fugu Ultra", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "nvidia/nemotron-3-ultra-550b-a55b": { + "name": "Nemotron 3 Ultra", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "thinkingmachines/inkling": { + "name": "Inkling", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "thinkingmachines/inkling-small": { + "name": "Inkling Small", + "limit": { + "context": 1000000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "poolside/laguna-s-2.1-free": { + "name": "Laguna S 2.1", + "limit": { + "context": 256000, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "inclusionai/ling-3.0-flash-sante:free": { + "name": "Ling 3.0 Flash Sante", + "limit": { + "context": 262144, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "meta/muse-spark-1.1": { + "name": "Muse Spark 1.1", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "meta/muse-spark-1.2": { + "name": "Muse Spark 1.2", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "meta/muse-spark-1.2-contributor": { + "name": "Muse Spark 1.2 Contributor", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "meta/muse-spark-1.3": { + "name": "Muse Spark 1.3", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "meta/muse-spark-1.3-contributor": { + "name": "Muse Spark 1.3 Contributor", + "limit": { + "context": 1048576, + "output": 32000 + }, + "reasoning": true, + "attachment": false, + "modalities": { + "input": [ + "text" + ], + "output": [ + "text" + ] + } + }, + "xai/grok-4.5": { + "name": "Grok 4.5", + "limit": { + "context": 500000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + }, + "xai/grok-4.6": { + "name": "Grok 4.6", + "limit": { + "context": 500000, + "output": 32000 + }, + "reasoning": true, + "attachment": true, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + } + } + } + } + } +}