Before you begin
Create a key on the API Keys page, confirm the model ID on the Models page, and export the key in the shell where you start OpenCode.opencode.json, either
in a project or at ~/.config/opencode/opencode.json.
This connection uses OpenCode’s OpenAI-compatible Chat Completions adapter. Features that
require another API protocol are not available through this provider configuration.
opencode.json
@ai-sdk/openai-compatible is the package for Chat Completions providers, and OpenCode
bundles it. Start OpenCode, then run /models to confirm that the LithosAI models appear.