Skip to main content
OpenCode connects to any OpenAI-compatible API through a custom provider.

Configuring OpenCode

Add Muna as a provider in opencode.json, either in your project or in ~/.config/opencode/opencode.json:
{env:MUNA_API_KEY} reads the key from your environment, so it never lands in the config file. Start OpenCode in your project directory and pick a Muna model with /models:
List any chat model from Models under models. The key is the Muna model tag; name is only what OpenCode shows in its picker.