I want to use Gemini 2.5 pro with opencode so I created ~/.config/opencode/opencode.json file with that:
{
"$schema": "https://opencode.ai/config.json",
"providers": {
"gemini": {
"api_key": MY_GEMINI_API_KEY
}
}
}
However when I run opencode, I get this error:
Error: Config file at /Users/vlad/.config/opencode/opencode.json is invalid
↳ Unrecognized key(s) in object: 'providers'
What I am doing wrong?
I want to use Gemini 2.5 pro with opencode so I created
~/.config/opencode/opencode.jsonfile with that:However when I run opencode, I get this error:
What I am doing wrong?