OpenCode

How to fix a missing OpenCode model

When a model is missing, first confirm which config OpenCode loaded, then compare the Provider and Model ID.

Start with these checks

OpenCode does not show the configured model or the Model ID does not exist.

  • The target model is absent from /models or the request returns Model Not Found.
  • The config was written to the wrong file
  • Run /models and confirm the target Provider
model not found

01

Check the config OpenCode actually loaded

Confirm you edited the file used by this OpenCode version, save it, reopen OpenCode, and run /models.

02

Compare Provider and Model ID

The Provider ID, model key, and request Model ID must come from one generated setup; do not mix Providers.

  1. 1Run /models and confirm the target Provider
  2. 2Compare the Model ID character by character

03

Confirm the result

Seeing the Provider and model in /models and selecting it confirms that the config loaded.

  1. 1Compare the Model ID character by character
  2. 2Confirm the model is under the matching provider

If it is still not fixed

Sources

Reconfigure

Return to the integration center and continue the setup steps.

Return to the related setup step
    How to fix a missing OpenCode model | AI Code With