Global Config 👇
cd ~
cd .config/opencode
vim config.json
If you use /connect to authorize, lets say github Copilot, for credentials, read here: https://opencode.ai/docs/providers/
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
"models": {
"qwen3-vl:2b": {
"name": "Qwen 3"
}
}
}
},
"mcp": {
"agno": {
"type": "remote",
"url": "https://docs.agno.com/mcp",
"enabled": true
}
},
"plugin": [
"oh-my-opencode"
]
}