What Happened
ProviderModelNotFoundError when starting OpenCode. The oh-my-opencode.json config referenced model IDs that don’t exist in the provider definitions.
The Error
ProviderModelNotFoundError
providerID: "google"
modelID: "gemini-3-flash"
suggestions: ["gemini-3-flash-preview", "antigravity-gemini-3-flash"]
Investigation
- Error showed suggestions for valid model names
- Searched config files for the invalid model ID
- Found references in
~/.config/opencode/oh-my-opencode.json:- Line 19:
multimodal-lookeragent - Line 39:
visual-engineeringcategory - Line 46:
artistrycategory - Line 60:
writingcategory
- Line 19:
Resolution
Changed all occurrences to use valid model IDs:
// Before (invalid)
"model": "google/gemini-3-flash"
"model": "google/gemini-3-pro"
// After (valid - using antigravity provider)
"model": "google/antigravity-gemini-3-flash"
"model": "google/antigravity-gemini-3-pro"
Lesson
Model IDs in oh-my-opencode.json must exactly match the model IDs defined in opencode.json provider config. The error’s suggestions field shows valid alternatives - use those exact strings.