Bước 1: Mở Command và chạy:

npm install -g opencode-ai

image.png

Bước 2: Mở Command và chạy: opencode

image.png

image.png

Ảnh 1: Enter

**Ảnh 2: “**X” command

Bước 3: Cấu hình file opencode.jsonc

Người dùng Win: C:\Users\Người dùng\.config\opencode\opencode.jsonc

Người dùng MAC: ~/.config/

Lệnh edit file trên mac:

open -e ~/.config/opencode/opencode.jsonc

image.png

{ "$schema": "https://opencode.ai/config.json", "provider": { "anthropic": { "options": { "baseURL": "https://1gw.gwai.cloud/v1", "apiKey": "sk-XXX" }, "models": { "deepseek-v4.1-flash": { "name": "DeepSeek V4.1 Flash", "limit": { "context": 1000000, "output": 64000 } }, "deepseek-v4.1-flash-1017": { "name": "DeepSeek V4.1 Flash 1017", "limit": { "context": 1000000, "output": 64000 } } } } }, "model": "anthropic/deepseek-v4.1-flash-1017" }

→ Quay lại genzshop.vn → avatar > đơn hàng>chi tiết, lấy API Key rồi dán vào sk-XXX nhé!