Đây là file cấu hình hệ thống OpenCode kết hợp với 9Router, LSP, Plugins và MCP: (config file opencode.json).

{
"$schema": "https://opencode.ai/config.json",
"provider": {
"9router": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://localhost:20128/v1",
"apiKey": "sk-444d4a043bb3a01f-8lkyjq-005e1c53"
},
"models": {
"1": {
"name": "1",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/big-pickle": {
"name": "oc/big-pickle",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/deepseek-v4-flash-free": {
"name": "oc/deepseek-v4-flash-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/mimo-v2.5-free": {
"name": "oc/mimo-v2.5-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/minimax-m2.5-free": {
"name": "oc/minimax-m2.5-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/minimax-m3-free": {
"name": "oc/minimax-m3-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/nemotron-3-super-free": {
"name": "oc/nemotron-3-super-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/nemotron-3-ultra-free": {
"name": "oc/nemotron-3-ultra-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/north-mini-code-free": {
"name": "oc/north-mini-code-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
},
"oc/qwen3.6-plus-free": {
"name": "oc/qwen3.6-plus-free",
"modalities": {
"input": [
"text",
"image"
],
"output": [
"text"
]
}
}
}
}
},
"model": "9router/oc/big-pickle",
"agent": {
"explorer": {
"description": "Fast explorer subagent for codebase exploration",
"mode": "subagent",
"model": "9router/1"
}
},
"lsp": true,
"plugin": [
"dynamic-context-pruning",
"envsitter-guard",
"opencode-notify",
"opencode-morph-plugin"
],
"mcp": {
"smart-filesystem": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "C:\Users\Hoang"],
"enabled": true
}
}
}
Tuyệt vời! Chúc mừng bạn đã cấu hình thành công hệ thống OpenCode kết hợp với 9Router, LSP, Plugins và MCP. Bây giờ bạn đã có một trợ lý AI lập trình siêu mạnh, tối ưu code tốt và cực kỳ tiết kiệm token ngay trên Windows.
Trong quá trình sử dụng, nếu bạn muốn nâng cấp thêm các tính năng khác như kết nối OpenCode với Cơ sở dữ liệu (Database) để AI tự đọc bảng viết code, hay cần tối ưu quy trình cho một ngôn ngữ lập trình cụ thể, hãy nhắn cho tôi biết nhé!
Chúc bạn có những trải nghiệm lập trình mượt mà và hiệu quả! 🚀
