Configure
Add an OpenAI-compatible provider in OpenCode. SetbaseURL to https://api.duomi.ai/v1, use DUOMI_API_KEY for the API key environment variable, and select your-model.
401, confirm the launching shell can read the variable; for 404, check /v1; for tool errors, use a tool-capable model.