Skip to main content

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 reaches LithosAI directly, with no translation proxy or extra adapter. After you install OpenCode, declare the provider in 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.
Issues common to every agent are listed under Common issues.