OpenCode 的安装、配置文件路径和多 Provider 示例。
npm i -g opencode-ai
~/.config/opencode/opencode.json
{ "providers": { "anthropic": { "baseURL": "https://api.wanlai.ai", "apiKey": "你的 Claude Key" }, "openai": { "baseURL": "https://api.wanlai.ai/v1", "apiKey": "你的 GPT Key" }, "google": { "baseURL": "https://api.wanlai.ai/v1beta", "apiKey": "你的 Gemini Key" } } }