npm install -g opencode-ai
opencode -v
~/.config/opencode/opencode.json.C:\\Users\\<username>\\.config\\opencode\\opencode.json.opencode.json file and save it.{"$schema": "https://opencode.ai/config.json","provider": {"myprovider": {"npm": "@ai-sdk/openai-compatible","name": "Token Plan","options": {"baseURL": "https://tokenhub-intl.tencentcloudmaas.com/plan/v3","apiKey": "$your_api_key"},"models": {"auto": {"name": "Auto","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}},"glm-5.2": {"name": "GLM-5.2","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}},"kimi-k2.6": {"name": "Kimi-K2.6","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}},"minimax-m3": {"name": "MiniMax-M3","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}},"deepseek-v4-flash-202605": {"name": "DeepSeek-V4-Flash Direct from Manufacturer","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}},"deepseek-v4-pro-202606": {"name": "DeepSeek-V4-Pro Direct from Manufacturer","modalities": {"input": ["text"],"output": ["text"]},"options": {"thinking": {"type": "enabled"}}}}}}}
opencode
/models, select the configured model, and use it in OpenCode.Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan