OpenCode custom provider: the config that works on 1.x and 2.x, plus image and video over MCP
This story is from 2026-11-28. It is preserved in the archive; the latest stories are on the live feed.
A custom provider in OpenCode is an entry in opencode.json that points the agent at any OpenAI-compatible endpoint: a base URL, a key read from an environment variable, and a list of model ids. The catch is that OpenCode 1.x and 2.x use different key names for the same thing, and a config written f…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-28 00:38 · DEV Community — AI
OpenCode custom provider: the config that works on 1.x and 2.x, plus image and video over MCP