https://vietrouter.com.vn/v1

← All applications · Connect apps section on /docs

OpenAIconfigure opencode

OpenCode

Terminal coding agent — provider JSON OpenAI-compatible.

Base URL to paste

Paste exactly one of two formats — wrong URL yields 404 (not 401).

https://vietrouter.com.vn/v1

Prerequisites

  1. Cài opencode
  2. API key

Recommended model: gpt-5.6-sol

Quick way — command / config

api-cli configure opencode -k 'sk-mtm-...' -m gpt-5.6-sol

Where to place file / fill Settings

Filemacos
~/.opencode/config.json
Thêm provider api-cli như snippet.
Filelinux
~/.opencode/config.json
Giống macOS.
Filewindows
%USERPROFILE%\.opencode\config.json
Tạo thư mục nếu thiếu.

Verify connection

  1. opencode chat thử
  2. api-cli doctor

Troubleshooting

SymptomReasonHow to handle
404baseURL thiếu /v1.https://vietrouter.com.vn/v1

Related

Crush · Codex CLI

Zalo groupWhatsApp