npm install -g opencode-ai



Ảnh 1: Enter
**Ảnh 2: “**X” command
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

{ "$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é!