OpenCode Chat Model icon

OpenCode Chat Model

Use OpenCode self-hosted AI coding agent as a chat model

OpenCode Chat Model

AI-generated

Summary

Configure and return an OpenCode chat model output using specified agent, provider, and model.

Inputs

None.

Output shape

AiLanguageModel

Returns an OpenCodeChatModel instance configured with the provided parameters. The model generates responses via the OpenCode API, producing text or tool-call outputs.

Links

Discussion